AWS SDK for C++  1.9.129
AWS SDK for C++
ReplicateKeyRequest.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>
11 #include <aws/kms/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace KMS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ReplicateKey"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
50  inline const Aws::String& GetKeyId() const{ return m_keyId; }
51 
63  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
64 
76  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
77 
89  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
90 
102  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
103 
115  inline ReplicateKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
116 
128  inline ReplicateKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
129 
141  inline ReplicateKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
142 
143 
164  inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; }
165 
186  inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; }
187 
208  inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; }
209 
230  inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); }
231 
252  inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); }
253 
274  inline ReplicateKeyRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;}
275 
296  inline ReplicateKeyRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;}
297 
318  inline ReplicateKeyRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;}
319 
320 
347  inline const Aws::String& GetPolicy() const{ return m_policy; }
348 
375  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
376 
403  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
404 
431  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
432 
459  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
460 
487  inline ReplicateKeyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
488 
515  inline ReplicateKeyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
516 
543  inline ReplicateKeyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
544 
545 
557  inline bool GetBypassPolicyLockoutSafetyCheck() const{ return m_bypassPolicyLockoutSafetyCheck; }
558 
570  inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
571 
583  inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
584 
596  inline ReplicateKeyRequest& WithBypassPolicyLockoutSafetyCheck(bool value) { SetBypassPolicyLockoutSafetyCheck(value); return *this;}
597 
598 
606  inline const Aws::String& GetDescription() const{ return m_description; }
607 
615  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
616 
624  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
625 
633  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
634 
642  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
643 
651  inline ReplicateKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
652 
660  inline ReplicateKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
661 
669  inline ReplicateKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
670 
671 
695  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
696 
720  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
721 
745  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
746 
770  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
771 
795  inline ReplicateKeyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
796 
820  inline ReplicateKeyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
821 
845  inline ReplicateKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
846 
870  inline ReplicateKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
871 
872  private:
873 
874  Aws::String m_keyId;
875  bool m_keyIdHasBeenSet;
876 
877  Aws::String m_replicaRegion;
878  bool m_replicaRegionHasBeenSet;
879 
880  Aws::String m_policy;
881  bool m_policyHasBeenSet;
882 
883  bool m_bypassPolicyLockoutSafetyCheck;
884  bool m_bypassPolicyLockoutSafetyCheckHasBeenSet;
885 
886  Aws::String m_description;
887  bool m_descriptionHasBeenSet;
888 
889  Aws::Vector<Tag> m_tags;
890  bool m_tagsHasBeenSet;
891  };
892 
893 } // namespace Model
894 } // namespace KMS
895 } // namespace Aws
Aws::KMS::Model::ReplicateKeyRequest::WithDescription
ReplicateKeyRequest & WithDescription(const Aws::String &value)
Definition: ReplicateKeyRequest.h:651
Tag.h
Aws::KMS::Model::ReplicateKeyRequest::SetDescription
void SetDescription(const char *value)
Definition: ReplicateKeyRequest.h:642
Aws::KMS::Model::ReplicateKeyRequest::WithKeyId
ReplicateKeyRequest & WithKeyId(const Aws::String &value)
Definition: ReplicateKeyRequest.h:115
Aws::KMS::Model::ReplicateKeyRequest::WithKeyId
ReplicateKeyRequest & WithKeyId(const char *value)
Definition: ReplicateKeyRequest.h:141
Aws::KMS::Model::ReplicateKeyRequest::ReplicaRegionHasBeenSet
bool ReplicaRegionHasBeenSet() const
Definition: ReplicateKeyRequest.h:186
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::Tag
Definition: Tag.h:37
Aws::KMS::Model::ReplicateKeyRequest::SetBypassPolicyLockoutSafetyCheck
void SetBypassPolicyLockoutSafetyCheck(bool value)
Definition: ReplicateKeyRequest.h:583
Aws::KMS::Model::ReplicateKeyRequest
Definition: ReplicateKeyRequest.h:24
Aws::KMS::Model::ReplicateKeyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ReplicateKeyRequest.h:606
Aws::KMS::Model::ReplicateKeyRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: ReplicateKeyRequest.h:89
Aws::KMS::Model::ReplicateKeyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: ReplicateKeyRequest.h:347
Aws::KMS::Model::ReplicateKeyRequest::SetReplicaRegion
void SetReplicaRegion(const char *value)
Definition: ReplicateKeyRequest.h:252
Aws::KMS::Model::ReplicateKeyRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ReplicateKeyRequest.h:695
Aws::KMS::Model::ReplicateKeyRequest::WithReplicaRegion
ReplicateKeyRequest & WithReplicaRegion(Aws::String &&value)
Definition: ReplicateKeyRequest.h:296
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::KMS::Model::ReplicateKeyRequest::WithPolicy
ReplicateKeyRequest & WithPolicy(const Aws::String &value)
Definition: ReplicateKeyRequest.h:487
AWSVector.h
KMSRequest.h
Aws::KMS::Model::ReplicateKeyRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ReplicateKeyRequest.h:720
Aws::KMS::Model::ReplicateKeyRequest::SetKeyId
void SetKeyId(const char *value)
Definition: ReplicateKeyRequest.h:102
Aws::KMS::Model::ReplicateKeyRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: ReplicateKeyRequest.h:76
Aws::KMS::Model::ReplicateKeyRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: ReplicateKeyRequest.h:50
Aws::KMS::Model::ReplicateKeyRequest::BypassPolicyLockoutSafetyCheckHasBeenSet
bool BypassPolicyLockoutSafetyCheckHasBeenSet() const
Definition: ReplicateKeyRequest.h:570
Aws::KMS::Model::ReplicateKeyRequest::WithTags
ReplicateKeyRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: ReplicateKeyRequest.h:795
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::ReplicateKeyRequest::WithDescription
ReplicateKeyRequest & WithDescription(Aws::String &&value)
Definition: ReplicateKeyRequest.h:660
Aws::KMS::Model::ReplicateKeyRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ReplicateKeyRequest.h:745
Aws::KMS::Model::ReplicateKeyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ReplicateKeyRequest.h:624
Aws::KMS::Model::ReplicateKeyRequest::WithDescription
ReplicateKeyRequest & WithDescription(const char *value)
Definition: ReplicateKeyRequest.h:669
Aws::KMS::Model::ReplicateKeyRequest::SetReplicaRegion
void SetReplicaRegion(const Aws::String &value)
Definition: ReplicateKeyRequest.h:208
Aws::KMS::Model::ReplicateKeyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: ReplicateKeyRequest.h:375
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
Aws::KMS::Model::ReplicateKeyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: ReplicateKeyRequest.h:431
Aws::KMS::Model::ReplicateKeyRequest::AddTags
ReplicateKeyRequest & AddTags(const Tag &value)
Definition: ReplicateKeyRequest.h:845
Aws::KMS::Model::ReplicateKeyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::KMS::Model::ReplicateKeyRequest::ReplicateKeyRequest
ReplicateKeyRequest()
Aws::KMS::Model::ReplicateKeyRequest::GetReplicaRegion
const Aws::String & GetReplicaRegion() const
Definition: ReplicateKeyRequest.h:164
Aws::KMS::Model::ReplicateKeyRequest::WithPolicy
ReplicateKeyRequest & WithPolicy(Aws::String &&value)
Definition: ReplicateKeyRequest.h:515
Aws::KMS::Model::ReplicateKeyRequest::GetBypassPolicyLockoutSafetyCheck
bool GetBypassPolicyLockoutSafetyCheck() const
Definition: ReplicateKeyRequest.h:557
Aws::KMS::Model::ReplicateKeyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ReplicateKeyRequest.h:615
Aws::KMS::Model::ReplicateKeyRequest::WithPolicy
ReplicateKeyRequest & WithPolicy(const char *value)
Definition: ReplicateKeyRequest.h:543
Aws::KMS::Model::ReplicateKeyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: ReplicateKeyRequest.h:459
Aws::KMS::Model::ReplicateKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReplicateKeyRequest.h:32
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::ReplicateKeyRequest::AddTags
ReplicateKeyRequest & AddTags(Tag &&value)
Definition: ReplicateKeyRequest.h:870
Aws::KMS::Model::ReplicateKeyRequest::WithTags
ReplicateKeyRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: ReplicateKeyRequest.h:820
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::ReplicateKeyRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ReplicateKeyRequest.h:770
Aws::KMS::Model::ReplicateKeyRequest::WithBypassPolicyLockoutSafetyCheck
ReplicateKeyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
Definition: ReplicateKeyRequest.h:596
Aws::KMS::Model::ReplicateKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::KMS::Model::ReplicateKeyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ReplicateKeyRequest.h:633
KMS_EXPORTS.h
Aws::KMS::Model::ReplicateKeyRequest::SetReplicaRegion
void SetReplicaRegion(Aws::String &&value)
Definition: ReplicateKeyRequest.h:230
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::ReplicateKeyRequest::WithKeyId
ReplicateKeyRequest & WithKeyId(Aws::String &&value)
Definition: ReplicateKeyRequest.h:128
Aws::KMS::Model::ReplicateKeyRequest::WithReplicaRegion
ReplicateKeyRequest & WithReplicaRegion(const Aws::String &value)
Definition: ReplicateKeyRequest.h:274
Aws::KMS::Model::ReplicateKeyRequest::WithReplicaRegion
ReplicateKeyRequest & WithReplicaRegion(const char *value)
Definition: ReplicateKeyRequest.h:318
Aws::KMS::Model::ReplicateKeyRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: ReplicateKeyRequest.h:63
Aws::KMS::Model::ReplicateKeyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: ReplicateKeyRequest.h:403