AWS SDK for C++  1.8.129
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 
40  inline const Aws::String& GetGrantToken() const{ return m_grantToken; }
41 
45  inline bool GrantTokenHasBeenSet() const { return m_grantTokenHasBeenSet; }
46 
50  inline void SetGrantToken(const Aws::String& value) { m_grantTokenHasBeenSet = true; m_grantToken = value; }
51 
55  inline void SetGrantToken(Aws::String&& value) { m_grantTokenHasBeenSet = true; m_grantToken = std::move(value); }
56 
60  inline void SetGrantToken(const char* value) { m_grantTokenHasBeenSet = true; m_grantToken.assign(value); }
61 
65  inline RetireGrantRequest& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;}
66 
70  inline RetireGrantRequest& WithGrantToken(Aws::String&& value) { SetGrantToken(std::move(value)); return *this;}
71 
75  inline RetireGrantRequest& WithGrantToken(const char* value) { SetGrantToken(value); return *this;}
76 
77 
84  inline const Aws::String& GetKeyId() const{ return m_keyId; }
85 
92  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
93 
100  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
101 
108  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
109 
116  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
117 
124  inline RetireGrantRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
125 
132  inline RetireGrantRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
133 
140  inline RetireGrantRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
141 
142 
149  inline const Aws::String& GetGrantId() const{ return m_grantId; }
150 
157  inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
158 
165  inline void SetGrantId(const Aws::String& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
166 
173  inline void SetGrantId(Aws::String&& value) { m_grantIdHasBeenSet = true; m_grantId = std::move(value); }
174 
181  inline void SetGrantId(const char* value) { m_grantIdHasBeenSet = true; m_grantId.assign(value); }
182 
189  inline RetireGrantRequest& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
190 
197  inline RetireGrantRequest& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
198 
205  inline RetireGrantRequest& WithGrantId(const char* value) { SetGrantId(value); return *this;}
206 
207  private:
208 
209  Aws::String m_grantToken;
210  bool m_grantTokenHasBeenSet;
211 
212  Aws::String m_keyId;
213  bool m_keyIdHasBeenSet;
214 
215  Aws::String m_grantId;
216  bool m_grantIdHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace KMS
221 } // namespace Aws
Aws::KMS::Model::RetireGrantRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: RetireGrantRequest.h:108
Aws::KMS::Model::RetireGrantRequest
Definition: RetireGrantRequest.h:22
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(const char *value)
Definition: RetireGrantRequest.h:140
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(Aws::String &&value)
Definition: RetireGrantRequest.h:132
Aws::KMS::Model::RetireGrantRequest::GrantTokenHasBeenSet
bool GrantTokenHasBeenSet() const
Definition: RetireGrantRequest.h:45
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:181
Aws::KMS::Model::RetireGrantRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: RetireGrantRequest.h:92
Aws::KMS::Model::RetireGrantRequest::SetGrantToken
void SetGrantToken(const Aws::String &value)
Definition: RetireGrantRequest.h:50
Aws::KMS::Model::RetireGrantRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: RetireGrantRequest.h:84
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(Aws::String &&value)
Definition: RetireGrantRequest.h:197
Aws::KMS::Model::RetireGrantRequest::SetGrantId
void SetGrantId(const Aws::String &value)
Definition: RetireGrantRequest.h:165
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(const Aws::String &value)
Definition: RetireGrantRequest.h:189
Aws::KMS::Model::RetireGrantRequest::WithGrantToken
RetireGrantRequest & WithGrantToken(const char *value)
Definition: RetireGrantRequest.h:75
KMSRequest.h
Aws::KMS::Model::RetireGrantRequest::GrantIdHasBeenSet
bool GrantIdHasBeenSet() const
Definition: RetireGrantRequest.h:157
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:116
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:55
Aws::KMS::Model::RetireGrantRequest::GetGrantToken
const Aws::String & GetGrantToken() const
Definition: RetireGrantRequest.h:40
AWSString.h
Aws::KMS::Model::RetireGrantRequest::GetGrantId
const Aws::String & GetGrantId() const
Definition: RetireGrantRequest.h:149
Aws::KMS::Model::RetireGrantRequest::WithGrantId
RetireGrantRequest & WithGrantId(const char *value)
Definition: RetireGrantRequest.h:205
Aws::KMS::Model::RetireGrantRequest::WithKeyId
RetireGrantRequest & WithKeyId(const Aws::String &value)
Definition: RetireGrantRequest.h:124
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:60
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::RetireGrantRequest::SetGrantId
void SetGrantId(Aws::String &&value)
Definition: RetireGrantRequest.h:173
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:70
Aws::KMS::Model::RetireGrantRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: RetireGrantRequest.h:100
Aws::KMS::Model::RetireGrantRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::Model::RetireGrantRequest::WithGrantToken
RetireGrantRequest & WithGrantToken(const Aws::String &value)
Definition: RetireGrantRequest.h:65