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>
14#include <aws/kms/model/RecipientInfo.h>
44 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
46 m_ciphertextBlobHasBeenSet =
true;
47 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
49 template <
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
75 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
77 m_encryptionContextHasBeenSet =
true;
78 m_encryptionContext = std::forward<EncryptionContextT>(value);
80 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
85 template <
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
87 m_encryptionContextHasBeenSet =
true;
88 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
105 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
107 m_grantTokensHasBeenSet =
true;
108 m_grantTokens = std::forward<GrantTokensT>(value);
110 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
115 template <
typename GrantTokensT = Aws::String>
117 m_grantTokensHasBeenSet =
true;
118 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
147 template <
typename KeyIdT = Aws::String>
149 m_keyIdHasBeenSet =
true;
150 m_keyId = std::forward<KeyIdT>(value);
152 template <
typename KeyIdT = Aws::String>
154 SetKeyId(std::forward<KeyIdT>(value));
172 m_encryptionAlgorithmHasBeenSet =
true;
173 m_encryptionAlgorithm = value;
206 template <
typename RecipientT = RecipientInfo>
208 m_recipientHasBeenSet =
true;
209 m_recipient = std::forward<RecipientT>(value);
211 template <
typename RecipientT = RecipientInfo>
228 m_dryRunHasBeenSet =
true;
247 RecipientInfo m_recipient;
249 bool m_dryRun{
false};
250 bool m_ciphertextBlobHasBeenSet =
false;
251 bool m_encryptionContextHasBeenSet =
false;
252 bool m_grantTokensHasBeenSet =
false;
253 bool m_keyIdHasBeenSet =
false;
254 bool m_encryptionAlgorithmHasBeenSet =
false;
255 bool m_recipientHasBeenSet =
false;
256 bool m_dryRunHasBeenSet =
false;
DecryptRequest & WithDryRun(bool value)
void SetKeyId(KeyIdT &&value)
bool RecipientHasBeenSet() const
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
EncryptionAlgorithmSpec GetEncryptionAlgorithm() const
DecryptRequest & WithKeyId(KeyIdT &&value)
DecryptRequest & WithEncryptionAlgorithm(EncryptionAlgorithmSpec value)
DecryptRequest & WithCiphertextBlob(CiphertextBlobT &&value)
bool EncryptionAlgorithmHasBeenSet() const
void SetEncryptionContext(EncryptionContextT &&value)
DecryptRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
AWS_KMS_API DecryptRequest()=default
void SetDryRun(bool value)
DecryptRequest & AddGrantTokens(GrantTokensT &&value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value)
bool DryRunHasBeenSet() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetGrantTokens(GrantTokensT &&value)
bool EncryptionContextHasBeenSet() const
const Aws::String & GetKeyId() const
bool CiphertextBlobHasBeenSet() const
bool GrantTokensHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
DecryptRequest & WithEncryptionContext(EncryptionContextT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
bool KeyIdHasBeenSet() const
void SetRecipient(RecipientT &&value)
void SetCiphertextBlob(CiphertextBlobT &&value)
const RecipientInfo & GetRecipient() const
DecryptRequest & WithGrantTokens(GrantTokensT &&value)
DecryptRequest & WithRecipient(RecipientT &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
virtual const char * GetServiceRequestName() const override
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