7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
9#include <aws/payment-cryptography/model/KeyAttributes.h>
10#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/payment-cryptography/model/DeriveKeyUsage.h>
13#include <aws/payment-cryptography/model/Tag.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
19namespace PaymentCryptography
50 template<
typename KeyAttributesT = KeyAttributes>
51 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet =
true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
52 template<
typename KeyAttributesT = KeyAttributes>
78 inline void SetExportable(
bool value) { m_exportableHasBeenSet =
true; m_exportable = value; }
90 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
111 template<
typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
113 template<
typename TagsT = Aws::Vector<Tag>>
115 template<
typename TagsT = Tag>
116 CreateKeyRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
135 template<
typename ReplicationRegionsT = Aws::Vector<Aws::String>>
136 void SetReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet =
true; m_replicationRegions = std::forward<ReplicationRegionsT>(value); }
137 template<
typename ReplicationRegionsT = Aws::Vector<Aws::String>>
139 template<
typename ReplicationRegionsT = Aws::String>
140 CreateKeyRequest&
AddReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet =
true; m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value));
return *
this; }
145 bool m_keyAttributesHasBeenSet =
false;
148 bool m_keyCheckValueAlgorithmHasBeenSet =
false;
150 bool m_exportable{
false};
151 bool m_exportableHasBeenSet =
false;
153 bool m_enabled{
false};
154 bool m_enabledHasBeenSet =
false;
157 bool m_tagsHasBeenSet =
false;
160 bool m_deriveKeyUsageHasBeenSet =
false;
163 bool m_replicationRegionsHasBeenSet =
false;
CreateKeyRequest & WithTags(TagsT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetReplicationRegions() const
void SetEnabled(bool value)
CreateKeyRequest & WithReplicationRegions(ReplicationRegionsT &&value)
void SetReplicationRegions(ReplicationRegionsT &&value)
void SetKeyAttributes(KeyAttributesT &&value)
CreateKeyRequest & WithEnabled(bool value)
CreateKeyRequest & WithKeyAttributes(KeyAttributesT &&value)
void SetDeriveKeyUsage(DeriveKeyUsage value)
const Aws::Vector< Tag > & GetTags() const
bool GetExportable() const
bool KeyAttributesHasBeenSet() const
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
void SetTags(TagsT &&value)
CreateKeyRequest & AddTags(TagsT &&value)
CreateKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
DeriveKeyUsage GetDeriveKeyUsage() const
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
bool DeriveKeyUsageHasBeenSet() const
CreateKeyRequest & WithDeriveKeyUsage(DeriveKeyUsage value)
bool ExportableHasBeenSet() const
const KeyAttributes & GetKeyAttributes() const
bool TagsHasBeenSet() const
void SetExportable(bool value)
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
bool KeyCheckValueAlgorithmHasBeenSet() const
CreateKeyRequest & AddReplicationRegions(ReplicationRegionsT &&value)
bool ReplicationRegionsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_PAYMENTCRYPTOGRAPHY_API CreateKeyRequest()=default
bool EnabledHasBeenSet() const
CreateKeyRequest & WithExportable(bool 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