7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/EncryptionAlgorithmSpec.h>
60 template<
typename KeyIdT = Aws::String>
61 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
62 template<
typename KeyIdT = Aws::String>
72 template<
typename Pla
intextT = Aws::Utils::CryptoBuffer>
73 void SetPlaintext(PlaintextT&& value) { m_plaintextHasBeenSet =
true; m_plaintext = std::forward<PlaintextT>(value); }
74 template<
typename Pla
intextT = Aws::Utils::CryptoBuffer>
100 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
101 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet =
true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
102 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
104 template<
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
106 m_encryptionContextHasBeenSet =
true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
return *
this;
122 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
123 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
124 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
126 template<
typename GrantTokensT = Aws::String>
127 EncryptRequest&
AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
return *
this; }
155 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
161 bool m_keyIdHasBeenSet =
false;
164 bool m_plaintextHasBeenSet =
false;
167 bool m_encryptionContextHasBeenSet =
false;
170 bool m_grantTokensHasBeenSet =
false;
173 bool m_encryptionAlgorithmHasBeenSet =
false;
175 bool m_dryRun{
false};
176 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