AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ReplicateKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kms/KMSRequest.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace KMS {
17namespace Model {
18
22 public:
23 AWS_KMS_API ReplicateKeyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ReplicateKey"; }
30
31 AWS_KMS_API Aws::String SerializePayload() const override;
32
34
36
47 inline const Aws::String& GetKeyId() const { return m_keyId; }
48 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
49 template <typename KeyIdT = Aws::String>
50 void SetKeyId(KeyIdT&& value) {
51 m_keyIdHasBeenSet = true;
52 m_keyId = std::forward<KeyIdT>(value);
53 }
54 template <typename KeyIdT = Aws::String>
55 ReplicateKeyRequest& WithKeyId(KeyIdT&& value) {
56 SetKeyId(std::forward<KeyIdT>(value));
57 return *this;
58 }
60
62
82 inline const Aws::String& GetReplicaRegion() const { return m_replicaRegion; }
83 inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; }
84 template <typename ReplicaRegionT = Aws::String>
85 void SetReplicaRegion(ReplicaRegionT&& value) {
86 m_replicaRegionHasBeenSet = true;
87 m_replicaRegion = std::forward<ReplicaRegionT>(value);
88 }
89 template <typename ReplicaRegionT = Aws::String>
90 ReplicateKeyRequest& WithReplicaRegion(ReplicaRegionT&& value) {
91 SetReplicaRegion(std::forward<ReplicaRegionT>(value));
92 return *this;
93 }
95
97
133 inline const Aws::String& GetPolicy() const { return m_policy; }
134 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
135 template <typename PolicyT = Aws::String>
136 void SetPolicy(PolicyT&& value) {
137 m_policyHasBeenSet = true;
138 m_policy = std::forward<PolicyT>(value);
139 }
140 template <typename PolicyT = Aws::String>
141 ReplicateKeyRequest& WithPolicy(PolicyT&& value) {
142 SetPolicy(std::forward<PolicyT>(value));
143 return *this;
144 }
146
148
160 inline bool GetBypassPolicyLockoutSafetyCheck() const { return m_bypassPolicyLockoutSafetyCheck; }
161 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
162 inline void SetBypassPolicyLockoutSafetyCheck(bool value) {
163 m_bypassPolicyLockoutSafetyCheckHasBeenSet = true;
164 m_bypassPolicyLockoutSafetyCheck = value;
165 }
168 return *this;
169 }
171
173
182 inline const Aws::String& GetDescription() const { return m_description; }
183 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
184 template <typename DescriptionT = Aws::String>
185 void SetDescription(DescriptionT&& value) {
186 m_descriptionHasBeenSet = true;
187 m_description = std::forward<DescriptionT>(value);
188 }
189 template <typename DescriptionT = Aws::String>
190 ReplicateKeyRequest& WithDescription(DescriptionT&& value) {
191 SetDescription(std::forward<DescriptionT>(value));
192 return *this;
193 }
195
197
223 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 template <typename TagsT = Aws::Vector<Tag>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Vector<Tag>>
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsT = Tag>
236 ReplicateKeyRequest& AddTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags.emplace_back(std::forward<TagsT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_keyId;
244
245 Aws::String m_replicaRegion;
246
247 Aws::String m_policy;
248
249 bool m_bypassPolicyLockoutSafetyCheck{false};
250
251 Aws::String m_description;
252
253 Aws::Vector<Tag> m_tags;
254 bool m_keyIdHasBeenSet = false;
255 bool m_replicaRegionHasBeenSet = false;
256 bool m_policyHasBeenSet = false;
257 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
258 bool m_descriptionHasBeenSet = false;
259 bool m_tagsHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace KMS
264} // namespace Aws
ReplicateKeyRequest & AddTags(TagsT &&value)
ReplicateKeyRequest & WithKeyId(KeyIdT &&value)
const Aws::String & GetReplicaRegion() const
AWS_KMS_API Aws::String SerializePayload() const override
ReplicateKeyRequest & WithTags(TagsT &&value)
ReplicateKeyRequest & WithPolicy(PolicyT &&value)
ReplicateKeyRequest & WithReplicaRegion(ReplicaRegionT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetPolicy() const
const Aws::String & GetKeyId() const
const Aws::Vector< Tag > & GetTags() const
AWS_KMS_API ReplicateKeyRequest()=default
void SetDescription(DescriptionT &&value)
ReplicateKeyRequest & WithDescription(DescriptionT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ReplicateKeyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
virtual const char * GetServiceRequestName() const override
void SetReplicaRegion(ReplicaRegionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector