7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMSRequest.h>
11#include <aws/kms/KMS_EXPORTS.h>
12#include <aws/kms/model/DataKeySpec.h>
13#include <aws/kms/model/RecipientInfo.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));
85 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
87 m_encryptionContextHasBeenSet =
true;
88 m_encryptionContext = std::forward<EncryptionContextT>(value);
90 template <
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
95 template <
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
97 m_encryptionContextHasBeenSet =
true;
98 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
114 m_numberOfBytesHasBeenSet =
true;
115 m_numberOfBytes = value;
134 m_keySpecHasBeenSet =
true;
155 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
157 m_grantTokensHasBeenSet =
true;
158 m_grantTokens = std::forward<GrantTokensT>(value);
160 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
165 template <
typename GrantTokensT = Aws::String>
167 m_grantTokensHasBeenSet =
true;
168 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
200 template <
typename RecipientT = RecipientInfo>
202 m_recipientHasBeenSet =
true;
203 m_recipient = std::forward<RecipientT>(value);
205 template <
typename RecipientT = RecipientInfo>
222 m_dryRunHasBeenSet =
true;
235 int m_numberOfBytes{0};
241 RecipientInfo m_recipient;
243 bool m_dryRun{
false};
244 bool m_keyIdHasBeenSet =
false;
245 bool m_encryptionContextHasBeenSet =
false;
246 bool m_numberOfBytesHasBeenSet =
false;
247 bool m_keySpecHasBeenSet =
false;
248 bool m_grantTokensHasBeenSet =
false;
249 bool m_recipientHasBeenSet =
false;
250 bool m_dryRunHasBeenSet =
false;
bool DryRunHasBeenSet() const
AWS_KMS_API GenerateDataKeyRequest()=default
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
bool EncryptionContextHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
GenerateDataKeyRequest & WithKeySpec(DataKeySpec value)
void SetGrantTokens(GrantTokensT &&value)
GenerateDataKeyRequest & WithDryRun(bool value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionContext(EncryptionContextT &&value)
void SetKeyId(KeyIdT &&value)
bool GrantTokensHasBeenSet() const
DataKeySpec GetKeySpec() const
GenerateDataKeyRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
void SetKeySpec(DataKeySpec value)
void SetNumberOfBytes(int value)
void SetRecipient(RecipientT &&value)
GenerateDataKeyRequest & AddGrantTokens(GrantTokensT &&value)
GenerateDataKeyRequest & WithGrantTokens(GrantTokensT &&value)
GenerateDataKeyRequest & WithEncryptionContext(EncryptionContextT &&value)
const Aws::String & GetKeyId() const
GenerateDataKeyRequest & WithNumberOfBytes(int value)
bool KeyIdHasBeenSet() const
bool NumberOfBytesHasBeenSet() const
bool RecipientHasBeenSet() const
bool KeySpecHasBeenSet() const
GenerateDataKeyRequest & WithRecipient(RecipientT &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
const RecipientInfo & GetRecipient() const
AWS_KMS_API Aws::String SerializePayload() const override
int GetNumberOfBytes() const
GenerateDataKeyRequest & WithKeyId(KeyIdT &&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