AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RetireGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/kms/KMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace KMS {
15namespace Model {
16
20 public:
21 AWS_KMS_API RetireGrantRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RetireGrant"; }
28
29 AWS_KMS_API Aws::String SerializePayload() const override;
30
32
34
43 inline const Aws::String& GetGrantToken() const { return m_grantToken; }
44 inline bool GrantTokenHasBeenSet() const { return m_grantTokenHasBeenSet; }
45 template <typename GrantTokenT = Aws::String>
46 void SetGrantToken(GrantTokenT&& value) {
47 m_grantTokenHasBeenSet = true;
48 m_grantToken = std::forward<GrantTokenT>(value);
49 }
50 template <typename GrantTokenT = Aws::String>
51 RetireGrantRequest& WithGrantToken(GrantTokenT&& value) {
52 SetGrantToken(std::forward<GrantTokenT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetKeyId() const { return m_keyId; }
65 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
66 template <typename KeyIdT = Aws::String>
67 void SetKeyId(KeyIdT&& value) {
68 m_keyIdHasBeenSet = true;
69 m_keyId = std::forward<KeyIdT>(value);
70 }
71 template <typename KeyIdT = Aws::String>
72 RetireGrantRequest& WithKeyId(KeyIdT&& value) {
73 SetKeyId(std::forward<KeyIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetGrantId() const { return m_grantId; }
86 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
87 template <typename GrantIdT = Aws::String>
88 void SetGrantId(GrantIdT&& value) {
89 m_grantIdHasBeenSet = true;
90 m_grantId = std::forward<GrantIdT>(value);
91 }
92 template <typename GrantIdT = Aws::String>
93 RetireGrantRequest& WithGrantId(GrantIdT&& value) {
94 SetGrantId(std::forward<GrantIdT>(value));
95 return *this;
96 }
98
100
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) {
109 m_dryRunHasBeenSet = true;
110 m_dryRun = value;
111 }
112 inline RetireGrantRequest& WithDryRun(bool value) {
113 SetDryRun(value);
114 return *this;
115 }
117 private:
118 Aws::String m_grantToken;
119
120 Aws::String m_keyId;
121
122 Aws::String m_grantId;
123
124 bool m_dryRun{false};
125 bool m_grantTokenHasBeenSet = false;
126 bool m_keyIdHasBeenSet = false;
127 bool m_grantIdHasBeenSet = false;
128 bool m_dryRunHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace KMS
133} // namespace Aws
RetireGrantRequest & WithDryRun(bool value)
const Aws::String & GetGrantToken() const
RetireGrantRequest & WithGrantToken(GrantTokenT &&value)
const Aws::String & GetGrantId() const
AWS_KMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetGrantToken(GrantTokenT &&value)
RetireGrantRequest & WithGrantId(GrantIdT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetKeyId() const
RetireGrantRequest & WithKeyId(KeyIdT &&value)
AWS_KMS_API RetireGrantRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String