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/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/kms/model/EncryptionAlgorithmSpec.h>
14#include <aws/kms/model/RecipientInfo.h>
48 template<
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
49 void SetCiphertextBlob(CiphertextBlobT&& value) { m_ciphertextBlobHasBeenSet =
true; m_ciphertextBlob = std::forward<CiphertextBlobT>(value); }
50 template<
typename CiphertextBlobT = Aws::Utils::ByteBuffer>
73 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
74 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet =
true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
75 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
77 template<
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
79 m_encryptionContextHasBeenSet =
true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
return *
this;
95 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
96 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
97 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
99 template<
typename GrantTokensT = Aws::String>
100 DecryptRequest&
AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
return *
this; }
127 template<
typename KeyIdT = Aws::String>
128 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
129 template<
typename KeyIdT = Aws::String>
173 template<
typename RecipientT = RecipientInfo>
174 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet =
true; m_recipient = std::forward<RecipientT>(value); }
175 template<
typename RecipientT = RecipientInfo>
188 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
194 bool m_ciphertextBlobHasBeenSet =
false;
197 bool m_encryptionContextHasBeenSet =
false;
200 bool m_grantTokensHasBeenSet =
false;
203 bool m_keyIdHasBeenSet =
false;
206 bool m_encryptionAlgorithmHasBeenSet =
false;
208 RecipientInfo m_recipient;
209 bool m_recipientHasBeenSet =
false;
211 bool m_dryRun{
false};
212 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