7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/kms/model/EncryptionAlgorithmSpec.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
47 template<
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
48 void SetCiphertextBlob(CiphertextBlobT&& value) { m_ciphertextBlobHasBeenSet =
true; m_ciphertextBlob = std::forward<CiphertextBlobT>(value); }
49 template<
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
69 template<
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
70 void SetSourceEncryptionContext(SourceEncryptionContextT&& value) { m_sourceEncryptionContextHasBeenSet =
true; m_sourceEncryptionContext = std::forward<SourceEncryptionContextT>(value); }
71 template<
typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
73 template<
typename SourceEncryptionContextKeyT = Aws::String,
typename SourceEncryptionContextValueT = Aws::String>
75 m_sourceEncryptionContextHasBeenSet =
true; m_sourceEncryptionContext.emplace(std::forward<SourceEncryptionContextKeyT>(key), std::forward<SourceEncryptionContextValueT>(value));
return *
this;
103 template<
typename SourceKeyIdT = Aws::String>
104 void SetSourceKeyId(SourceKeyIdT&& value) { m_sourceKeyIdHasBeenSet =
true; m_sourceKeyId = std::forward<SourceKeyIdT>(value); }
105 template<
typename SourceKeyIdT = Aws::String>
129 template<
typename DestinationKeyIdT = Aws::String>
130 void SetDestinationKeyId(DestinationKeyIdT&& value) { m_destinationKeyIdHasBeenSet =
true; m_destinationKeyId = std::forward<DestinationKeyIdT>(value); }
131 template<
typename DestinationKeyIdT = Aws::String>
155 template<
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
156 void SetDestinationEncryptionContext(DestinationEncryptionContextT&& value) { m_destinationEncryptionContextHasBeenSet =
true; m_destinationEncryptionContext = std::forward<DestinationEncryptionContextT>(value); }
157 template<
typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
159 template<
typename DestinationEncryptionContextKeyT = Aws::String,
typename DestinationEncryptionContextValueT = Aws::String>
161 m_destinationEncryptionContextHasBeenSet =
true; m_destinationEncryptionContext.emplace(std::forward<DestinationEncryptionContextKeyT>(key), std::forward<DestinationEncryptionContextValueT>(value));
return *
this;
207 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
208 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
209 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
211 template<
typename GrantTokensT = Aws::String>
212 ReEncryptRequest&
AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
return *
this; }
224 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
230 bool m_ciphertextBlobHasBeenSet =
false;
233 bool m_sourceEncryptionContextHasBeenSet =
false;
236 bool m_sourceKeyIdHasBeenSet =
false;
239 bool m_destinationKeyIdHasBeenSet =
false;
242 bool m_destinationEncryptionContextHasBeenSet =
false;
245 bool m_sourceEncryptionAlgorithmHasBeenSet =
false;
248 bool m_destinationEncryptionAlgorithmHasBeenSet =
false;
251 bool m_grantTokensHasBeenSet =
false;
253 bool m_dryRun{
false};
254 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