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/EncryptionAlgorithmSpec.h>
43 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
45 m_ciphertextBlobHasBeenSet =
true;
46 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
48 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
71 template <
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
73 m_sourceEncryptionContextHasBeenSet =
true;
74 m_sourceEncryptionContext = std::forward<SourceEncryptionContextT>(value);
76 template <
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
81 template <
typename SourceEncryptionContextKeyT = Aws::String,
typename SourceEncryptionContextValueT = Aws::String>
83 m_sourceEncryptionContextHasBeenSet =
true;
84 m_sourceEncryptionContext.emplace(std::forward<SourceEncryptionContextKeyT>(key), std::forward<SourceEncryptionContextValueT>(value));
113 template <
typename SourceKeyIdT = Aws::String>
115 m_sourceKeyIdHasBeenSet =
true;
116 m_sourceKeyId = std::forward<SourceKeyIdT>(value);
118 template <
typename SourceKeyIdT = Aws::String>
145 template <
typename DestinationKeyIdT = Aws::String>
147 m_destinationKeyIdHasBeenSet =
true;
148 m_destinationKeyId = std::forward<DestinationKeyIdT>(value);
150 template <
typename DestinationKeyIdT = Aws::String>
177 template <
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
179 m_destinationEncryptionContextHasBeenSet =
true;
180 m_destinationEncryptionContext = std::forward<DestinationEncryptionContextT>(value);
182 template <
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
187 template <
typename DestinationEncryptionContextKeyT = Aws::String,
typename DestinationEncryptionContextValueT = Aws::String>
189 m_destinationEncryptionContextHasBeenSet =
true;
190 m_destinationEncryptionContext.emplace(std::forward<DestinationEncryptionContextKeyT>(key),
191 std::forward<DestinationEncryptionContextValueT>(value));
209 m_sourceEncryptionAlgorithmHasBeenSet =
true;
210 m_sourceEncryptionAlgorithm = value;
229 m_destinationEncryptionAlgorithmHasBeenSet =
true;
230 m_destinationEncryptionAlgorithm = value;
250 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
252 m_grantTokensHasBeenSet =
true;
253 m_grantTokens = std::forward<GrantTokensT>(value);
255 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
260 template <
typename GrantTokensT = Aws::String>
262 m_grantTokensHasBeenSet =
true;
263 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
278 m_dryRunHasBeenSet =
true;
303 bool m_dryRun{
false};
304 bool m_ciphertextBlobHasBeenSet =
false;
305 bool m_sourceEncryptionContextHasBeenSet =
false;
306 bool m_sourceKeyIdHasBeenSet =
false;
307 bool m_destinationKeyIdHasBeenSet =
false;
308 bool m_destinationEncryptionContextHasBeenSet =
false;
309 bool m_sourceEncryptionAlgorithmHasBeenSet =
false;
310 bool m_destinationEncryptionAlgorithmHasBeenSet =
false;
311 bool m_grantTokensHasBeenSet =
false;
312 bool m_dryRunHasBeenSet =
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 & AddSourceEncryptionContext(SourceEncryptionContextKeyT &&key, SourceEncryptionContextValueT &&value)
ReEncryptRequest & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
const Aws::String & GetDestinationKeyId() const
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 SetDestinationKeyId(DestinationKeyIdT &&value)
void SetGrantTokens(GrantTokensT &&value)
ReEncryptRequest & WithDestinationKeyId(DestinationKeyIdT &&value)
bool SourceEncryptionAlgorithmHasBeenSet() const
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
ReEncryptRequest & WithCiphertextBlob(CiphertextBlobT &&value)
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