AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ImportKeyMaterialRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMSRequest.h>
11#include <aws/kms/KMS_EXPORTS.h>
12#include <aws/kms/model/ExpirationModelType.h>
13#include <aws/kms/model/ImportType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace KMS {
19namespace Model {
20
24 public:
25 AWS_KMS_API ImportKeyMaterialRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportKeyMaterial"; }
32
33 AWS_KMS_API Aws::String SerializePayload() const override;
34
36
38
56 inline const Aws::String& GetKeyId() const { return m_keyId; }
57 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
58 template <typename KeyIdT = Aws::String>
59 void SetKeyId(KeyIdT&& value) {
60 m_keyIdHasBeenSet = true;
61 m_keyId = std::forward<KeyIdT>(value);
62 }
63 template <typename KeyIdT = Aws::String>
65 SetKeyId(std::forward<KeyIdT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::Utils::ByteBuffer& GetImportToken() const { return m_importToken; }
77 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
78 template <typename ImportTokenT = Aws::Utils::ByteBuffer>
79 void SetImportToken(ImportTokenT&& value) {
80 m_importTokenHasBeenSet = true;
81 m_importToken = std::forward<ImportTokenT>(value);
82 }
83 template <typename ImportTokenT = Aws::Utils::ByteBuffer>
85 SetImportToken(std::forward<ImportTokenT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::Utils::ByteBuffer& GetEncryptedKeyMaterial() const { return m_encryptedKeyMaterial; }
98 inline bool EncryptedKeyMaterialHasBeenSet() const { return m_encryptedKeyMaterialHasBeenSet; }
99 template <typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
100 void SetEncryptedKeyMaterial(EncryptedKeyMaterialT&& value) {
101 m_encryptedKeyMaterialHasBeenSet = true;
102 m_encryptedKeyMaterial = std::forward<EncryptedKeyMaterialT>(value);
103 }
104 template <typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
105 ImportKeyMaterialRequest& WithEncryptedKeyMaterial(EncryptedKeyMaterialT&& value) {
106 SetEncryptedKeyMaterial(std::forward<EncryptedKeyMaterialT>(value));
107 return *this;
108 }
110
112
125 inline const Aws::Utils::DateTime& GetValidTo() const { return m_validTo; }
126 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
127 template <typename ValidToT = Aws::Utils::DateTime>
128 void SetValidTo(ValidToT&& value) {
129 m_validToHasBeenSet = true;
130 m_validTo = std::forward<ValidToT>(value);
131 }
132 template <typename ValidToT = Aws::Utils::DateTime>
134 SetValidTo(std::forward<ValidToT>(value));
135 return *this;
136 }
138
140
154 inline ExpirationModelType GetExpirationModel() const { return m_expirationModel; }
155 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
157 m_expirationModelHasBeenSet = true;
158 m_expirationModel = value;
159 }
161 SetExpirationModel(value);
162 return *this;
163 }
165
167
181 inline ImportType GetImportType() const { return m_importType; }
182 inline bool ImportTypeHasBeenSet() const { return m_importTypeHasBeenSet; }
183 inline void SetImportType(ImportType value) {
184 m_importTypeHasBeenSet = true;
185 m_importType = value;
186 }
188 SetImportType(value);
189 return *this;
190 }
192
194
200 inline const Aws::String& GetKeyMaterialDescription() const { return m_keyMaterialDescription; }
201 inline bool KeyMaterialDescriptionHasBeenSet() const { return m_keyMaterialDescriptionHasBeenSet; }
202 template <typename KeyMaterialDescriptionT = Aws::String>
203 void SetKeyMaterialDescription(KeyMaterialDescriptionT&& value) {
204 m_keyMaterialDescriptionHasBeenSet = true;
205 m_keyMaterialDescription = std::forward<KeyMaterialDescriptionT>(value);
206 }
207 template <typename KeyMaterialDescriptionT = Aws::String>
208 ImportKeyMaterialRequest& WithKeyMaterialDescription(KeyMaterialDescriptionT&& value) {
209 SetKeyMaterialDescription(std::forward<KeyMaterialDescriptionT>(value));
210 return *this;
211 }
213
215
228 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
229 inline bool KeyMaterialIdHasBeenSet() const { return m_keyMaterialIdHasBeenSet; }
230 template <typename KeyMaterialIdT = Aws::String>
231 void SetKeyMaterialId(KeyMaterialIdT&& value) {
232 m_keyMaterialIdHasBeenSet = true;
233 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
234 }
235 template <typename KeyMaterialIdT = Aws::String>
237 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_keyId;
243
244 Aws::Utils::ByteBuffer m_importToken{};
245
246 Aws::Utils::ByteBuffer m_encryptedKeyMaterial{};
247
248 Aws::Utils::DateTime m_validTo{};
249
251
252 ImportType m_importType{ImportType::NOT_SET};
253
254 Aws::String m_keyMaterialDescription;
255
256 Aws::String m_keyMaterialId;
257 bool m_keyIdHasBeenSet = false;
258 bool m_importTokenHasBeenSet = false;
259 bool m_encryptedKeyMaterialHasBeenSet = false;
260 bool m_validToHasBeenSet = false;
261 bool m_expirationModelHasBeenSet = false;
262 bool m_importTypeHasBeenSet = false;
263 bool m_keyMaterialDescriptionHasBeenSet = false;
264 bool m_keyMaterialIdHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace KMS
269} // namespace Aws
AWS_KMS_API Aws::String SerializePayload() const override
ImportKeyMaterialRequest & WithImportToken(ImportTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API ImportKeyMaterialRequest()=default
ImportKeyMaterialRequest & WithKeyId(KeyIdT &&value)
const Aws::Utils::ByteBuffer & GetImportToken() 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 SetExpirationModel(ExpirationModelType value)
void SetEncryptedKeyMaterial(EncryptedKeyMaterialT &&value)
const Aws::Utils::DateTime & GetValidTo() 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