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>
56 template <
typename KeyIdT = Aws::String>
58 m_keyIdHasBeenSet =
true;
59 m_keyId = std::forward<KeyIdT>(value);
61 template <
typename KeyIdT = Aws::String>
63 SetKeyId(std::forward<KeyIdT>(value));
74 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
76 m_plaintextHasBeenSet =
true;
77 m_plaintext = std::forward<PlaintextT>(value);
79 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
108 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
110 m_encryptionContextHasBeenSet =
true;
111 m_encryptionContext = std::forward<EncryptionContextT>(value);
113 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
118 template <
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
120 m_encryptionContextHasBeenSet =
true;
121 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
138 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
140 m_grantTokensHasBeenSet =
true;
141 m_grantTokens = std::forward<GrantTokensT>(value);
143 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
148 template <
typename GrantTokensT = Aws::String>
150 m_grantTokensHasBeenSet =
true;
151 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
169 m_encryptionAlgorithmHasBeenSet =
true;
170 m_encryptionAlgorithm = value;
188 m_dryRunHasBeenSet =
true;
207 bool m_dryRun{
false};
208 bool m_keyIdHasBeenSet =
false;
209 bool m_plaintextHasBeenSet =
false;
210 bool m_encryptionContextHasBeenSet =
false;
211 bool m_grantTokensHasBeenSet =
false;
212 bool m_encryptionAlgorithmHasBeenSet =
false;
213 bool m_dryRunHasBeenSet =
false;
EncryptRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
EncryptRequest & WithEncryptionContext(EncryptionContextT &&value)
bool EncryptionContextHasBeenSet() const
AWS_KMS_API Aws::String SerializePayload() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool GrantTokensHasBeenSet() const
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value)
bool EncryptionAlgorithmHasBeenSet() const
EncryptionAlgorithmSpec GetEncryptionAlgorithm() const
bool KeyIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
EncryptRequest & WithGrantTokens(GrantTokensT &&value)
EncryptRequest & AddGrantTokens(GrantTokensT &&value)
EncryptRequest & WithKeyId(KeyIdT &&value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
void SetPlaintext(PlaintextT &&value)
const Aws::String & GetKeyId() const
virtual const char * GetServiceRequestName() const override
EncryptRequest & WithDryRun(bool value)
void SetEncryptionContext(EncryptionContextT &&value)
void SetGrantTokens(GrantTokensT &&value)
AWS_KMS_API EncryptRequest()=default
void SetDryRun(bool value)
bool PlaintextHasBeenSet() const
bool DryRunHasBeenSet() const
EncryptRequest & WithPlaintext(PlaintextT &&value)
void SetKeyId(KeyIdT &&value)
EncryptRequest & WithEncryptionAlgorithm(EncryptionAlgorithmSpec 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