AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyMetadata.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/kms/model/KeyUsageType.h>
11#include <aws/kms/model/KeyState.h>
12#include <aws/kms/model/OriginType.h>
13#include <aws/kms/model/ExpirationModelType.h>
14#include <aws/kms/model/KeyManagerType.h>
15#include <aws/kms/model/KeySpec.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/kms/model/MultiRegionConfiguration.h>
18#include <aws/kms/model/XksKeyConfigurationType.h>
19#include <aws/kms/model/EncryptionAlgorithmSpec.h>
20#include <aws/kms/model/SigningAlgorithmSpec.h>
21#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
22#include <aws/kms/model/MacAlgorithmSpec.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace KMS
36{
37namespace Model
38{
39
48 {
49 public:
50 AWS_KMS_API KeyMetadata();
54
55
57
61 inline const Aws::String& GetAWSAccountId() const{ return m_aWSAccountId; }
62 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
63 inline void SetAWSAccountId(const Aws::String& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = value; }
64 inline void SetAWSAccountId(Aws::String&& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = std::move(value); }
65 inline void SetAWSAccountId(const char* value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId.assign(value); }
66 inline KeyMetadata& WithAWSAccountId(const Aws::String& value) { SetAWSAccountId(value); return *this;}
67 inline KeyMetadata& WithAWSAccountId(Aws::String&& value) { SetAWSAccountId(std::move(value)); return *this;}
68 inline KeyMetadata& WithAWSAccountId(const char* value) { SetAWSAccountId(value); return *this;}
70
72
75 inline const Aws::String& GetKeyId() const{ return m_keyId; }
76 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
77 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
78 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
79 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
80 inline KeyMetadata& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
81 inline KeyMetadata& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
82 inline KeyMetadata& WithKeyId(const char* value) { SetKeyId(value); return *this;}
84
86
92 inline const Aws::String& GetArn() const{ return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
95 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
96 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
97 inline KeyMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
98 inline KeyMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
99 inline KeyMetadata& WithArn(const char* value) { SetArn(value); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
107 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
108 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
109 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
110 inline KeyMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
111 inline KeyMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
113
115
119 inline bool GetEnabled() const{ return m_enabled; }
120 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
121 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
122 inline KeyMetadata& WithEnabled(bool value) { SetEnabled(value); return *this;}
124
126
129 inline const Aws::String& GetDescription() const{ return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
133 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
134 inline KeyMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 inline KeyMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
136 inline KeyMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
138
140
145 inline const KeyUsageType& GetKeyUsage() const{ return m_keyUsage; }
146 inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; }
147 inline void SetKeyUsage(const KeyUsageType& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; }
148 inline void SetKeyUsage(KeyUsageType&& value) { m_keyUsageHasBeenSet = true; m_keyUsage = std::move(value); }
149 inline KeyMetadata& WithKeyUsage(const KeyUsageType& value) { SetKeyUsage(value); return *this;}
150 inline KeyMetadata& WithKeyUsage(KeyUsageType&& value) { SetKeyUsage(std::move(value)); return *this;}
152
154
160 inline const KeyState& GetKeyState() const{ return m_keyState; }
161 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
162 inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; }
163 inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); }
164 inline KeyMetadata& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;}
165 inline KeyMetadata& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;}
167
169
178 inline const Aws::Utils::DateTime& GetDeletionDate() const{ return m_deletionDate; }
179 inline bool DeletionDateHasBeenSet() const { return m_deletionDateHasBeenSet; }
180 inline void SetDeletionDate(const Aws::Utils::DateTime& value) { m_deletionDateHasBeenSet = true; m_deletionDate = value; }
181 inline void SetDeletionDate(Aws::Utils::DateTime&& value) { m_deletionDateHasBeenSet = true; m_deletionDate = std::move(value); }
182 inline KeyMetadata& WithDeletionDate(const Aws::Utils::DateTime& value) { SetDeletionDate(value); return *this;}
183 inline KeyMetadata& WithDeletionDate(Aws::Utils::DateTime&& value) { SetDeletionDate(std::move(value)); return *this;}
185
187
194 inline const Aws::Utils::DateTime& GetValidTo() const{ return m_validTo; }
195 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
196 inline void SetValidTo(const Aws::Utils::DateTime& value) { m_validToHasBeenSet = true; m_validTo = value; }
197 inline void SetValidTo(Aws::Utils::DateTime&& value) { m_validToHasBeenSet = true; m_validTo = std::move(value); }
198 inline KeyMetadata& WithValidTo(const Aws::Utils::DateTime& value) { SetValidTo(value); return *this;}
199 inline KeyMetadata& WithValidTo(Aws::Utils::DateTime&& value) { SetValidTo(std::move(value)); return *this;}
201
203
210 inline const OriginType& GetOrigin() const{ return m_origin; }
211 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
212 inline void SetOrigin(const OriginType& value) { m_originHasBeenSet = true; m_origin = value; }
213 inline void SetOrigin(OriginType&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
214 inline KeyMetadata& WithOrigin(const OriginType& value) { SetOrigin(value); return *this;}
215 inline KeyMetadata& WithOrigin(OriginType&& value) { SetOrigin(std::move(value)); return *this;}
217
219
225 inline const Aws::String& GetCustomKeyStoreId() const{ return m_customKeyStoreId; }
226 inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
227 inline void SetCustomKeyStoreId(const Aws::String& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = value; }
228 inline void SetCustomKeyStoreId(Aws::String&& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = std::move(value); }
229 inline void SetCustomKeyStoreId(const char* value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId.assign(value); }
230 inline KeyMetadata& WithCustomKeyStoreId(const Aws::String& value) { SetCustomKeyStoreId(value); return *this;}
231 inline KeyMetadata& WithCustomKeyStoreId(Aws::String&& value) { SetCustomKeyStoreId(std::move(value)); return *this;}
232 inline KeyMetadata& WithCustomKeyStoreId(const char* value) { SetCustomKeyStoreId(value); return *this;}
234
236
244 inline const Aws::String& GetCloudHsmClusterId() const{ return m_cloudHsmClusterId; }
245 inline bool CloudHsmClusterIdHasBeenSet() const { return m_cloudHsmClusterIdHasBeenSet; }
246 inline void SetCloudHsmClusterId(const Aws::String& value) { m_cloudHsmClusterIdHasBeenSet = true; m_cloudHsmClusterId = value; }
247 inline void SetCloudHsmClusterId(Aws::String&& value) { m_cloudHsmClusterIdHasBeenSet = true; m_cloudHsmClusterId = std::move(value); }
248 inline void SetCloudHsmClusterId(const char* value) { m_cloudHsmClusterIdHasBeenSet = true; m_cloudHsmClusterId.assign(value); }
249 inline KeyMetadata& WithCloudHsmClusterId(const Aws::String& value) { SetCloudHsmClusterId(value); return *this;}
250 inline KeyMetadata& WithCloudHsmClusterId(Aws::String&& value) { SetCloudHsmClusterId(std::move(value)); return *this;}
251 inline KeyMetadata& WithCloudHsmClusterId(const char* value) { SetCloudHsmClusterId(value); return *this;}
253
255
260 inline const ExpirationModelType& GetExpirationModel() const{ return m_expirationModel; }
261 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
262 inline void SetExpirationModel(const ExpirationModelType& value) { m_expirationModelHasBeenSet = true; m_expirationModel = value; }
263 inline void SetExpirationModel(ExpirationModelType&& value) { m_expirationModelHasBeenSet = true; m_expirationModel = std::move(value); }
264 inline KeyMetadata& WithExpirationModel(const ExpirationModelType& value) { SetExpirationModel(value); return *this;}
265 inline KeyMetadata& WithExpirationModel(ExpirationModelType&& value) { SetExpirationModel(std::move(value)); return *this;}
267
269
276 inline const KeyManagerType& GetKeyManager() const{ return m_keyManager; }
277 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
278 inline void SetKeyManager(const KeyManagerType& value) { m_keyManagerHasBeenSet = true; m_keyManager = value; }
279 inline void SetKeyManager(KeyManagerType&& value) { m_keyManagerHasBeenSet = true; m_keyManager = std::move(value); }
280 inline KeyMetadata& WithKeyManager(const KeyManagerType& value) { SetKeyManager(value); return *this;}
281 inline KeyMetadata& WithKeyManager(KeyManagerType&& value) { SetKeyManager(std::move(value)); return *this;}
283
285
288 inline const KeySpec& GetKeySpec() const{ return m_keySpec; }
289 inline bool KeySpecHasBeenSet() const { return m_keySpecHasBeenSet; }
290 inline void SetKeySpec(const KeySpec& value) { m_keySpecHasBeenSet = true; m_keySpec = value; }
291 inline void SetKeySpec(KeySpec&& value) { m_keySpecHasBeenSet = true; m_keySpec = std::move(value); }
292 inline KeyMetadata& WithKeySpec(const KeySpec& value) { SetKeySpec(value); return *this;}
293 inline KeyMetadata& WithKeySpec(KeySpec&& value) { SetKeySpec(std::move(value)); return *this;}
295
297
303 inline const Aws::Vector<EncryptionAlgorithmSpec>& GetEncryptionAlgorithms() const{ return m_encryptionAlgorithms; }
304 inline bool EncryptionAlgorithmsHasBeenSet() const { return m_encryptionAlgorithmsHasBeenSet; }
305 inline void SetEncryptionAlgorithms(const Aws::Vector<EncryptionAlgorithmSpec>& value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms = value; }
306 inline void SetEncryptionAlgorithms(Aws::Vector<EncryptionAlgorithmSpec>&& value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms = std::move(value); }
309 inline KeyMetadata& AddEncryptionAlgorithms(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms.push_back(value); return *this; }
310 inline KeyMetadata& AddEncryptionAlgorithms(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms.push_back(std::move(value)); return *this; }
312
314
319 inline const Aws::Vector<SigningAlgorithmSpec>& GetSigningAlgorithms() const{ return m_signingAlgorithms; }
320 inline bool SigningAlgorithmsHasBeenSet() const { return m_signingAlgorithmsHasBeenSet; }
321 inline void SetSigningAlgorithms(const Aws::Vector<SigningAlgorithmSpec>& value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms = value; }
322 inline void SetSigningAlgorithms(Aws::Vector<SigningAlgorithmSpec>&& value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms = std::move(value); }
325 inline KeyMetadata& AddSigningAlgorithms(const SigningAlgorithmSpec& value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms.push_back(value); return *this; }
326 inline KeyMetadata& AddSigningAlgorithms(SigningAlgorithmSpec&& value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms.push_back(std::move(value)); return *this; }
328
330
333 inline const Aws::Vector<KeyAgreementAlgorithmSpec>& GetKeyAgreementAlgorithms() const{ return m_keyAgreementAlgorithms; }
334 inline bool KeyAgreementAlgorithmsHasBeenSet() const { return m_keyAgreementAlgorithmsHasBeenSet; }
335 inline void SetKeyAgreementAlgorithms(const Aws::Vector<KeyAgreementAlgorithmSpec>& value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms = value; }
336 inline void SetKeyAgreementAlgorithms(Aws::Vector<KeyAgreementAlgorithmSpec>&& value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms = std::move(value); }
339 inline KeyMetadata& AddKeyAgreementAlgorithms(const KeyAgreementAlgorithmSpec& value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms.push_back(value); return *this; }
340 inline KeyMetadata& AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec&& value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms.push_back(std::move(value)); return *this; }
342
344
352 inline bool GetMultiRegion() const{ return m_multiRegion; }
353 inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
354 inline void SetMultiRegion(bool value) { m_multiRegionHasBeenSet = true; m_multiRegion = value; }
355 inline KeyMetadata& WithMultiRegion(bool value) { SetMultiRegion(value); return *this;}
357
359
371 inline const MultiRegionConfiguration& GetMultiRegionConfiguration() const{ return m_multiRegionConfiguration; }
372 inline bool MultiRegionConfigurationHasBeenSet() const { return m_multiRegionConfigurationHasBeenSet; }
373 inline void SetMultiRegionConfiguration(const MultiRegionConfiguration& value) { m_multiRegionConfigurationHasBeenSet = true; m_multiRegionConfiguration = value; }
374 inline void SetMultiRegionConfiguration(MultiRegionConfiguration&& value) { m_multiRegionConfigurationHasBeenSet = true; m_multiRegionConfiguration = std::move(value); }
378
380
396 inline int GetPendingDeletionWindowInDays() const{ return m_pendingDeletionWindowInDays; }
397 inline bool PendingDeletionWindowInDaysHasBeenSet() const { return m_pendingDeletionWindowInDaysHasBeenSet; }
398 inline void SetPendingDeletionWindowInDays(int value) { m_pendingDeletionWindowInDaysHasBeenSet = true; m_pendingDeletionWindowInDays = value; }
401
403
408 inline const Aws::Vector<MacAlgorithmSpec>& GetMacAlgorithms() const{ return m_macAlgorithms; }
409 inline bool MacAlgorithmsHasBeenSet() const { return m_macAlgorithmsHasBeenSet; }
410 inline void SetMacAlgorithms(const Aws::Vector<MacAlgorithmSpec>& value) { m_macAlgorithmsHasBeenSet = true; m_macAlgorithms = value; }
411 inline void SetMacAlgorithms(Aws::Vector<MacAlgorithmSpec>&& value) { m_macAlgorithmsHasBeenSet = true; m_macAlgorithms = std::move(value); }
413 inline KeyMetadata& WithMacAlgorithms(Aws::Vector<MacAlgorithmSpec>&& value) { SetMacAlgorithms(std::move(value)); return *this;}
414 inline KeyMetadata& AddMacAlgorithms(const MacAlgorithmSpec& value) { m_macAlgorithmsHasBeenSet = true; m_macAlgorithms.push_back(value); return *this; }
415 inline KeyMetadata& AddMacAlgorithms(MacAlgorithmSpec&& value) { m_macAlgorithmsHasBeenSet = true; m_macAlgorithms.push_back(std::move(value)); return *this; }
417
419
425 inline const XksKeyConfigurationType& GetXksKeyConfiguration() const{ return m_xksKeyConfiguration; }
426 inline bool XksKeyConfigurationHasBeenSet() const { return m_xksKeyConfigurationHasBeenSet; }
427 inline void SetXksKeyConfiguration(const XksKeyConfigurationType& value) { m_xksKeyConfigurationHasBeenSet = true; m_xksKeyConfiguration = value; }
428 inline void SetXksKeyConfiguration(XksKeyConfigurationType&& value) { m_xksKeyConfigurationHasBeenSet = true; m_xksKeyConfiguration = std::move(value); }
430 inline KeyMetadata& WithXksKeyConfiguration(XksKeyConfigurationType&& value) { SetXksKeyConfiguration(std::move(value)); return *this;}
432 private:
433
434 Aws::String m_aWSAccountId;
435 bool m_aWSAccountIdHasBeenSet = false;
436
437 Aws::String m_keyId;
438 bool m_keyIdHasBeenSet = false;
439
440 Aws::String m_arn;
441 bool m_arnHasBeenSet = false;
442
443 Aws::Utils::DateTime m_creationDate;
444 bool m_creationDateHasBeenSet = false;
445
446 bool m_enabled;
447 bool m_enabledHasBeenSet = false;
448
449 Aws::String m_description;
450 bool m_descriptionHasBeenSet = false;
451
452 KeyUsageType m_keyUsage;
453 bool m_keyUsageHasBeenSet = false;
454
455 KeyState m_keyState;
456 bool m_keyStateHasBeenSet = false;
457
458 Aws::Utils::DateTime m_deletionDate;
459 bool m_deletionDateHasBeenSet = false;
460
461 Aws::Utils::DateTime m_validTo;
462 bool m_validToHasBeenSet = false;
463
464 OriginType m_origin;
465 bool m_originHasBeenSet = false;
466
467 Aws::String m_customKeyStoreId;
468 bool m_customKeyStoreIdHasBeenSet = false;
469
470 Aws::String m_cloudHsmClusterId;
471 bool m_cloudHsmClusterIdHasBeenSet = false;
472
473 ExpirationModelType m_expirationModel;
474 bool m_expirationModelHasBeenSet = false;
475
476 KeyManagerType m_keyManager;
477 bool m_keyManagerHasBeenSet = false;
478
479 KeySpec m_keySpec;
480 bool m_keySpecHasBeenSet = false;
481
482 Aws::Vector<EncryptionAlgorithmSpec> m_encryptionAlgorithms;
483 bool m_encryptionAlgorithmsHasBeenSet = false;
484
485 Aws::Vector<SigningAlgorithmSpec> m_signingAlgorithms;
486 bool m_signingAlgorithmsHasBeenSet = false;
487
488 Aws::Vector<KeyAgreementAlgorithmSpec> m_keyAgreementAlgorithms;
489 bool m_keyAgreementAlgorithmsHasBeenSet = false;
490
491 bool m_multiRegion;
492 bool m_multiRegionHasBeenSet = false;
493
494 MultiRegionConfiguration m_multiRegionConfiguration;
495 bool m_multiRegionConfigurationHasBeenSet = false;
496
497 int m_pendingDeletionWindowInDays;
498 bool m_pendingDeletionWindowInDaysHasBeenSet = false;
499
500 Aws::Vector<MacAlgorithmSpec> m_macAlgorithms;
501 bool m_macAlgorithmsHasBeenSet = false;
502
503 XksKeyConfigurationType m_xksKeyConfiguration;
504 bool m_xksKeyConfigurationHasBeenSet = false;
505 };
506
507} // namespace Model
508} // namespace KMS
509} // namespace Aws
KeyMetadata & WithKeyId(const Aws::String &value)
Definition KeyMetadata.h:80
void SetAWSAccountId(const Aws::String &value)
Definition KeyMetadata.h:63
void SetEncryptionAlgorithms(Aws::Vector< EncryptionAlgorithmSpec > &&value)
bool ExpirationModelHasBeenSet() const
void SetKeyId(const Aws::String &value)
Definition KeyMetadata.h:77
bool KeyAgreementAlgorithmsHasBeenSet() const
void SetOrigin(OriginType &&value)
void SetKeyId(Aws::String &&value)
Definition KeyMetadata.h:78
void SetKeyAgreementAlgorithms(Aws::Vector< KeyAgreementAlgorithmSpec > &&value)
KeyMetadata & WithDeletionDate(const Aws::Utils::DateTime &value)
KeyMetadata & WithKeyManager(KeyManagerType &&value)
const KeySpec & GetKeySpec() const
KeyMetadata & WithEncryptionAlgorithms(const Aws::Vector< EncryptionAlgorithmSpec > &value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
int GetPendingDeletionWindowInDays() const
KeyMetadata & WithOrigin(OriginType &&value)
KeyMetadata & WithKeyUsage(const KeyUsageType &value)
bool DeletionDateHasBeenSet() const
const Aws::String & GetAWSAccountId() const
Definition KeyMetadata.h:61
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetKeyUsage(KeyUsageType &&value)
void SetArn(const Aws::String &value)
Definition KeyMetadata.h:94
KeyMetadata & WithMacAlgorithms(const Aws::Vector< MacAlgorithmSpec > &value)
KeyMetadata & WithDeletionDate(Aws::Utils::DateTime &&value)
void SetXksKeyConfiguration(XksKeyConfigurationType &&value)
KeyMetadata & WithKeyUsage(KeyUsageType &&value)
KeyMetadata & WithCloudHsmClusterId(Aws::String &&value)
const Aws::String & GetArn() const
Definition KeyMetadata.h:92
KeyMetadata & WithArn(const char *value)
Definition KeyMetadata.h:99
void SetKeyState(KeyState &&value)
void SetXksKeyConfiguration(const XksKeyConfigurationType &value)
void SetMacAlgorithms(Aws::Vector< MacAlgorithmSpec > &&value)
void SetCloudHsmClusterId(const char *value)
void SetDescription(const Aws::String &value)
void SetCloudHsmClusterId(Aws::String &&value)
bool CloudHsmClusterIdHasBeenSet() const
bool AWSAccountIdHasBeenSet() const
Definition KeyMetadata.h:62
KeyMetadata & AddEncryptionAlgorithms(EncryptionAlgorithmSpec &&value)
void SetArn(const char *value)
Definition KeyMetadata.h:96
KeyMetadata & WithValidTo(Aws::Utils::DateTime &&value)
bool MultiRegionConfigurationHasBeenSet() const
const KeyManagerType & GetKeyManager() const
KeyMetadata & WithKeyState(KeyState &&value)
bool XksKeyConfigurationHasBeenSet() const
KeyMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
const ExpirationModelType & GetExpirationModel() const
const Aws::Vector< SigningAlgorithmSpec > & GetSigningAlgorithms() const
KeyMetadata & WithAWSAccountId(const char *value)
Definition KeyMetadata.h:68
void SetExpirationModel(const ExpirationModelType &value)
void SetOrigin(const OriginType &value)
const Aws::Utils::DateTime & GetDeletionDate() const
KeyMetadata & WithKeyId(Aws::String &&value)
Definition KeyMetadata.h:81
void SetKeyAgreementAlgorithms(const Aws::Vector< KeyAgreementAlgorithmSpec > &value)
const Aws::String & GetKeyId() const
Definition KeyMetadata.h:75
bool MacAlgorithmsHasBeenSet() const
void SetDeletionDate(Aws::Utils::DateTime &&value)
KeyMetadata & WithAWSAccountId(const Aws::String &value)
Definition KeyMetadata.h:66
void SetDescription(Aws::String &&value)
KeyMetadata & WithKeyAgreementAlgorithms(const Aws::Vector< KeyAgreementAlgorithmSpec > &value)
KeyMetadata & WithXksKeyConfiguration(const XksKeyConfigurationType &value)
void SetDescription(const char *value)
bool SigningAlgorithmsHasBeenSet() const
KeyMetadata & WithCustomKeyStoreId(const char *value)
void SetCloudHsmClusterId(const Aws::String &value)
KeyMetadata & WithKeySpec(KeySpec &&value)
bool CreationDateHasBeenSet() const
const Aws::Vector< EncryptionAlgorithmSpec > & GetEncryptionAlgorithms() const
KeyMetadata & WithKeyAgreementAlgorithms(Aws::Vector< KeyAgreementAlgorithmSpec > &&value)
void SetAWSAccountId(Aws::String &&value)
Definition KeyMetadata.h:64
KeyMetadata & WithArn(const Aws::String &value)
Definition KeyMetadata.h:97
KeyMetadata & WithSigningAlgorithms(Aws::Vector< SigningAlgorithmSpec > &&value)
KeyMetadata & WithCloudHsmClusterId(const Aws::String &value)
KeyMetadata & WithKeyManager(const KeyManagerType &value)
KeyMetadata & WithDescription(Aws::String &&value)
KeyMetadata & WithSigningAlgorithms(const Aws::Vector< SigningAlgorithmSpec > &value)
KeyMetadata & AddMacAlgorithms(MacAlgorithmSpec &&value)
KeyMetadata & AddSigningAlgorithms(SigningAlgorithmSpec &&value)
void SetKeySpec(const KeySpec &value)
void SetKeySpec(KeySpec &&value)
KeyMetadata & WithPendingDeletionWindowInDays(int value)
const Aws::Utils::DateTime & GetValidTo() const
KeyMetadata & WithValidTo(const Aws::Utils::DateTime &value)
void SetPendingDeletionWindowInDays(int value)
KeyMetadata & WithMacAlgorithms(Aws::Vector< MacAlgorithmSpec > &&value)
KeyMetadata & WithEnabled(bool value)
KeyMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
void SetExpirationModel(ExpirationModelType &&value)
KeyMetadata & WithCustomKeyStoreId(Aws::String &&value)
KeyMetadata & WithExpirationModel(ExpirationModelType &&value)
KeyMetadata & WithXksKeyConfiguration(XksKeyConfigurationType &&value)
KeyMetadata & WithMultiRegionConfiguration(const MultiRegionConfiguration &value)
KeyMetadata & WithExpirationModel(const ExpirationModelType &value)
KeyMetadata & AddMacAlgorithms(const MacAlgorithmSpec &value)
KeyMetadata & WithMultiRegion(bool value)
const Aws::Vector< MacAlgorithmSpec > & GetMacAlgorithms() const
KeyMetadata & WithKeyId(const char *value)
Definition KeyMetadata.h:82
AWS_KMS_API KeyMetadata(Aws::Utils::Json::JsonView jsonValue)
KeyMetadata & WithKeyState(const KeyState &value)
void SetKeyUsage(const KeyUsageType &value)
void SetValidTo(const Aws::Utils::DateTime &value)
const XksKeyConfigurationType & GetXksKeyConfiguration() const
void SetKeyId(const char *value)
Definition KeyMetadata.h:79
KeyMetadata & WithDescription(const char *value)
void SetSigningAlgorithms(Aws::Vector< SigningAlgorithmSpec > &&value)
const KeyUsageType & GetKeyUsage() const
bool CustomKeyStoreIdHasBeenSet() const
KeyMetadata & WithKeySpec(const KeySpec &value)
const KeyState & GetKeyState() const
KeyMetadata & WithEncryptionAlgorithms(Aws::Vector< EncryptionAlgorithmSpec > &&value)
void SetEncryptionAlgorithms(const Aws::Vector< EncryptionAlgorithmSpec > &value)
KeyMetadata & WithCloudHsmClusterId(const char *value)
void SetDeletionDate(const Aws::Utils::DateTime &value)
KeyMetadata & AddKeyAgreementAlgorithms(const KeyAgreementAlgorithmSpec &value)
const Aws::Vector< KeyAgreementAlgorithmSpec > & GetKeyAgreementAlgorithms() const
void SetKeyManager(const KeyManagerType &value)
const Aws::String & GetCloudHsmClusterId() const
KeyMetadata & AddEncryptionAlgorithms(const EncryptionAlgorithmSpec &value)
void SetValidTo(Aws::Utils::DateTime &&value)
void SetEnabled(bool value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetKeyState(const KeyState &value)
const Aws::Utils::DateTime & GetCreationDate() const
bool EncryptionAlgorithmsHasBeenSet() const
KeyMetadata & WithOrigin(const OriginType &value)
KeyMetadata & WithMultiRegionConfiguration(MultiRegionConfiguration &&value)
void SetMacAlgorithms(const Aws::Vector< MacAlgorithmSpec > &value)
KeyMetadata & AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec &&value)
void SetMultiRegion(bool value)
const OriginType & GetOrigin() const
void SetCustomKeyStoreId(const Aws::String &value)
KeyMetadata & WithDescription(const Aws::String &value)
const Aws::String & GetCustomKeyStoreId() const
KeyMetadata & WithArn(Aws::String &&value)
Definition KeyMetadata.h:98
void SetMultiRegionConfiguration(const MultiRegionConfiguration &value)
KeyMetadata & WithAWSAccountId(Aws::String &&value)
Definition KeyMetadata.h:67
void SetCustomKeyStoreId(Aws::String &&value)
AWS_KMS_API KeyMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyManager(KeyManagerType &&value)
void SetArn(Aws::String &&value)
Definition KeyMetadata.h:95
void SetCustomKeyStoreId(const char *value)
void SetSigningAlgorithms(const Aws::Vector< SigningAlgorithmSpec > &value)
void SetAWSAccountId(const char *value)
Definition KeyMetadata.h:65
KeyMetadata & AddSigningAlgorithms(const SigningAlgorithmSpec &value)
void SetMultiRegionConfiguration(MultiRegionConfiguration &&value)
const MultiRegionConfiguration & GetMultiRegionConfiguration() const
KeyMetadata & WithCustomKeyStoreId(const Aws::String &value)
const Aws::String & GetDescription() const
bool PendingDeletionWindowInDaysHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue