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/DateTime.h>
12#include <aws/kms/model/ExpirationModelType.h>
13#include <aws/kms/model/ImportType.h>
62 template<
typename KeyIdT = Aws::String>
63 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
64 template<
typename KeyIdT = Aws::String>
76 template<
typename ImportTokenT = Aws::Utils::ByteBuffer>
77 void SetImportToken(ImportTokenT&& value) { m_importTokenHasBeenSet =
true; m_importToken = std::forward<ImportTokenT>(value); }
78 template<
typename ImportTokenT = Aws::Utils::ByteBuffer>
91 template<
typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
92 void SetEncryptedKeyMaterial(EncryptedKeyMaterialT&& value) { m_encryptedKeyMaterialHasBeenSet =
true; m_encryptedKeyMaterial = std::forward<EncryptedKeyMaterialT>(value); }
93 template<
typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
113 template<
typename Val
idToT = Aws::Utils::DateTime>
114 void SetValidTo(ValidToT&& value) { m_validToHasBeenSet =
true; m_validTo = std::forward<ValidToT>(value); }
115 template<
typename Val
idToT = Aws::Utils::DateTime>
165 template<
typename KeyMaterialDescriptionT = Aws::String>
166 void SetKeyMaterialDescription(KeyMaterialDescriptionT&& value) { m_keyMaterialDescriptionHasBeenSet =
true; m_keyMaterialDescription = std::forward<KeyMaterialDescriptionT>(value); }
167 template<
typename KeyMaterialDescriptionT = Aws::String>
187 template<
typename KeyMaterialIdT = Aws::String>
188 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet =
true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
189 template<
typename KeyMaterialIdT = Aws::String>
195 bool m_keyIdHasBeenSet =
false;
198 bool m_importTokenHasBeenSet =
false;
201 bool m_encryptedKeyMaterialHasBeenSet =
false;
204 bool m_validToHasBeenSet =
false;
207 bool m_expirationModelHasBeenSet =
false;
210 bool m_importTypeHasBeenSet =
false;
213 bool m_keyMaterialDescriptionHasBeenSet =
false;
216 bool m_keyMaterialIdHasBeenSet =
false;
ImportType GetImportType() const
void SetValidTo(ValidToT &&value)
const Aws::String & GetKeyId() const
AWS_KMS_API Aws::String SerializePayload() const override
bool KeyMaterialDescriptionHasBeenSet() const
const Aws::String & GetKeyMaterialDescription() const
bool ImportTypeHasBeenSet() const
bool KeyMaterialIdHasBeenSet() const
ImportKeyMaterialRequest & WithImportToken(ImportTokenT &&value)
const Aws::String & GetKeyMaterialId() const
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool ImportTokenHasBeenSet() const
AWS_KMS_API ImportKeyMaterialRequest()=default
ImportKeyMaterialRequest & WithKeyId(KeyIdT &&value)
void SetImportToken(ImportTokenT &&value)
void SetKeyMaterialId(KeyMaterialIdT &&value)
const Aws::Utils::ByteBuffer & GetImportToken() const
void SetKeyId(KeyIdT &&value)
bool ValidToHasBeenSet() const
ImportKeyMaterialRequest & WithImportType(ImportType value)
const Aws::Utils::ByteBuffer & GetEncryptedKeyMaterial() const
void SetKeyMaterialDescription(KeyMaterialDescriptionT &&value)
ImportKeyMaterialRequest & WithKeyMaterialId(KeyMaterialIdT &&value)
ImportKeyMaterialRequest & WithExpirationModel(ExpirationModelType value)
ImportKeyMaterialRequest & WithValidTo(ValidToT &&value)
void SetImportType(ImportType value)
bool EncryptedKeyMaterialHasBeenSet() const
void SetExpirationModel(ExpirationModelType value)
void SetEncryptedKeyMaterial(EncryptedKeyMaterialT &&value)
bool ExpirationModelHasBeenSet() const
const Aws::Utils::DateTime & GetValidTo() const
bool KeyIdHasBeenSet() const
ExpirationModelType GetExpirationModel() const
ImportKeyMaterialRequest & WithEncryptedKeyMaterial(EncryptedKeyMaterialT &&value)
ImportKeyMaterialRequest & WithKeyMaterialDescription(KeyMaterialDescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String