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>
13#include <aws/kms/model/RecipientInfo.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>
83 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
84 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet =
true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
85 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
87 template<
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
89 m_encryptionContextHasBeenSet =
true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
return *
this;
103 inline void SetNumberOfBytes(
int value) { m_numberOfBytesHasBeenSet =
true; m_numberOfBytes = value; }
133 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
134 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
135 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
137 template<
typename GrantTokensT = Aws::String>
168 template<
typename RecipientT = RecipientInfo>
169 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet =
true; m_recipient = std::forward<RecipientT>(value); }
170 template<
typename RecipientT = RecipientInfo>
183 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
189 bool m_keyIdHasBeenSet =
false;
192 bool m_encryptionContextHasBeenSet =
false;
194 int m_numberOfBytes{0};
195 bool m_numberOfBytesHasBeenSet =
false;
198 bool m_keySpecHasBeenSet =
false;
201 bool m_grantTokensHasBeenSet =
false;
203 RecipientInfo m_recipient;
204 bool m_recipientHasBeenSet =
false;
206 bool m_dryRun{
false};
207 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