AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicateKeyRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace KMS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KMS_API ReplicateKeyRequest();
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_KMS_API Aws::String SerializePayload() const override;
35
37
38
40
51 inline const Aws::String& GetKeyId() const{ return m_keyId; }
52 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
53 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
54 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
55 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
56 inline ReplicateKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
57 inline ReplicateKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
58 inline ReplicateKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
60
62
89 inline const Aws::String& GetReplicaRegion() const{ return m_replicaRegion; }
90 inline bool ReplicaRegionHasBeenSet() const { return m_replicaRegionHasBeenSet; }
91 inline void SetReplicaRegion(const Aws::String& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = value; }
92 inline void SetReplicaRegion(Aws::String&& value) { m_replicaRegionHasBeenSet = true; m_replicaRegion = std::move(value); }
93 inline void SetReplicaRegion(const char* value) { m_replicaRegionHasBeenSet = true; m_replicaRegion.assign(value); }
94 inline ReplicateKeyRequest& WithReplicaRegion(const Aws::String& value) { SetReplicaRegion(value); return *this;}
95 inline ReplicateKeyRequest& WithReplicaRegion(Aws::String&& value) { SetReplicaRegion(std::move(value)); return *this;}
96 inline ReplicateKeyRequest& WithReplicaRegion(const char* value) { SetReplicaRegion(value); return *this;}
98
100
136 inline const Aws::String& GetPolicy() const{ return m_policy; }
137 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
138 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
139 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
140 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
141 inline ReplicateKeyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
142 inline ReplicateKeyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
143 inline ReplicateKeyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
145
147
159 inline bool GetBypassPolicyLockoutSafetyCheck() const{ return m_bypassPolicyLockoutSafetyCheck; }
160 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
161 inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
164
166
175 inline const Aws::String& GetDescription() const{ return m_description; }
176 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
177 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
178 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
179 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
180 inline ReplicateKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
181 inline ReplicateKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
182 inline ReplicateKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
184
186
212 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
213 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
214 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
215 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
216 inline ReplicateKeyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
217 inline ReplicateKeyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
218 inline ReplicateKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
219 inline ReplicateKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
221 private:
222
223 Aws::String m_keyId;
224 bool m_keyIdHasBeenSet = false;
225
226 Aws::String m_replicaRegion;
227 bool m_replicaRegionHasBeenSet = false;
228
229 Aws::String m_policy;
230 bool m_policyHasBeenSet = false;
231
232 bool m_bypassPolicyLockoutSafetyCheck;
233 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::Vector<Tag> m_tags;
239 bool m_tagsHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace KMS
244} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
ReplicateKeyRequest & WithReplicaRegion(Aws::String &&value)
ReplicateKeyRequest & AddTags(Tag &&value)
void SetPolicy(const Aws::String &value)
ReplicateKeyRequest & WithPolicy(Aws::String &&value)
ReplicateKeyRequest & WithReplicaRegion(const Aws::String &value)
ReplicateKeyRequest & WithDescription(const char *value)
const Aws::String & GetReplicaRegion() const
ReplicateKeyRequest & AddTags(const Tag &value)
AWS_KMS_API Aws::String SerializePayload() const override
void SetReplicaRegion(const Aws::String &value)
ReplicateKeyRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDescription() const
ReplicateKeyRequest & WithDescription(Aws::String &&value)
ReplicateKeyRequest & WithDescription(const Aws::String &value)
const Aws::String & GetPolicy() const
const Aws::String & GetKeyId() const
ReplicateKeyRequest & WithReplicaRegion(const char *value)
void SetKeyId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetDescription(const Aws::String &value)
ReplicateKeyRequest & WithPolicy(const char *value)
ReplicateKeyRequest & WithKeyId(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetReplicaRegion(Aws::String &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ReplicateKeyRequest & WithTags(const Aws::Vector< Tag > &value)
ReplicateKeyRequest & WithKeyId(const char *value)
ReplicateKeyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
ReplicateKeyRequest & WithKeyId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ReplicateKeyRequest & WithPolicy(const Aws::String &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