7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/secretsmanager/SecretsManagerRequest.h>
12#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
13#include <aws/secretsmanager/model/ReplicaRegionType.h>
14#include <aws/secretsmanager/model/Tag.h>
19namespace SecretsManager {
49 template <
typename NameT = Aws::String>
51 m_nameHasBeenSet =
true;
52 m_name = std::forward<NameT>(value);
54 template <
typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
91 template <
typename ClientRequestTokenT = Aws::String>
93 m_clientRequestTokenHasBeenSet =
true;
94 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
96 template <
typename ClientRequestTokenT = Aws::String>
109 template <
typename DescriptionT = Aws::String>
111 m_descriptionHasBeenSet =
true;
112 m_description = std::forward<DescriptionT>(value);
114 template <
typename DescriptionT = Aws::String>
139 template <
typename KmsKeyIdT = Aws::String>
141 m_kmsKeyIdHasBeenSet =
true;
142 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
144 template <
typename KmsKeyIdT = Aws::String>
164 template <
typename SecretBinaryT = Aws::Utils::CryptoBuffer>
166 m_secretBinaryHasBeenSet =
true;
167 m_secretBinary = std::forward<SecretBinaryT>(value);
169 template <
typename SecretBinaryT = Aws::Utils::CryptoBuffer>
191 template <
typename SecretStringT = Aws::String>
193 m_secretStringHasBeenSet =
true;
194 m_secretString = std::forward<SecretStringT>(value);
196 template <
typename SecretStringT = Aws::String>
232 template <
typename TagsT = Aws::Vector<Tag>>
234 m_tagsHasBeenSet =
true;
235 m_tags = std::forward<TagsT>(value);
237 template <
typename TagsT = Aws::Vector<Tag>>
239 SetTags(std::forward<TagsT>(value));
242 template <
typename TagsT = Tag>
244 m_tagsHasBeenSet =
true;
245 m_tags.emplace_back(std::forward<TagsT>(value));
256 template <
typename AddReplicaRegionsT = Aws::Vector<ReplicaRegionType>>
258 m_addReplicaRegionsHasBeenSet =
true;
259 m_addReplicaRegions = std::forward<AddReplicaRegionsT>(value);
261 template <
typename AddReplicaRegionsT = Aws::Vector<ReplicaRegionType>>
266 template <
typename AddReplicaRegionsT = ReplicaRegionType>
268 m_addReplicaRegionsHasBeenSet =
true;
269 m_addReplicaRegions.emplace_back(std::forward<AddReplicaRegionsT>(value));
282 m_forceOverwriteReplicaSecretHasBeenSet =
true;
283 m_forceOverwriteReplicaSecret = value;
300 template <
typename TypeT = Aws::String>
302 m_typeHasBeenSet =
true;
303 m_type = std::forward<TypeT>(value);
305 template <
typename TypeT = Aws::String>
307 SetType(std::forward<TypeT>(value));
328 bool m_forceOverwriteReplicaSecret{
false};
331 bool m_nameHasBeenSet =
false;
332 bool m_clientRequestTokenHasBeenSet =
true;
333 bool m_descriptionHasBeenSet =
false;
334 bool m_kmsKeyIdHasBeenSet =
false;
335 bool m_secretBinaryHasBeenSet =
false;
336 bool m_secretStringHasBeenSet =
false;
337 bool m_tagsHasBeenSet =
false;
338 bool m_addReplicaRegionsHasBeenSet =
false;
339 bool m_forceOverwriteReplicaSecretHasBeenSet =
false;
340 bool m_typeHasBeenSet =
false;
CreateSecretRequest & WithKmsKeyId(KmsKeyIdT &&value)
bool TypeHasBeenSet() const
void SetForceOverwriteReplicaSecret(bool value)
void SetKmsKeyId(KmsKeyIdT &&value)
CreateSecretRequest & WithTags(TagsT &&value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetType() const
bool ClientRequestTokenHasBeenSet() const
const Aws::String & GetKmsKeyId() const
CreateSecretRequest & WithAddReplicaRegions(AddReplicaRegionsT &&value)
void SetSecretBinary(SecretBinaryT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetSecretString() const
void SetName(NameT &&value)
AWS_SECRETSMANAGER_API CreateSecretRequest()=default
void SetTags(TagsT &&value)
bool ForceOverwriteReplicaSecretHasBeenSet() const
CreateSecretRequest & WithSecretBinary(SecretBinaryT &&value)
CreateSecretRequest & WithClientRequestToken(ClientRequestTokenT &&value)
bool SecretBinaryHasBeenSet() const
CreateSecretRequest & WithDescription(DescriptionT &&value)
CreateSecretRequest & WithSecretString(SecretStringT &&value)
const Aws::Utils::CryptoBuffer & GetSecretBinary() const
const Aws::Vector< ReplicaRegionType > & GetAddReplicaRegions() const
void SetSecretString(SecretStringT &&value)
bool NameHasBeenSet() const
bool SecretStringHasBeenSet() const
bool DescriptionHasBeenSet() const
CreateSecretRequest & AddTags(TagsT &&value)
CreateSecretRequest & WithType(TypeT &&value)
virtual const char * GetServiceRequestName() const override
void SetAddReplicaRegions(AddReplicaRegionsT &&value)
const Aws::String & GetClientRequestToken() const
bool GetForceOverwriteReplicaSecret() const
bool AddReplicaRegionsHasBeenSet() const
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
void SetType(TypeT &&value)
bool TagsHasBeenSet() const
CreateSecretRequest & WithForceOverwriteReplicaSecret(bool value)
bool KmsKeyIdHasBeenSet() const
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateSecretRequest & WithName(NameT &&value)
CreateSecretRequest & AddAddReplicaRegions(AddReplicaRegionsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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