7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/KMSRequest.h>
12#include <aws/kms/KMS_EXPORTS.h>
13#include <aws/kms/model/DryRunModifierType.h>
14#include <aws/kms/model/EncryptionAlgorithmSpec.h>
46 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
48 m_ciphertextBlobHasBeenSet =
true;
49 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
51 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
74 template <
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
76 m_sourceEncryptionContextHasBeenSet =
true;
77 m_sourceEncryptionContext = std::forward<SourceEncryptionContextT>(value);
79 template <
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
84 template <
typename SourceEncryptionContextKeyT = Aws::String,
typename SourceEncryptionContextValueT = Aws::String>
86 m_sourceEncryptionContextHasBeenSet =
true;
87 m_sourceEncryptionContext.emplace(std::forward<SourceEncryptionContextKeyT>(key), std::forward<SourceEncryptionContextValueT>(value));
118 template <
typename SourceKeyIdT = Aws::String>
120 m_sourceKeyIdHasBeenSet =
true;
121 m_sourceKeyId = std::forward<SourceKeyIdT>(value);
123 template <
typename SourceKeyIdT = Aws::String>
150 template <
typename DestinationKeyIdT = Aws::String>
152 m_destinationKeyIdHasBeenSet =
true;
153 m_destinationKeyId = std::forward<DestinationKeyIdT>(value);
155 template <
typename DestinationKeyIdT = Aws::String>
182 template <
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
184 m_destinationEncryptionContextHasBeenSet =
true;
185 m_destinationEncryptionContext = std::forward<DestinationEncryptionContextT>(value);
187 template <
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
192 template <
typename DestinationEncryptionContextKeyT = Aws::String,
typename DestinationEncryptionContextValueT = Aws::String>
194 m_destinationEncryptionContextHasBeenSet =
true;
195 m_destinationEncryptionContext.emplace(std::forward<DestinationEncryptionContextKeyT>(key),
196 std::forward<DestinationEncryptionContextValueT>(value));
214 m_sourceEncryptionAlgorithmHasBeenSet =
true;
215 m_sourceEncryptionAlgorithm = value;
234 m_destinationEncryptionAlgorithmHasBeenSet =
true;
235 m_destinationEncryptionAlgorithm = value;
255 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
257 m_grantTokensHasBeenSet =
true;
258 m_grantTokens = std::forward<GrantTokensT>(value);
260 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
265 template <
typename GrantTokensT = Aws::String>
267 m_grantTokensHasBeenSet =
true;
268 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
283 m_dryRunHasBeenSet =
true;
306 template <
typename DryRunModifiersT = Aws::Vector<DryRunModifierType>>
308 m_dryRunModifiersHasBeenSet =
true;
309 m_dryRunModifiers = std::forward<DryRunModifiersT>(value);
311 template <
typename DryRunModifiersT = Aws::Vector<DryRunModifierType>>
317 m_dryRunModifiersHasBeenSet =
true;
318 m_dryRunModifiers.push_back(value);
339 bool m_dryRun{
false};
342 bool m_ciphertextBlobHasBeenSet =
false;
343 bool m_sourceEncryptionContextHasBeenSet =
false;
344 bool m_sourceKeyIdHasBeenSet =
false;
345 bool m_destinationKeyIdHasBeenSet =
false;
346 bool m_destinationEncryptionContextHasBeenSet =
false;
347 bool m_sourceEncryptionAlgorithmHasBeenSet =
false;
348 bool m_destinationEncryptionAlgorithmHasBeenSet =
false;
349 bool m_grantTokensHasBeenSet =
false;
350 bool m_dryRunHasBeenSet =
false;
351 bool m_dryRunModifiersHasBeenSet =
false;
void SetSourceKeyId(SourceKeyIdT &&value)
bool DestinationEncryptionAlgorithmHasBeenSet() const
ReEncryptRequest & WithGrantTokens(GrantTokensT &&value)
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptRequest & AddGrantTokens(GrantTokensT &&value)
AWS_KMS_API ReEncryptRequest()=default
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
bool DryRunHasBeenSet() const
ReEncryptRequest & WithDestinationEncryptionContext(DestinationEncryptionContextT &&value)
virtual const char * GetServiceRequestName() const override
bool DestinationEncryptionContextHasBeenSet() const
bool CiphertextBlobHasBeenSet() const
EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const
void SetSourceEncryptionContext(SourceEncryptionContextT &&value)
ReEncryptRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
bool SourceEncryptionContextHasBeenSet() const
bool DestinationKeyIdHasBeenSet() const
void SetDryRun(bool value)
const Aws::String & GetSourceKeyId() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ReEncryptRequest & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptRequest & WithDryRunModifiers(DryRunModifiersT &&value)
ReEncryptRequest & AddSourceEncryptionContext(SourceEncryptionContextKeyT &&key, SourceEncryptionContextValueT &&value)
ReEncryptRequest & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
const Aws::String & GetDestinationKeyId() const
ReEncryptRequest & AddDryRunModifiers(DryRunModifierType value)
bool GrantTokensHasBeenSet() const
ReEncryptRequest & AddDestinationEncryptionContext(DestinationEncryptionContextKeyT &&key, DestinationEncryptionContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDestinationEncryptionContext() const
const Aws::Map< Aws::String, Aws::String > & GetSourceEncryptionContext() const
void SetCiphertextBlob(CiphertextBlobT &&value)
void SetDestinationEncryptionContext(DestinationEncryptionContextT &&value)
EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const
AWS_KMS_API Aws::String SerializePayload() const override
ReEncryptRequest & WithSourceEncryptionContext(SourceEncryptionContextT &&value)
void SetDryRunModifiers(DryRunModifiersT &&value)
void SetDestinationKeyId(DestinationKeyIdT &&value)
void SetGrantTokens(GrantTokensT &&value)
ReEncryptRequest & WithDestinationKeyId(DestinationKeyIdT &&value)
const Aws::Vector< DryRunModifierType > & GetDryRunModifiers() const
bool SourceEncryptionAlgorithmHasBeenSet() const
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
ReEncryptRequest & WithCiphertextBlob(CiphertextBlobT &&value)
bool DryRunModifiersHasBeenSet() const
bool SourceKeyIdHasBeenSet() const
ReEncryptRequest & WithSourceKeyId(SourceKeyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector