AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
KeyMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncapsulationAlgorithmSpec.h>
12#include <aws/kms/model/EncryptionAlgorithmSpec.h>
13#include <aws/kms/model/ExpirationModelType.h>
14#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
15#include <aws/kms/model/KeyManagerType.h>
16#include <aws/kms/model/KeySpec.h>
17#include <aws/kms/model/KeyState.h>
18#include <aws/kms/model/KeyUsageType.h>
19#include <aws/kms/model/MacAlgorithmSpec.h>
20#include <aws/kms/model/MultiRegionConfiguration.h>
21#include <aws/kms/model/OriginType.h>
22#include <aws/kms/model/SigningAlgorithmSpec.h>
23#include <aws/kms/model/XksKeyConfigurationType.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace KMS {
35namespace Model {
36
45 public:
46 AWS_KMS_API KeyMetadata() = default;
50
52
56 inline const Aws::String& GetAWSAccountId() const { return m_aWSAccountId; }
57 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
58 template <typename AWSAccountIdT = Aws::String>
59 void SetAWSAccountId(AWSAccountIdT&& value) {
60 m_aWSAccountIdHasBeenSet = true;
61 m_aWSAccountId = std::forward<AWSAccountIdT>(value);
62 }
63 template <typename AWSAccountIdT = Aws::String>
64 KeyMetadata& WithAWSAccountId(AWSAccountIdT&& value) {
65 SetAWSAccountId(std::forward<AWSAccountIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetKeyId() const { return m_keyId; }
75 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
76 template <typename KeyIdT = Aws::String>
77 void SetKeyId(KeyIdT&& value) {
78 m_keyIdHasBeenSet = true;
79 m_keyId = std::forward<KeyIdT>(value);
80 }
81 template <typename KeyIdT = Aws::String>
82 KeyMetadata& WithKeyId(KeyIdT&& value) {
83 SetKeyId(std::forward<KeyIdT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template <typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) {
99 m_arnHasBeenSet = true;
100 m_arn = std::forward<ArnT>(value);
101 }
102 template <typename ArnT = Aws::String>
103 KeyMetadata& WithArn(ArnT&& value) {
104 SetArn(std::forward<ArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
114 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
115 template <typename CreationDateT = Aws::Utils::DateTime>
116 void SetCreationDate(CreationDateT&& value) {
117 m_creationDateHasBeenSet = true;
118 m_creationDate = std::forward<CreationDateT>(value);
119 }
120 template <typename CreationDateT = Aws::Utils::DateTime>
121 KeyMetadata& WithCreationDate(CreationDateT&& value) {
122 SetCreationDate(std::forward<CreationDateT>(value));
123 return *this;
124 }
126
128
132 inline bool GetEnabled() const { return m_enabled; }
133 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
134 inline void SetEnabled(bool value) {
135 m_enabledHasBeenSet = true;
136 m_enabled = value;
137 }
138 inline KeyMetadata& WithEnabled(bool value) {
139 SetEnabled(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 template <typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) {
152 m_descriptionHasBeenSet = true;
153 m_description = std::forward<DescriptionT>(value);
154 }
155 template <typename DescriptionT = Aws::String>
156 KeyMetadata& WithDescription(DescriptionT&& value) {
157 SetDescription(std::forward<DescriptionT>(value));
158 return *this;
159 }
161
163
168 inline KeyUsageType GetKeyUsage() const { return m_keyUsage; }
169 inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; }
170 inline void SetKeyUsage(KeyUsageType value) {
171 m_keyUsageHasBeenSet = true;
172 m_keyUsage = value;
173 }
175 SetKeyUsage(value);
176 return *this;
177 }
179
181
187 inline KeyState GetKeyState() const { return m_keyState; }
188 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
189 inline void SetKeyState(KeyState value) {
190 m_keyStateHasBeenSet = true;
191 m_keyState = value;
192 }
194 SetKeyState(value);
195 return *this;
196 }
198
200
209 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
210 inline bool DeletionDateHasBeenSet() const { return m_deletionDateHasBeenSet; }
211 template <typename DeletionDateT = Aws::Utils::DateTime>
212 void SetDeletionDate(DeletionDateT&& value) {
213 m_deletionDateHasBeenSet = true;
214 m_deletionDate = std::forward<DeletionDateT>(value);
215 }
216 template <typename DeletionDateT = Aws::Utils::DateTime>
217 KeyMetadata& WithDeletionDate(DeletionDateT&& value) {
218 SetDeletionDate(std::forward<DeletionDateT>(value));
219 return *this;
220 }
222
224
232 inline const Aws::Utils::DateTime& GetValidTo() const { return m_validTo; }
233 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
234 template <typename ValidToT = Aws::Utils::DateTime>
235 void SetValidTo(ValidToT&& value) {
236 m_validToHasBeenSet = true;
237 m_validTo = std::forward<ValidToT>(value);
238 }
239 template <typename ValidToT = Aws::Utils::DateTime>
240 KeyMetadata& WithValidTo(ValidToT&& value) {
241 SetValidTo(std::forward<ValidToT>(value));
242 return *this;
243 }
245
247
254 inline OriginType GetOrigin() const { return m_origin; }
255 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
256 inline void SetOrigin(OriginType value) {
257 m_originHasBeenSet = true;
258 m_origin = value;
259 }
261 SetOrigin(value);
262 return *this;
263 }
265
267
273 inline const Aws::String& GetCustomKeyStoreId() const { return m_customKeyStoreId; }
274 inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
275 template <typename CustomKeyStoreIdT = Aws::String>
276 void SetCustomKeyStoreId(CustomKeyStoreIdT&& value) {
277 m_customKeyStoreIdHasBeenSet = true;
278 m_customKeyStoreId = std::forward<CustomKeyStoreIdT>(value);
279 }
280 template <typename CustomKeyStoreIdT = Aws::String>
281 KeyMetadata& WithCustomKeyStoreId(CustomKeyStoreIdT&& value) {
282 SetCustomKeyStoreId(std::forward<CustomKeyStoreIdT>(value));
283 return *this;
284 }
286
288
296 inline const Aws::String& GetCloudHsmClusterId() const { return m_cloudHsmClusterId; }
297 inline bool CloudHsmClusterIdHasBeenSet() const { return m_cloudHsmClusterIdHasBeenSet; }
298 template <typename CloudHsmClusterIdT = Aws::String>
299 void SetCloudHsmClusterId(CloudHsmClusterIdT&& value) {
300 m_cloudHsmClusterIdHasBeenSet = true;
301 m_cloudHsmClusterId = std::forward<CloudHsmClusterIdT>(value);
302 }
303 template <typename CloudHsmClusterIdT = Aws::String>
304 KeyMetadata& WithCloudHsmClusterId(CloudHsmClusterIdT&& value) {
305 SetCloudHsmClusterId(std::forward<CloudHsmClusterIdT>(value));
306 return *this;
307 }
309
311
316 inline ExpirationModelType GetExpirationModel() const { return m_expirationModel; }
317 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
319 m_expirationModelHasBeenSet = true;
320 m_expirationModel = value;
321 }
323 SetExpirationModel(value);
324 return *this;
325 }
327
329
336 inline KeyManagerType GetKeyManager() const { return m_keyManager; }
337 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
338 inline void SetKeyManager(KeyManagerType value) {
339 m_keyManagerHasBeenSet = true;
340 m_keyManager = value;
341 }
343 SetKeyManager(value);
344 return *this;
345 }
347
349
352 inline KeySpec GetKeySpec() const { return m_keySpec; }
353 inline bool KeySpecHasBeenSet() const { return m_keySpecHasBeenSet; }
354 inline void SetKeySpec(KeySpec value) {
355 m_keySpecHasBeenSet = true;
356 m_keySpec = value;
357 }
359 SetKeySpec(value);
360 return *this;
361 }
363
365
371 inline const Aws::Vector<EncryptionAlgorithmSpec>& GetEncryptionAlgorithms() const { return m_encryptionAlgorithms; }
372 inline bool EncryptionAlgorithmsHasBeenSet() const { return m_encryptionAlgorithmsHasBeenSet; }
373 template <typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
374 void SetEncryptionAlgorithms(EncryptionAlgorithmsT&& value) {
375 m_encryptionAlgorithmsHasBeenSet = true;
376 m_encryptionAlgorithms = std::forward<EncryptionAlgorithmsT>(value);
377 }
378 template <typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
379 KeyMetadata& WithEncryptionAlgorithms(EncryptionAlgorithmsT&& value) {
380 SetEncryptionAlgorithms(std::forward<EncryptionAlgorithmsT>(value));
381 return *this;
382 }
384 m_encryptionAlgorithmsHasBeenSet = true;
385 m_encryptionAlgorithms.push_back(value);
386 return *this;
387 }
389
391
396 inline const Aws::Vector<SigningAlgorithmSpec>& GetSigningAlgorithms() const { return m_signingAlgorithms; }
397 inline bool SigningAlgorithmsHasBeenSet() const { return m_signingAlgorithmsHasBeenSet; }
398 template <typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
399 void SetSigningAlgorithms(SigningAlgorithmsT&& value) {
400 m_signingAlgorithmsHasBeenSet = true;
401 m_signingAlgorithms = std::forward<SigningAlgorithmsT>(value);
402 }
403 template <typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
404 KeyMetadata& WithSigningAlgorithms(SigningAlgorithmsT&& value) {
405 SetSigningAlgorithms(std::forward<SigningAlgorithmsT>(value));
406 return *this;
407 }
409 m_signingAlgorithmsHasBeenSet = true;
410 m_signingAlgorithms.push_back(value);
411 return *this;
412 }
414
416
419 inline const Aws::Vector<KeyAgreementAlgorithmSpec>& GetKeyAgreementAlgorithms() const { return m_keyAgreementAlgorithms; }
420 inline bool KeyAgreementAlgorithmsHasBeenSet() const { return m_keyAgreementAlgorithmsHasBeenSet; }
421 template <typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
422 void SetKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) {
423 m_keyAgreementAlgorithmsHasBeenSet = true;
424 m_keyAgreementAlgorithms = std::forward<KeyAgreementAlgorithmsT>(value);
425 }
426 template <typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
427 KeyMetadata& WithKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) {
428 SetKeyAgreementAlgorithms(std::forward<KeyAgreementAlgorithmsT>(value));
429 return *this;
430 }
432 m_keyAgreementAlgorithmsHasBeenSet = true;
433 m_keyAgreementAlgorithms.push_back(value);
434 return *this;
435 }
437
439
444 inline const Aws::Vector<EncapsulationAlgorithmSpec>& GetEncapsulationAlgorithms() const { return m_encapsulationAlgorithms; }
445 inline bool EncapsulationAlgorithmsHasBeenSet() const { return m_encapsulationAlgorithmsHasBeenSet; }
446 template <typename EncapsulationAlgorithmsT = Aws::Vector<EncapsulationAlgorithmSpec>>
447 void SetEncapsulationAlgorithms(EncapsulationAlgorithmsT&& value) {
448 m_encapsulationAlgorithmsHasBeenSet = true;
449 m_encapsulationAlgorithms = std::forward<EncapsulationAlgorithmsT>(value);
450 }
451 template <typename EncapsulationAlgorithmsT = Aws::Vector<EncapsulationAlgorithmSpec>>
452 KeyMetadata& WithEncapsulationAlgorithms(EncapsulationAlgorithmsT&& value) {
453 SetEncapsulationAlgorithms(std::forward<EncapsulationAlgorithmsT>(value));
454 return *this;
455 }
457 m_encapsulationAlgorithmsHasBeenSet = true;
458 m_encapsulationAlgorithms.push_back(value);
459 return *this;
460 }
462
464
472 inline bool GetMultiRegion() const { return m_multiRegion; }
473 inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
474 inline void SetMultiRegion(bool value) {
475 m_multiRegionHasBeenSet = true;
476 m_multiRegion = value;
477 }
478 inline KeyMetadata& WithMultiRegion(bool value) {
479 SetMultiRegion(value);
480 return *this;
481 }
483
485
497 inline const MultiRegionConfiguration& GetMultiRegionConfiguration() const { return m_multiRegionConfiguration; }
498 inline bool MultiRegionConfigurationHasBeenSet() const { return m_multiRegionConfigurationHasBeenSet; }
499 template <typename MultiRegionConfigurationT = MultiRegionConfiguration>
500 void SetMultiRegionConfiguration(MultiRegionConfigurationT&& value) {
501 m_multiRegionConfigurationHasBeenSet = true;
502 m_multiRegionConfiguration = std::forward<MultiRegionConfigurationT>(value);
503 }
504 template <typename MultiRegionConfigurationT = MultiRegionConfiguration>
505 KeyMetadata& WithMultiRegionConfiguration(MultiRegionConfigurationT&& value) {
506 SetMultiRegionConfiguration(std::forward<MultiRegionConfigurationT>(value));
507 return *this;
508 }
510
512
528 inline int GetPendingDeletionWindowInDays() const { return m_pendingDeletionWindowInDays; }
529 inline bool PendingDeletionWindowInDaysHasBeenSet() const { return m_pendingDeletionWindowInDaysHasBeenSet; }
530 inline void SetPendingDeletionWindowInDays(int value) {
531 m_pendingDeletionWindowInDaysHasBeenSet = true;
532 m_pendingDeletionWindowInDays = value;
533 }
536 return *this;
537 }
539
541
546 inline const Aws::Vector<MacAlgorithmSpec>& GetMacAlgorithms() const { return m_macAlgorithms; }
547 inline bool MacAlgorithmsHasBeenSet() const { return m_macAlgorithmsHasBeenSet; }
548 template <typename MacAlgorithmsT = Aws::Vector<MacAlgorithmSpec>>
549 void SetMacAlgorithms(MacAlgorithmsT&& value) {
550 m_macAlgorithmsHasBeenSet = true;
551 m_macAlgorithms = std::forward<MacAlgorithmsT>(value);
552 }
553 template <typename MacAlgorithmsT = Aws::Vector<MacAlgorithmSpec>>
554 KeyMetadata& WithMacAlgorithms(MacAlgorithmsT&& value) {
555 SetMacAlgorithms(std::forward<MacAlgorithmsT>(value));
556 return *this;
557 }
559 m_macAlgorithmsHasBeenSet = true;
560 m_macAlgorithms.push_back(value);
561 return *this;
562 }
564
566
572 inline const XksKeyConfigurationType& GetXksKeyConfiguration() const { return m_xksKeyConfiguration; }
573 inline bool XksKeyConfigurationHasBeenSet() const { return m_xksKeyConfigurationHasBeenSet; }
574 template <typename XksKeyConfigurationT = XksKeyConfigurationType>
575 void SetXksKeyConfiguration(XksKeyConfigurationT&& value) {
576 m_xksKeyConfigurationHasBeenSet = true;
577 m_xksKeyConfiguration = std::forward<XksKeyConfigurationT>(value);
578 }
579 template <typename XksKeyConfigurationT = XksKeyConfigurationType>
580 KeyMetadata& WithXksKeyConfiguration(XksKeyConfigurationT&& value) {
581 SetXksKeyConfiguration(std::forward<XksKeyConfigurationT>(value));
582 return *this;
583 }
585
587
595 inline const Aws::String& GetCurrentKeyMaterialId() const { return m_currentKeyMaterialId; }
596 inline bool CurrentKeyMaterialIdHasBeenSet() const { return m_currentKeyMaterialIdHasBeenSet; }
597 template <typename CurrentKeyMaterialIdT = Aws::String>
598 void SetCurrentKeyMaterialId(CurrentKeyMaterialIdT&& value) {
599 m_currentKeyMaterialIdHasBeenSet = true;
600 m_currentKeyMaterialId = std::forward<CurrentKeyMaterialIdT>(value);
601 }
602 template <typename CurrentKeyMaterialIdT = Aws::String>
603 KeyMetadata& WithCurrentKeyMaterialId(CurrentKeyMaterialIdT&& value) {
604 SetCurrentKeyMaterialId(std::forward<CurrentKeyMaterialIdT>(value));
605 return *this;
606 }
608 private:
609 Aws::String m_aWSAccountId;
610
611 Aws::String m_keyId;
612
613 Aws::String m_arn;
614
615 Aws::Utils::DateTime m_creationDate{};
616
617 bool m_enabled{false};
618
619 Aws::String m_description;
620
622
623 KeyState m_keyState{KeyState::NOT_SET};
624
625 Aws::Utils::DateTime m_deletionDate{};
626
627 Aws::Utils::DateTime m_validTo{};
628
630
631 Aws::String m_customKeyStoreId;
632
633 Aws::String m_cloudHsmClusterId;
634
636
638
639 KeySpec m_keySpec{KeySpec::NOT_SET};
640
641 Aws::Vector<EncryptionAlgorithmSpec> m_encryptionAlgorithms;
642
643 Aws::Vector<SigningAlgorithmSpec> m_signingAlgorithms;
644
645 Aws::Vector<KeyAgreementAlgorithmSpec> m_keyAgreementAlgorithms;
646
647 Aws::Vector<EncapsulationAlgorithmSpec> m_encapsulationAlgorithms;
648
649 bool m_multiRegion{false};
650
651 MultiRegionConfiguration m_multiRegionConfiguration;
652
653 int m_pendingDeletionWindowInDays{0};
654
655 Aws::Vector<MacAlgorithmSpec> m_macAlgorithms;
656
657 XksKeyConfigurationType m_xksKeyConfiguration;
658
659 Aws::String m_currentKeyMaterialId;
660 bool m_aWSAccountIdHasBeenSet = false;
661 bool m_keyIdHasBeenSet = false;
662 bool m_arnHasBeenSet = false;
663 bool m_creationDateHasBeenSet = false;
664 bool m_enabledHasBeenSet = false;
665 bool m_descriptionHasBeenSet = false;
666 bool m_keyUsageHasBeenSet = false;
667 bool m_keyStateHasBeenSet = false;
668 bool m_deletionDateHasBeenSet = false;
669 bool m_validToHasBeenSet = false;
670 bool m_originHasBeenSet = false;
671 bool m_customKeyStoreIdHasBeenSet = false;
672 bool m_cloudHsmClusterIdHasBeenSet = false;
673 bool m_expirationModelHasBeenSet = false;
674 bool m_keyManagerHasBeenSet = false;
675 bool m_keySpecHasBeenSet = false;
676 bool m_encryptionAlgorithmsHasBeenSet = false;
677 bool m_signingAlgorithmsHasBeenSet = false;
678 bool m_keyAgreementAlgorithmsHasBeenSet = false;
679 bool m_encapsulationAlgorithmsHasBeenSet = false;
680 bool m_multiRegionHasBeenSet = false;
681 bool m_multiRegionConfigurationHasBeenSet = false;
682 bool m_pendingDeletionWindowInDaysHasBeenSet = false;
683 bool m_macAlgorithmsHasBeenSet = false;
684 bool m_xksKeyConfigurationHasBeenSet = false;
685 bool m_currentKeyMaterialIdHasBeenSet = false;
686};
687
688} // namespace Model
689} // namespace KMS
690} // namespace Aws
void SetAWSAccountId(AWSAccountIdT &&value)
Definition KeyMetadata.h:59
bool EncapsulationAlgorithmsHasBeenSet() const
bool ExpirationModelHasBeenSet() const
bool KeyAgreementAlgorithmsHasBeenSet() const
KeyMetadata & WithDescription(DescriptionT &&value)
KeyMetadata & WithKeyAgreementAlgorithms(KeyAgreementAlgorithmsT &&value)
KeyMetadata & WithExpirationModel(ExpirationModelType value)
KeyMetadata & WithOrigin(OriginType value)
KeyMetadata & AddMacAlgorithms(MacAlgorithmSpec value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
int GetPendingDeletionWindowInDays() const
bool DeletionDateHasBeenSet() const
const Aws::String & GetAWSAccountId() const
Definition KeyMetadata.h:56
void SetValidTo(ValidToT &&value)
KeyMetadata & WithEncryptionAlgorithms(EncryptionAlgorithmsT &&value)
KeyMetadata & AddSigningAlgorithms(SigningAlgorithmSpec value)
KeyManagerType GetKeyManager() const
const Aws::String & GetArn() const
Definition KeyMetadata.h:95
KeyMetadata & AddEncryptionAlgorithms(EncryptionAlgorithmSpec value)
KeyMetadata & WithCustomKeyStoreId(CustomKeyStoreIdT &&value)
ExpirationModelType GetExpirationModel() const
void SetCustomKeyStoreId(CustomKeyStoreIdT &&value)
bool CloudHsmClusterIdHasBeenSet() const
bool AWSAccountIdHasBeenSet() const
Definition KeyMetadata.h:57
bool MultiRegionConfigurationHasBeenSet() const
KeyState GetKeyState() const
bool XksKeyConfigurationHasBeenSet() const
void SetDescription(DescriptionT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::Vector< SigningAlgorithmSpec > & GetSigningAlgorithms() const
const Aws::Utils::DateTime & GetDeletionDate() const
const Aws::String & GetKeyId() const
Definition KeyMetadata.h:74
KeyMetadata & WithArn(ArnT &&value)
bool MacAlgorithmsHasBeenSet() const
KeyMetadata & WithKeySpec(KeySpec value)
KeyMetadata & WithDeletionDate(DeletionDateT &&value)
void SetArn(ArnT &&value)
Definition KeyMetadata.h:98
AWS_KMS_API KeyMetadata()=default
bool SigningAlgorithmsHasBeenSet() const
void SetKeyUsage(KeyUsageType value)
void SetSigningAlgorithms(SigningAlgorithmsT &&value)
bool CreationDateHasBeenSet() const
const Aws::Vector< EncryptionAlgorithmSpec > & GetEncryptionAlgorithms() const
void SetEncapsulationAlgorithms(EncapsulationAlgorithmsT &&value)
void SetExpirationModel(ExpirationModelType value)
void SetMacAlgorithms(MacAlgorithmsT &&value)
void SetKeyAgreementAlgorithms(KeyAgreementAlgorithmsT &&value)
KeyMetadata & WithPendingDeletionWindowInDays(int value)
KeyMetadata & WithValidTo(ValidToT &&value)
const Aws::Utils::DateTime & GetValidTo() const
void SetPendingDeletionWindowInDays(int value)
KeyMetadata & WithEnabled(bool value)
KeyMetadata & WithMultiRegion(bool value)
KeyMetadata & WithKeyId(KeyIdT &&value)
Definition KeyMetadata.h:82
const Aws::Vector< MacAlgorithmSpec > & GetMacAlgorithms() const
void SetKeyState(KeyState value)
AWS_KMS_API KeyMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetKeyManager(KeyManagerType value)
void SetEncryptionAlgorithms(EncryptionAlgorithmsT &&value)
const XksKeyConfigurationType & GetXksKeyConfiguration() const
KeyMetadata & WithKeyUsage(KeyUsageType value)
KeyMetadata & AddEncapsulationAlgorithms(EncapsulationAlgorithmSpec value)
KeyMetadata & WithKeyManager(KeyManagerType value)
bool CustomKeyStoreIdHasBeenSet() const
KeyMetadata & WithMacAlgorithms(MacAlgorithmsT &&value)
void SetKeySpec(KeySpec value)
KeyMetadata & WithCurrentKeyMaterialId(CurrentKeyMaterialIdT &&value)
const Aws::Vector< KeyAgreementAlgorithmSpec > & GetKeyAgreementAlgorithms() const
KeyMetadata & WithAWSAccountId(AWSAccountIdT &&value)
Definition KeyMetadata.h:64
void SetCloudHsmClusterId(CloudHsmClusterIdT &&value)
bool CurrentKeyMaterialIdHasBeenSet() const
void SetDeletionDate(DeletionDateT &&value)
const Aws::String & GetCloudHsmClusterId() const
KeyUsageType GetKeyUsage() const
void SetCurrentKeyMaterialId(CurrentKeyMaterialIdT &&value)
void SetEnabled(bool value)
const Aws::Utils::DateTime & GetCreationDate() const
bool EncryptionAlgorithmsHasBeenSet() const
KeyMetadata & WithKeyState(KeyState value)
void SetMultiRegion(bool value)
const Aws::String & GetCustomKeyStoreId() const
KeyMetadata & WithXksKeyConfiguration(XksKeyConfigurationT &&value)
OriginType GetOrigin() const
void SetKeyId(KeyIdT &&value)
Definition KeyMetadata.h:77
AWS_KMS_API KeyMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOrigin(OriginType value)
KeyMetadata & WithCreationDate(CreationDateT &&value)
void SetXksKeyConfiguration(XksKeyConfigurationT &&value)
KeyMetadata & WithSigningAlgorithms(SigningAlgorithmsT &&value)
KeyMetadata & WithEncapsulationAlgorithms(EncapsulationAlgorithmsT &&value)
void SetMultiRegionConfiguration(MultiRegionConfigurationT &&value)
KeyMetadata & WithCloudHsmClusterId(CloudHsmClusterIdT &&value)
const Aws::String & GetCurrentKeyMaterialId() const
const MultiRegionConfiguration & GetMultiRegionConfiguration() const
KeyMetadata & AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec value)
const Aws::Vector< EncapsulationAlgorithmSpec > & GetEncapsulationAlgorithms() const
const Aws::String & GetDescription() const
KeyMetadata & WithMultiRegionConfiguration(MultiRegionConfigurationT &&value)
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