AWS SDK for C++  1.9.131
AWS SDK for C++
CreateAliasRequest.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 "CreateAlias"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
47  inline const Aws::String& GetAliasName() const{ return m_aliasName; }
48 
59  inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
60 
71  inline void SetAliasName(const Aws::String& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; }
72 
83  inline void SetAliasName(Aws::String&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::move(value); }
84 
95  inline void SetAliasName(const char* value) { m_aliasNameHasBeenSet = true; m_aliasName.assign(value); }
96 
107  inline CreateAliasRequest& WithAliasName(const Aws::String& value) { SetAliasName(value); return *this;}
108 
119  inline CreateAliasRequest& WithAliasName(Aws::String&& value) { SetAliasName(std::move(value)); return *this;}
120 
131  inline CreateAliasRequest& WithAliasName(const char* value) { SetAliasName(value); return *this;}
132 
133 
150  inline const Aws::String& GetTargetKeyId() const{ return m_targetKeyId; }
151 
168  inline bool TargetKeyIdHasBeenSet() const { return m_targetKeyIdHasBeenSet; }
169 
186  inline void SetTargetKeyId(const Aws::String& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = value; }
187 
204  inline void SetTargetKeyId(Aws::String&& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = std::move(value); }
205 
222  inline void SetTargetKeyId(const char* value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId.assign(value); }
223 
240  inline CreateAliasRequest& WithTargetKeyId(const Aws::String& value) { SetTargetKeyId(value); return *this;}
241 
258  inline CreateAliasRequest& WithTargetKeyId(Aws::String&& value) { SetTargetKeyId(std::move(value)); return *this;}
259 
276  inline CreateAliasRequest& WithTargetKeyId(const char* value) { SetTargetKeyId(value); return *this;}
277 
278  private:
279 
280  Aws::String m_aliasName;
281  bool m_aliasNameHasBeenSet;
282 
283  Aws::String m_targetKeyId;
284  bool m_targetKeyIdHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace KMS
289 } // namespace Aws
Aws::KMS::Model::CreateAliasRequest::WithTargetKeyId
CreateAliasRequest & WithTargetKeyId(const Aws::String &value)
Definition: CreateAliasRequest.h:240
Aws::KMS::Model::CreateAliasRequest::GetAliasName
const Aws::String & GetAliasName() const
Definition: CreateAliasRequest.h:47
Aws::KMS::Model::CreateAliasRequest::WithAliasName
CreateAliasRequest & WithAliasName(const char *value)
Definition: CreateAliasRequest.h:131
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::CreateAliasRequest::WithTargetKeyId
CreateAliasRequest & WithTargetKeyId(Aws::String &&value)
Definition: CreateAliasRequest.h:258
Aws::KMS::Model::CreateAliasRequest
Definition: CreateAliasRequest.h:22
KMSRequest.h
Aws::KMS::Model::CreateAliasRequest::SetAliasName
void SetAliasName(const Aws::String &value)
Definition: CreateAliasRequest.h:71
Aws::KMS::Model::CreateAliasRequest::CreateAliasRequest
CreateAliasRequest()
Aws::KMS::Model::CreateAliasRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::KMS::Model::CreateAliasRequest::SetAliasName
void SetAliasName(Aws::String &&value)
Definition: CreateAliasRequest.h:83
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::CreateAliasRequest::WithAliasName
CreateAliasRequest & WithAliasName(const Aws::String &value)
Definition: CreateAliasRequest.h:107
Aws::KMS::Model::CreateAliasRequest::SetTargetKeyId
void SetTargetKeyId(const Aws::String &value)
Definition: CreateAliasRequest.h:186
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
AWSString.h
Aws::KMS::Model::CreateAliasRequest::SetAliasName
void SetAliasName(const char *value)
Definition: CreateAliasRequest.h:95
Aws::KMS::Model::CreateAliasRequest::TargetKeyIdHasBeenSet
bool TargetKeyIdHasBeenSet() const
Definition: CreateAliasRequest.h:168
Aws::KMS::Model::CreateAliasRequest::SetTargetKeyId
void SetTargetKeyId(Aws::String &&value)
Definition: CreateAliasRequest.h:204
Aws::KMS::Model::CreateAliasRequest::SetTargetKeyId
void SetTargetKeyId(const char *value)
Definition: CreateAliasRequest.h:222
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::CreateAliasRequest::GetTargetKeyId
const Aws::String & GetTargetKeyId() const
Definition: CreateAliasRequest.h:150
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::CreateAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::Model::CreateAliasRequest::WithAliasName
CreateAliasRequest & WithAliasName(Aws::String &&value)
Definition: CreateAliasRequest.h:119
Aws::KMS::Model::CreateAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAliasRequest.h:30
Aws::KMS::Model::CreateAliasRequest::AliasNameHasBeenSet
bool AliasNameHasBeenSet() const
Definition: CreateAliasRequest.h:59
Aws::KMS::Model::CreateAliasRequest::WithTargetKeyId
CreateAliasRequest & WithTargetKeyId(const char *value)
Definition: CreateAliasRequest.h:276