AWS SDK for C++  1.9.131
AWS SDK for C++
EnableKeyRotationRequest.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 "EnableKeyRotation"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
53  inline const Aws::String& GetKeyId() const{ return m_keyId; }
54 
71  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
72 
89  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
90 
107  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
108 
125  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
126 
143  inline EnableKeyRotationRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
144 
161  inline EnableKeyRotationRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
162 
179  inline EnableKeyRotationRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
180 
181  private:
182 
183  Aws::String m_keyId;
184  bool m_keyIdHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace KMS
189 } // namespace Aws
Aws::KMS::Model::EnableKeyRotationRequest::WithKeyId
EnableKeyRotationRequest & WithKeyId(const char *value)
Definition: EnableKeyRotationRequest.h:179
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::EnableKeyRotationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableKeyRotationRequest.h:30
Aws::KMS::Model::EnableKeyRotationRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: EnableKeyRotationRequest.h:89
KMSRequest.h
Aws::KMS::Model::EnableKeyRotationRequest::EnableKeyRotationRequest
EnableKeyRotationRequest()
Aws::KMS::Model::EnableKeyRotationRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: EnableKeyRotationRequest.h:71
Aws::KMS::Model::EnableKeyRotationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::EnableKeyRotationRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: EnableKeyRotationRequest.h:107
Aws::KMS::Model::EnableKeyRotationRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: EnableKeyRotationRequest.h:53
Aws::KMS::Model::EnableKeyRotationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::KMS::Model::EnableKeyRotationRequest::WithKeyId
EnableKeyRotationRequest & WithKeyId(Aws::String &&value)
Definition: EnableKeyRotationRequest.h:161
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
AWSString.h
Aws::KMS::Model::EnableKeyRotationRequest
Definition: EnableKeyRotationRequest.h:22
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::EnableKeyRotationRequest::WithKeyId
EnableKeyRotationRequest & WithKeyId(const Aws::String &value)
Definition: EnableKeyRotationRequest.h:143
KMS_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::EnableKeyRotationRequest::SetKeyId
void SetKeyId(const char *value)
Definition: EnableKeyRotationRequest.h:125