AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/EncryptionAlgorithmSpec.h>
12#include <aws/kms/model/ExpirationModelType.h>
13#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
14#include <aws/kms/model/KeyManagerType.h>
15#include <aws/kms/model/KeySpec.h>
16#include <aws/kms/model/KeyState.h>
17#include <aws/kms/model/KeyUsageType.h>
18#include <aws/kms/model/MacAlgorithmSpec.h>
19#include <aws/kms/model/MultiRegionConfiguration.h>
20#include <aws/kms/model/OriginType.h>
21#include <aws/kms/model/SigningAlgorithmSpec.h>
22#include <aws/kms/model/XksKeyConfigurationType.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace KMS {
34namespace Model {
35
44 public:
45 AWS_KMS_API KeyMetadata() = default;
49
51
55 inline const Aws::String& GetAWSAccountId() const { return m_aWSAccountId; }
56 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
57 template <typename AWSAccountIdT = Aws::String>
58 void SetAWSAccountId(AWSAccountIdT&& value) {
59 m_aWSAccountIdHasBeenSet = true;
60 m_aWSAccountId = std::forward<AWSAccountIdT>(value);
61 }
62 template <typename AWSAccountIdT = Aws::String>
63 KeyMetadata& WithAWSAccountId(AWSAccountIdT&& value) {
64 SetAWSAccountId(std::forward<AWSAccountIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetKeyId() const { return m_keyId; }
74 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
75 template <typename KeyIdT = Aws::String>
76 void SetKeyId(KeyIdT&& value) {
77 m_keyIdHasBeenSet = true;
78 m_keyId = std::forward<KeyIdT>(value);
79 }
80 template <typename KeyIdT = Aws::String>
81 KeyMetadata& WithKeyId(KeyIdT&& value) {
82 SetKeyId(std::forward<KeyIdT>(value));
83 return *this;
84 }
86
88
94 inline const Aws::String& GetArn() const { return m_arn; }
95 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 template <typename ArnT = Aws::String>
97 void SetArn(ArnT&& value) {
98 m_arnHasBeenSet = true;
99 m_arn = std::forward<ArnT>(value);
100 }
101 template <typename ArnT = Aws::String>
102 KeyMetadata& WithArn(ArnT&& value) {
103 SetArn(std::forward<ArnT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
113 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
114 template <typename CreationDateT = Aws::Utils::DateTime>
115 void SetCreationDate(CreationDateT&& value) {
116 m_creationDateHasBeenSet = true;
117 m_creationDate = std::forward<CreationDateT>(value);
118 }
119 template <typename CreationDateT = Aws::Utils::DateTime>
120 KeyMetadata& WithCreationDate(CreationDateT&& value) {
121 SetCreationDate(std::forward<CreationDateT>(value));
122 return *this;
123 }
125
127
131 inline bool GetEnabled() const { return m_enabled; }
132 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
133 inline void SetEnabled(bool value) {
134 m_enabledHasBeenSet = true;
135 m_enabled = value;
136 }
137 inline KeyMetadata& WithEnabled(bool value) {
138 SetEnabled(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDescription() const { return m_description; }
148 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
149 template <typename DescriptionT = Aws::String>
150 void SetDescription(DescriptionT&& value) {
151 m_descriptionHasBeenSet = true;
152 m_description = std::forward<DescriptionT>(value);
153 }
154 template <typename DescriptionT = Aws::String>
155 KeyMetadata& WithDescription(DescriptionT&& value) {
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
167 inline KeyUsageType GetKeyUsage() const { return m_keyUsage; }
168 inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; }
169 inline void SetKeyUsage(KeyUsageType value) {
170 m_keyUsageHasBeenSet = true;
171 m_keyUsage = value;
172 }
174 SetKeyUsage(value);
175 return *this;
176 }
178
180
186 inline KeyState GetKeyState() const { return m_keyState; }
187 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
188 inline void SetKeyState(KeyState value) {
189 m_keyStateHasBeenSet = true;
190 m_keyState = value;
191 }
193 SetKeyState(value);
194 return *this;
195 }
197
199
208 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
209 inline bool DeletionDateHasBeenSet() const { return m_deletionDateHasBeenSet; }
210 template <typename DeletionDateT = Aws::Utils::DateTime>
211 void SetDeletionDate(DeletionDateT&& value) {
212 m_deletionDateHasBeenSet = true;
213 m_deletionDate = std::forward<DeletionDateT>(value);
214 }
215 template <typename DeletionDateT = Aws::Utils::DateTime>
216 KeyMetadata& WithDeletionDate(DeletionDateT&& value) {
217 SetDeletionDate(std::forward<DeletionDateT>(value));
218 return *this;
219 }
221
223
231 inline const Aws::Utils::DateTime& GetValidTo() const { return m_validTo; }
232 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
233 template <typename ValidToT = Aws::Utils::DateTime>
234 void SetValidTo(ValidToT&& value) {
235 m_validToHasBeenSet = true;
236 m_validTo = std::forward<ValidToT>(value);
237 }
238 template <typename ValidToT = Aws::Utils::DateTime>
239 KeyMetadata& WithValidTo(ValidToT&& value) {
240 SetValidTo(std::forward<ValidToT>(value));
241 return *this;
242 }
244
246
253 inline OriginType GetOrigin() const { return m_origin; }
254 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
255 inline void SetOrigin(OriginType value) {
256 m_originHasBeenSet = true;
257 m_origin = value;
258 }
260 SetOrigin(value);
261 return *this;
262 }
264
266
272 inline const Aws::String& GetCustomKeyStoreId() const { return m_customKeyStoreId; }
273 inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
274 template <typename CustomKeyStoreIdT = Aws::String>
275 void SetCustomKeyStoreId(CustomKeyStoreIdT&& value) {
276 m_customKeyStoreIdHasBeenSet = true;
277 m_customKeyStoreId = std::forward<CustomKeyStoreIdT>(value);
278 }
279 template <typename CustomKeyStoreIdT = Aws::String>
280 KeyMetadata& WithCustomKeyStoreId(CustomKeyStoreIdT&& value) {
281 SetCustomKeyStoreId(std::forward<CustomKeyStoreIdT>(value));
282 return *this;
283 }
285
287
295 inline const Aws::String& GetCloudHsmClusterId() const { return m_cloudHsmClusterId; }
296 inline bool CloudHsmClusterIdHasBeenSet() const { return m_cloudHsmClusterIdHasBeenSet; }
297 template <typename CloudHsmClusterIdT = Aws::String>
298 void SetCloudHsmClusterId(CloudHsmClusterIdT&& value) {
299 m_cloudHsmClusterIdHasBeenSet = true;
300 m_cloudHsmClusterId = std::forward<CloudHsmClusterIdT>(value);
301 }
302 template <typename CloudHsmClusterIdT = Aws::String>
303 KeyMetadata& WithCloudHsmClusterId(CloudHsmClusterIdT&& value) {
304 SetCloudHsmClusterId(std::forward<CloudHsmClusterIdT>(value));
305 return *this;
306 }
308
310
315 inline ExpirationModelType GetExpirationModel() const { return m_expirationModel; }
316 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
318 m_expirationModelHasBeenSet = true;
319 m_expirationModel = value;
320 }
322 SetExpirationModel(value);
323 return *this;
324 }
326
328
335 inline KeyManagerType GetKeyManager() const { return m_keyManager; }
336 inline bool KeyManagerHasBeenSet() const { return m_keyManagerHasBeenSet; }
337 inline void SetKeyManager(KeyManagerType value) {
338 m_keyManagerHasBeenSet = true;
339 m_keyManager = value;
340 }
342 SetKeyManager(value);
343 return *this;
344 }
346
348
351 inline KeySpec GetKeySpec() const { return m_keySpec; }
352 inline bool KeySpecHasBeenSet() const { return m_keySpecHasBeenSet; }
353 inline void SetKeySpec(KeySpec value) {
354 m_keySpecHasBeenSet = true;
355 m_keySpec = value;
356 }
358 SetKeySpec(value);
359 return *this;
360 }
362
364
370 inline const Aws::Vector<EncryptionAlgorithmSpec>& GetEncryptionAlgorithms() const { return m_encryptionAlgorithms; }
371 inline bool EncryptionAlgorithmsHasBeenSet() const { return m_encryptionAlgorithmsHasBeenSet; }
372 template <typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
373 void SetEncryptionAlgorithms(EncryptionAlgorithmsT&& value) {
374 m_encryptionAlgorithmsHasBeenSet = true;
375 m_encryptionAlgorithms = std::forward<EncryptionAlgorithmsT>(value);
376 }
377 template <typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
378 KeyMetadata& WithEncryptionAlgorithms(EncryptionAlgorithmsT&& value) {
379 SetEncryptionAlgorithms(std::forward<EncryptionAlgorithmsT>(value));
380 return *this;
381 }
383 m_encryptionAlgorithmsHasBeenSet = true;
384 m_encryptionAlgorithms.push_back(value);
385 return *this;
386 }
388
390
395 inline const Aws::Vector<SigningAlgorithmSpec>& GetSigningAlgorithms() const { return m_signingAlgorithms; }
396 inline bool SigningAlgorithmsHasBeenSet() const { return m_signingAlgorithmsHasBeenSet; }
397 template <typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
398 void SetSigningAlgorithms(SigningAlgorithmsT&& value) {
399 m_signingAlgorithmsHasBeenSet = true;
400 m_signingAlgorithms = std::forward<SigningAlgorithmsT>(value);
401 }
402 template <typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
403 KeyMetadata& WithSigningAlgorithms(SigningAlgorithmsT&& value) {
404 SetSigningAlgorithms(std::forward<SigningAlgorithmsT>(value));
405 return *this;
406 }
408 m_signingAlgorithmsHasBeenSet = true;
409 m_signingAlgorithms.push_back(value);
410 return *this;
411 }
413
415
418 inline const Aws::Vector<KeyAgreementAlgorithmSpec>& GetKeyAgreementAlgorithms() const { return m_keyAgreementAlgorithms; }
419 inline bool KeyAgreementAlgorithmsHasBeenSet() const { return m_keyAgreementAlgorithmsHasBeenSet; }
420 template <typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
421 void SetKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) {
422 m_keyAgreementAlgorithmsHasBeenSet = true;
423 m_keyAgreementAlgorithms = std::forward<KeyAgreementAlgorithmsT>(value);
424 }
425 template <typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
426 KeyMetadata& WithKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) {
427 SetKeyAgreementAlgorithms(std::forward<KeyAgreementAlgorithmsT>(value));
428 return *this;
429 }
431 m_keyAgreementAlgorithmsHasBeenSet = true;
432 m_keyAgreementAlgorithms.push_back(value);
433 return *this;
434 }
436
438
446 inline bool GetMultiRegion() const { return m_multiRegion; }
447 inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
448 inline void SetMultiRegion(bool value) {
449 m_multiRegionHasBeenSet = true;
450 m_multiRegion = value;
451 }
452 inline KeyMetadata& WithMultiRegion(bool value) {
453 SetMultiRegion(value);
454 return *this;
455 }
457
459
471 inline const MultiRegionConfiguration& GetMultiRegionConfiguration() const { return m_multiRegionConfiguration; }
472 inline bool MultiRegionConfigurationHasBeenSet() const { return m_multiRegionConfigurationHasBeenSet; }
473 template <typename MultiRegionConfigurationT = MultiRegionConfiguration>
474 void SetMultiRegionConfiguration(MultiRegionConfigurationT&& value) {
475 m_multiRegionConfigurationHasBeenSet = true;
476 m_multiRegionConfiguration = std::forward<MultiRegionConfigurationT>(value);
477 }
478 template <typename MultiRegionConfigurationT = MultiRegionConfiguration>
479 KeyMetadata& WithMultiRegionConfiguration(MultiRegionConfigurationT&& value) {
480 SetMultiRegionConfiguration(std::forward<MultiRegionConfigurationT>(value));
481 return *this;
482 }
484
486
502 inline int GetPendingDeletionWindowInDays() const { return m_pendingDeletionWindowInDays; }
503 inline bool PendingDeletionWindowInDaysHasBeenSet() const { return m_pendingDeletionWindowInDaysHasBeenSet; }
504 inline void SetPendingDeletionWindowInDays(int value) {
505 m_pendingDeletionWindowInDaysHasBeenSet = true;
506 m_pendingDeletionWindowInDays = value;
507 }
510 return *this;
511 }
513
515
520 inline const Aws::Vector<MacAlgorithmSpec>& GetMacAlgorithms() const { return m_macAlgorithms; }
521 inline bool MacAlgorithmsHasBeenSet() const { return m_macAlgorithmsHasBeenSet; }
522 template <typename MacAlgorithmsT = Aws::Vector<MacAlgorithmSpec>>
523 void SetMacAlgorithms(MacAlgorithmsT&& value) {
524 m_macAlgorithmsHasBeenSet = true;
525 m_macAlgorithms = std::forward<MacAlgorithmsT>(value);
526 }
527 template <typename MacAlgorithmsT = Aws::Vector<MacAlgorithmSpec>>
528 KeyMetadata& WithMacAlgorithms(MacAlgorithmsT&& value) {
529 SetMacAlgorithms(std::forward<MacAlgorithmsT>(value));
530 return *this;
531 }
533 m_macAlgorithmsHasBeenSet = true;
534 m_macAlgorithms.push_back(value);
535 return *this;
536 }
538
540
546 inline const XksKeyConfigurationType& GetXksKeyConfiguration() const { return m_xksKeyConfiguration; }
547 inline bool XksKeyConfigurationHasBeenSet() const { return m_xksKeyConfigurationHasBeenSet; }
548 template <typename XksKeyConfigurationT = XksKeyConfigurationType>
549 void SetXksKeyConfiguration(XksKeyConfigurationT&& value) {
550 m_xksKeyConfigurationHasBeenSet = true;
551 m_xksKeyConfiguration = std::forward<XksKeyConfigurationT>(value);
552 }
553 template <typename XksKeyConfigurationT = XksKeyConfigurationType>
554 KeyMetadata& WithXksKeyConfiguration(XksKeyConfigurationT&& value) {
555 SetXksKeyConfiguration(std::forward<XksKeyConfigurationT>(value));
556 return *this;
557 }
559
561
569 inline const Aws::String& GetCurrentKeyMaterialId() const { return m_currentKeyMaterialId; }
570 inline bool CurrentKeyMaterialIdHasBeenSet() const { return m_currentKeyMaterialIdHasBeenSet; }
571 template <typename CurrentKeyMaterialIdT = Aws::String>
572 void SetCurrentKeyMaterialId(CurrentKeyMaterialIdT&& value) {
573 m_currentKeyMaterialIdHasBeenSet = true;
574 m_currentKeyMaterialId = std::forward<CurrentKeyMaterialIdT>(value);
575 }
576 template <typename CurrentKeyMaterialIdT = Aws::String>
577 KeyMetadata& WithCurrentKeyMaterialId(CurrentKeyMaterialIdT&& value) {
578 SetCurrentKeyMaterialId(std::forward<CurrentKeyMaterialIdT>(value));
579 return *this;
580 }
582 private:
583 Aws::String m_aWSAccountId;
584
585 Aws::String m_keyId;
586
587 Aws::String m_arn;
588
589 Aws::Utils::DateTime m_creationDate{};
590
591 bool m_enabled{false};
592
593 Aws::String m_description;
594
596
597 KeyState m_keyState{KeyState::NOT_SET};
598
599 Aws::Utils::DateTime m_deletionDate{};
600
601 Aws::Utils::DateTime m_validTo{};
602
604
605 Aws::String m_customKeyStoreId;
606
607 Aws::String m_cloudHsmClusterId;
608
610
612
613 KeySpec m_keySpec{KeySpec::NOT_SET};
614
615 Aws::Vector<EncryptionAlgorithmSpec> m_encryptionAlgorithms;
616
617 Aws::Vector<SigningAlgorithmSpec> m_signingAlgorithms;
618
619 Aws::Vector<KeyAgreementAlgorithmSpec> m_keyAgreementAlgorithms;
620
621 bool m_multiRegion{false};
622
623 MultiRegionConfiguration m_multiRegionConfiguration;
624
625 int m_pendingDeletionWindowInDays{0};
626
627 Aws::Vector<MacAlgorithmSpec> m_macAlgorithms;
628
629 XksKeyConfigurationType m_xksKeyConfiguration;
630
631 Aws::String m_currentKeyMaterialId;
632 bool m_aWSAccountIdHasBeenSet = false;
633 bool m_keyIdHasBeenSet = false;
634 bool m_arnHasBeenSet = false;
635 bool m_creationDateHasBeenSet = false;
636 bool m_enabledHasBeenSet = false;
637 bool m_descriptionHasBeenSet = false;
638 bool m_keyUsageHasBeenSet = false;
639 bool m_keyStateHasBeenSet = false;
640 bool m_deletionDateHasBeenSet = false;
641 bool m_validToHasBeenSet = false;
642 bool m_originHasBeenSet = false;
643 bool m_customKeyStoreIdHasBeenSet = false;
644 bool m_cloudHsmClusterIdHasBeenSet = false;
645 bool m_expirationModelHasBeenSet = false;
646 bool m_keyManagerHasBeenSet = false;
647 bool m_keySpecHasBeenSet = false;
648 bool m_encryptionAlgorithmsHasBeenSet = false;
649 bool m_signingAlgorithmsHasBeenSet = false;
650 bool m_keyAgreementAlgorithmsHasBeenSet = false;
651 bool m_multiRegionHasBeenSet = false;
652 bool m_multiRegionConfigurationHasBeenSet = false;
653 bool m_pendingDeletionWindowInDaysHasBeenSet = false;
654 bool m_macAlgorithmsHasBeenSet = false;
655 bool m_xksKeyConfigurationHasBeenSet = false;
656 bool m_currentKeyMaterialIdHasBeenSet = false;
657};
658
659} // namespace Model
660} // namespace KMS
661} // namespace Aws
void SetAWSAccountId(AWSAccountIdT &&value)
Definition KeyMetadata.h:58
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:55
void SetValidTo(ValidToT &&value)
KeyMetadata & WithEncryptionAlgorithms(EncryptionAlgorithmsT &&value)
KeyMetadata & AddSigningAlgorithms(SigningAlgorithmSpec value)
KeyManagerType GetKeyManager() const
const Aws::String & GetArn() const
Definition KeyMetadata.h:94
KeyMetadata & AddEncryptionAlgorithms(EncryptionAlgorithmSpec value)
KeyMetadata & WithCustomKeyStoreId(CustomKeyStoreIdT &&value)
ExpirationModelType GetExpirationModel() const
void SetCustomKeyStoreId(CustomKeyStoreIdT &&value)
bool CloudHsmClusterIdHasBeenSet() const
bool AWSAccountIdHasBeenSet() const
Definition KeyMetadata.h:56
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:73
KeyMetadata & WithArn(ArnT &&value)
bool MacAlgorithmsHasBeenSet() const
KeyMetadata & WithKeySpec(KeySpec value)
KeyMetadata & WithDeletionDate(DeletionDateT &&value)
void SetArn(ArnT &&value)
Definition KeyMetadata.h:97
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 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:81
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 & 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:63
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:76
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)
void SetMultiRegionConfiguration(MultiRegionConfigurationT &&value)
KeyMetadata & WithCloudHsmClusterId(CloudHsmClusterIdT &&value)
const Aws::String & GetCurrentKeyMaterialId() const
const MultiRegionConfiguration & GetMultiRegionConfiguration() const
KeyMetadata & AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec value)
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