AWS SDK for C++  1.9.176
AWS SDK for C++
RetireGrantRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/kms/KMS_EXPORTS.h>
8 #include <aws/kms/KMSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace KMS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RetireGrant"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
46  inline const Aws::String& GetGrantToken() const{ return m_grantToken; }
47 
57  inline bool GrantTokenHasBeenSet() const { return m_grantTokenHasBeenSet; }
58 
68  inline void SetGrantToken(const Aws::String& value) { m_grantTokenHasBeenSet = true; m_grantToken = value; }
69 
79  inline void SetGrantToken(Aws::String&& value) { m_grantTokenHasBeenSet = true; m_grantToken = std::move(value); }
80 
90  inline void SetGrantToken(const char* value) { m_grantTokenHasBeenSet = true; m_grantToken.assign(value); }
91 
101  inline RetireGrantRequest& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;}
102 
112  inline RetireGrantRequest& WithGrantToken(Aws::String&& value) { SetGrantToken(std::move(value)); return *this;}
113 
123  inline RetireGrantRequest& WithGrantToken(const char* value) { SetGrantToken(value); return *this;}
124 
125 
132  inline const Aws::String& GetKeyId() const{ return m_keyId; }
133 
140  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
141 
148  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
149 
156  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
157 
164  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
165 
172  inline RetireGrantRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
173 
180  inline RetireGrantRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
181 
188  inline RetireGrantRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
189 
190 
197  inline const Aws::String& GetGrantId() const{ return m_grantId; }
198 
205  inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
206 
213  inline void SetGrantId(const Aws::String& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
214 
221  inline void SetGrantId(Aws::String&& value) { m_grantIdHasBeenSet = true; m_grantId = std::move(value); }
222 
229  inline void SetGrantId(const char* value) { m_grantIdHasBeenSet = true; m_grantId.assign(value); }
230 
237  inline RetireGrantRequest& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
238 
245  inline RetireGrantRequest& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
246 
253  inline RetireGrantRequest& WithGrantId(const char* value) { SetGrantId(value); return *this;}
254 
255  private:
256 
257  Aws::String m_grantToken;
258  bool m_grantTokenHasBeenSet;
259 
260  Aws::String m_keyId;
261  bool m_keyIdHasBeenSet;
262 
263  Aws::String m_grantId;
264  bool m_grantIdHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace KMS
269 } // namespace Aws
Aws::KMS::Model::RetireGrantRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: RetireGrantRequest.h:156
Aws::KMS::Model::RetireGrantRequest
Definition: RetireGrantRequest.h:22
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(const char *value)
Definition: RetireGrantRequest.h:188
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(Aws::String &&value)
Definition: RetireGrantRequest.h:180
Aws::KMS::Model::RetireGrantRequest::GrantTokenHasBeenSet
bool GrantTokenHasBeenSet() const
Definition: RetireGrantRequest.h:57
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::RetireGrantRequest::SetGrantId
void SetGrantId(const char *value)
Definition: RetireGrantRequest.h:229
Aws::KMS::Model::RetireGrantRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: RetireGrantRequest.h:140
Aws::KMS::Model::RetireGrantRequest::SetGrantToken
void SetGrantToken(const Aws::String &value)
Definition: RetireGrantRequest.h:68
Aws::KMS::Model::RetireGrantRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: RetireGrantRequest.h:132
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(Aws::String &&value)
Definition: RetireGrantRequest.h:245
Aws::KMS::Model::RetireGrantRequest::SetGrantId
void SetGrantId(const Aws::String &value)
Definition: RetireGrantRequest.h:213
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(const Aws::String &value)
Definition: RetireGrantRequest.h:237
Aws::KMS::Model::RetireGrantRequest::WithGrantToken
RetireGrantRequest & WithGrantToken(const char *value)
Definition: RetireGrantRequest.h:123
KMSRequest.h
Aws::KMS::Model::RetireGrantRequest::GrantIdHasBeenSet
bool GrantIdHasBeenSet() const
Definition: RetireGrantRequest.h:205
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::RetireGrantRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RetireGrantRequest.h:30
Aws::KMS::Model::RetireGrantRequest::SetKeyId
void SetKeyId(const char *value)
Definition: RetireGrantRequest.h:164
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
Aws::KMS::Model::RetireGrantRequest::SetGrantToken
void SetGrantToken(Aws::String &&value)
Definition: RetireGrantRequest.h:79
Aws::KMS::Model::RetireGrantRequest::GetGrantToken
const Aws::String & GetGrantToken() const
Definition: RetireGrantRequest.h:46
AWSString.h
Aws::KMS::Model::RetireGrantRequest::GetGrantId
const Aws::String & GetGrantId() const
Definition: RetireGrantRequest.h:197
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(const char *value)
Definition: RetireGrantRequest.h:253
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(const Aws::String &value)
Definition: RetireGrantRequest.h:172
Aws::KMS::Model::RetireGrantRequest::RetireGrantRequest
RetireGrantRequest()
Aws::KMS::Model::RetireGrantRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::RetireGrantRequest::SetGrantToken
void SetGrantToken(const char *value)
Definition: RetireGrantRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::RetireGrantRequest::SetGrantId
void SetGrantId(Aws::String &&value)
Definition: RetireGrantRequest.h:221
KMS_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::RetireGrantRequest::WithGrantToken
RetireGrantRequest & WithGrantToken(Aws::String &&value)
Definition: RetireGrantRequest.h:112
Aws::KMS::Model::RetireGrantRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: RetireGrantRequest.h:148
Aws::KMS::Model::RetireGrantRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::Model::RetireGrantRequest::WithGrantToken
RetireGrantRequest & WithGrantToken(const Aws::String &value)
Definition: RetireGrantRequest.h:101