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/memory/stl/AWSMap.h>
11#include <aws/kms/model/DataKeySpec.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
59 template<
typename KeyIdT = Aws::String>
60 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
61 template<
typename KeyIdT = Aws::String>
82 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
83 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet =
true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
84 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
86 template<
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
88 m_encryptionContextHasBeenSet =
true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
return *
this;
112 inline void SetNumberOfBytes(
int value) { m_numberOfBytesHasBeenSet =
true; m_numberOfBytes = value; }
128 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
129 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
130 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
132 template<
typename GrantTokensT = Aws::String>
145 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
151 bool m_keyIdHasBeenSet =
false;
154 bool m_encryptionContextHasBeenSet =
false;
157 bool m_keySpecHasBeenSet =
false;
159 int m_numberOfBytes{0};
160 bool m_numberOfBytesHasBeenSet =
false;
163 bool m_grantTokensHasBeenSet =
false;
165 bool m_dryRun{
false};
166 bool m_dryRunHasBeenSet =
false;
GenerateDataKeyWithoutPlaintextRequest & WithEncryptionContext(EncryptionContextT &&value)
void SetGrantTokens(GrantTokensT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
DataKeySpec GetKeySpec() const
AWS_KMS_API GenerateDataKeyWithoutPlaintextRequest()=default
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
bool EncryptionContextHasBeenSet() const
GenerateDataKeyWithoutPlaintextRequest & AddGrantTokens(GrantTokensT &&value)
bool KeySpecHasBeenSet() const
void SetDryRun(bool value)
bool DryRunHasBeenSet() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetKeyId() const
GenerateDataKeyWithoutPlaintextRequest & WithDryRun(bool value)
bool GrantTokensHasBeenSet() const
GenerateDataKeyWithoutPlaintextRequest & WithKeySpec(DataKeySpec value)
GenerateDataKeyWithoutPlaintextRequest & WithGrantTokens(GrantTokensT &&value)
void SetKeySpec(DataKeySpec value)
AWS_KMS_API Aws::String SerializePayload() const override
int GetNumberOfBytes() const
virtual const char * GetServiceRequestName() const override
GenerateDataKeyWithoutPlaintextRequest & WithKeyId(KeyIdT &&value)
void SetNumberOfBytes(int value)
void SetEncryptionContext(EncryptionContextT &&value)
bool NumberOfBytesHasBeenSet() const
GenerateDataKeyWithoutPlaintextRequest & WithNumberOfBytes(int value)
void SetKeyId(KeyIdT &&value)
bool KeyIdHasBeenSet() const
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