AWS SDK for C++  1.9.131
AWS SDK for C++
RevokeGrantRequest.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 "RevokeGrant"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
48  inline const Aws::String& GetKeyId() const{ return m_keyId; }
49 
61  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
62 
74  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
75 
87  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
88 
100  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
101 
113  inline RevokeGrantRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
114 
126  inline RevokeGrantRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
127 
139  inline RevokeGrantRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
140 
141 
146  inline const Aws::String& GetGrantId() const{ return m_grantId; }
147 
152  inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
153 
158  inline void SetGrantId(const Aws::String& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
159 
164  inline void SetGrantId(Aws::String&& value) { m_grantIdHasBeenSet = true; m_grantId = std::move(value); }
165 
170  inline void SetGrantId(const char* value) { m_grantIdHasBeenSet = true; m_grantId.assign(value); }
171 
176  inline RevokeGrantRequest& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
177 
182  inline RevokeGrantRequest& WithGrantId(Aws::String&& value) { SetGrantId(std::move(value)); return *this;}
183 
188  inline RevokeGrantRequest& WithGrantId(const char* value) { SetGrantId(value); return *this;}
189 
190  private:
191 
192  Aws::String m_keyId;
193  bool m_keyIdHasBeenSet;
194 
195  Aws::String m_grantId;
196  bool m_grantIdHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace KMS
201 } // namespace Aws
Aws::KMS::Model::RevokeGrantRequest::RevokeGrantRequest
RevokeGrantRequest()
Aws::KMS::Model::RevokeGrantRequest::WithGrantId
RevokeGrantRequest & WithGrantId(Aws::String &&value)
Definition: RevokeGrantRequest.h:182
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::RevokeGrantRequest::SetKeyId
void SetKeyId(const char *value)
Definition: RevokeGrantRequest.h:100
Aws::KMS::Model::RevokeGrantRequest::GetGrantId
const Aws::String & GetGrantId() const
Definition: RevokeGrantRequest.h:146
Aws::KMS::Model::RevokeGrantRequest::SetGrantId
void SetGrantId(Aws::String &&value)
Definition: RevokeGrantRequest.h:164
Aws::KMS::Model::RevokeGrantRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: RevokeGrantRequest.h:48
Aws::KMS::Model::RevokeGrantRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RevokeGrantRequest.h:30
Aws::KMS::Model::RevokeGrantRequest::SetGrantId
void SetGrantId(const Aws::String &value)
Definition: RevokeGrantRequest.h:158
Aws::KMS::Model::RevokeGrantRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: RevokeGrantRequest.h:61
KMSRequest.h
Aws::KMS::Model::RevokeGrantRequest::WithGrantId
RevokeGrantRequest & WithGrantId(const char *value)
Definition: RevokeGrantRequest.h:188
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::RevokeGrantRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
Aws::KMS::Model::RevokeGrantRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::Model::RevokeGrantRequest::WithGrantId
RevokeGrantRequest & WithGrantId(const Aws::String &value)
Definition: RevokeGrantRequest.h:176
Aws::KMS::Model::RevokeGrantRequest::WithKeyId
RevokeGrantRequest & WithKeyId(const Aws::String &value)
Definition: RevokeGrantRequest.h:113
AWSString.h
Aws::KMS::Model::RevokeGrantRequest::WithKeyId
RevokeGrantRequest & WithKeyId(const char *value)
Definition: RevokeGrantRequest.h:139
Aws::KMS::Model::RevokeGrantRequest
Definition: RevokeGrantRequest.h:22
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::RevokeGrantRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: RevokeGrantRequest.h:74
Aws::KMS::Model::RevokeGrantRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: RevokeGrantRequest.h:87
Aws
Definition: AccessManagementClient.h:15
KMS_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::RevokeGrantRequest::SetGrantId
void SetGrantId(const char *value)
Definition: RevokeGrantRequest.h:170
Aws::KMS::Model::RevokeGrantRequest::WithKeyId
RevokeGrantRequest & WithKeyId(Aws::String &&value)
Definition: RevokeGrantRequest.h:126
Aws::KMS::Model::RevokeGrantRequest::GrantIdHasBeenSet
bool GrantIdHasBeenSet() const
Definition: RevokeGrantRequest.h:152