7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kms/model/DataKeyPairSpec.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/RecipientInfo.h>
59 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
60 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet =
true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
61 template<
typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
63 template<
typename EncryptionContextKeyT = Aws::String,
typename EncryptionContextValueT = Aws::String>
65 m_encryptionContextHasBeenSet =
true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
return *
this;
89 template<
typename KeyIdT = Aws::String>
90 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
91 template<
typename KeyIdT = Aws::String>
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>
158 template<
typename RecipientT = RecipientInfo>
159 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet =
true; m_recipient = std::forward<RecipientT>(value); }
160 template<
typename RecipientT = RecipientInfo>
173 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
179 bool m_encryptionContextHasBeenSet =
false;
182 bool m_keyIdHasBeenSet =
false;
185 bool m_keyPairSpecHasBeenSet =
false;
188 bool m_grantTokensHasBeenSet =
false;
190 RecipientInfo m_recipient;
191 bool m_recipientHasBeenSet =
false;
193 bool m_dryRun{
false};
194 bool m_dryRunHasBeenSet =
false;
const Aws::String & GetKeyId() const
AWS_KMS_API GenerateDataKeyPairRequest()=default
const RecipientInfo & GetRecipient() const
bool DryRunHasBeenSet() const
void SetRecipient(RecipientT &&value)
bool RecipientHasBeenSet() const
GenerateDataKeyPairRequest & WithDryRun(bool value)
GenerateDataKeyPairRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
bool GrantTokensHasBeenSet() const
bool EncryptionContextHasBeenSet() const
GenerateDataKeyPairRequest & AddGrantTokens(GrantTokensT &&value)
bool KeyPairSpecHasBeenSet() const
GenerateDataKeyPairRequest & WithKeyId(KeyIdT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateDataKeyPairRequest & WithKeyPairSpec(DataKeyPairSpec value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
bool KeyIdHasBeenSet() const
GenerateDataKeyPairRequest & WithGrantTokens(GrantTokensT &&value)
GenerateDataKeyPairRequest & WithRecipient(RecipientT &&value)
DataKeyPairSpec GetKeyPairSpec() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
void SetKeyPairSpec(DataKeyPairSpec value)
void SetEncryptionContext(EncryptionContextT &&value)
void SetDryRun(bool value)
GenerateDataKeyPairRequest & WithEncryptionContext(EncryptionContextT &&value)
void SetGrantTokens(GrantTokensT &&value)
void SetKeyId(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