7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
12#include <aws/secretsmanager/model/ExternalSecretRotationMetadataItem.h>
13#include <aws/secretsmanager/model/RotationRulesType.h>
14#include <aws/secretsmanager/model/Tag.h>
25namespace SecretsManager {
50 template <
typename ARNT = Aws::String>
52 m_aRNHasBeenSet =
true;
53 m_aRN = std::forward<ARNT>(value);
55 template <
typename ARNT = Aws::String>
57 SetARN(std::forward<ARNT>(value));
68 template <
typename NameT = Aws::String>
70 m_nameHasBeenSet =
true;
71 m_name = std::forward<NameT>(value);
73 template <
typename NameT = Aws::String>
75 SetName(std::forward<NameT>(value));
89 template <
typename TypeT = Aws::String>
91 m_typeHasBeenSet =
true;
92 m_type = std::forward<TypeT>(value);
94 template <
typename TypeT = Aws::String>
96 SetType(std::forward<TypeT>(value));
107 template <
typename DescriptionT = Aws::String>
109 m_descriptionHasBeenSet =
true;
110 m_description = std::forward<DescriptionT>(value);
112 template <
typename DescriptionT = Aws::String>
127 template <
typename KmsKeyIdT = Aws::String>
129 m_kmsKeyIdHasBeenSet =
true;
130 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
132 template <
typename KmsKeyIdT = Aws::String>
147 m_rotationEnabledHasBeenSet =
true;
148 m_rotationEnabled = value;
166 template <
typename RotationLambdaARNT = Aws::String>
168 m_rotationLambdaARNHasBeenSet =
true;
169 m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value);
171 template <
typename RotationLambdaARNT = Aws::String>
184 template <
typename RotationRulesT = RotationRulesType>
186 m_rotationRulesHasBeenSet =
true;
187 m_rotationRules = std::forward<RotationRulesT>(value);
189 template <
typename RotationRulesT = RotationRulesType>
205 return m_externalSecretRotationMetadata;
208 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
210 m_externalSecretRotationMetadataHasBeenSet =
true;
211 m_externalSecretRotationMetadata = std::forward<ExternalSecretRotationMetadataT>(value);
213 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
218 template <
typename ExternalSecretRotationMetadataT = ExternalSecretRotationMetadataItem>
220 m_externalSecretRotationMetadataHasBeenSet =
true;
221 m_externalSecretRotationMetadata.emplace_back(std::forward<ExternalSecretRotationMetadataT>(value));
235 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
237 m_externalSecretRotationRoleArnHasBeenSet =
true;
238 m_externalSecretRotationRoleArn = std::forward<ExternalSecretRotationRoleArnT>(value);
240 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
255 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
257 m_lastRotatedDateHasBeenSet =
true;
258 m_lastRotatedDate = std::forward<LastRotatedDateT>(value);
260 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
273 template <
typename LastChangedDateT = Aws::Utils::DateTime>
275 m_lastChangedDateHasBeenSet =
true;
276 m_lastChangedDate = std::forward<LastChangedDateT>(value);
278 template <
typename LastChangedDateT = Aws::Utils::DateTime>
292 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
294 m_lastAccessedDateHasBeenSet =
true;
295 m_lastAccessedDate = std::forward<LastAccessedDateT>(value);
297 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
315 template <
typename DeletedDateT = Aws::Utils::DateTime>
317 m_deletedDateHasBeenSet =
true;
318 m_deletedDate = std::forward<DeletedDateT>(value);
320 template <
typename DeletedDateT = Aws::Utils::DateTime>
335 template <
typename NextRotationDateT = Aws::Utils::DateTime>
337 m_nextRotationDateHasBeenSet =
true;
338 m_nextRotationDate = std::forward<NextRotationDateT>(value);
340 template <
typename NextRotationDateT = Aws::Utils::DateTime>
358 template <
typename TagsT = Aws::Vector<Tag>>
360 m_tagsHasBeenSet =
true;
361 m_tags = std::forward<TagsT>(value);
363 template <
typename TagsT = Aws::Vector<Tag>>
365 SetTags(std::forward<TagsT>(value));
368 template <
typename TagsT = Tag>
370 m_tagsHasBeenSet =
true;
371 m_tags.emplace_back(std::forward<TagsT>(value));
387 template <
typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
389 m_secretVersionsToStagesHasBeenSet =
true;
390 m_secretVersionsToStages = std::forward<SecretVersionsToStagesT>(value);
392 template <
typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
397 template <
typename SecretVersionsToStagesKeyT = Aws::String,
typename SecretVersionsToStagesValueT = Aws::Vector<Aws::String>>
399 m_secretVersionsToStagesHasBeenSet =
true;
400 m_secretVersionsToStages.emplace(std::forward<SecretVersionsToStagesKeyT>(key), std::forward<SecretVersionsToStagesValueT>(value));
411 template <
typename OwningServiceT = Aws::String>
413 m_owningServiceHasBeenSet =
true;
414 m_owningService = std::forward<OwningServiceT>(value);
416 template <
typename OwningServiceT = Aws::String>
429 template <
typename CreatedDateT = Aws::Utils::DateTime>
431 m_createdDateHasBeenSet =
true;
432 m_createdDate = std::forward<CreatedDateT>(value);
434 template <
typename CreatedDateT = Aws::Utils::DateTime>
447 template <
typename PrimaryRegionT = Aws::String>
449 m_primaryRegionHasBeenSet =
true;
450 m_primaryRegion = std::forward<PrimaryRegionT>(value);
452 template <
typename PrimaryRegionT = Aws::String>
469 bool m_rotationEnabled{
false};
473 RotationRulesType m_rotationRules;
498 bool m_aRNHasBeenSet =
false;
499 bool m_nameHasBeenSet =
false;
500 bool m_typeHasBeenSet =
false;
501 bool m_descriptionHasBeenSet =
false;
502 bool m_kmsKeyIdHasBeenSet =
false;
503 bool m_rotationEnabledHasBeenSet =
false;
504 bool m_rotationLambdaARNHasBeenSet =
false;
505 bool m_rotationRulesHasBeenSet =
false;
506 bool m_externalSecretRotationMetadataHasBeenSet =
false;
507 bool m_externalSecretRotationRoleArnHasBeenSet =
false;
508 bool m_lastRotatedDateHasBeenSet =
false;
509 bool m_lastChangedDateHasBeenSet =
false;
510 bool m_lastAccessedDateHasBeenSet =
false;
511 bool m_deletedDateHasBeenSet =
false;
512 bool m_nextRotationDateHasBeenSet =
false;
513 bool m_tagsHasBeenSet =
false;
514 bool m_secretVersionsToStagesHasBeenSet =
false;
515 bool m_owningServiceHasBeenSet =
false;
516 bool m_createdDateHasBeenSet =
false;
517 bool m_primaryRegionHasBeenSet =
false;
void SetRotationRules(RotationRulesT &&value)
void SetRotationEnabled(bool value)
bool TypeHasBeenSet() const
void SetDeletedDate(DeletedDateT &&value)
bool NextRotationDateHasBeenSet() const
SecretListEntry & WithOwningService(OwningServiceT &&value)
bool CreatedDateHasBeenSet() const
bool DeletedDateHasBeenSet() const
const Aws::String & GetName() const
SecretListEntry & WithARN(ARNT &&value)
bool RotationRulesHasBeenSet() const
const Aws::Utils::DateTime & GetLastRotatedDate() const
bool TagsHasBeenSet() const
const RotationRulesType & GetRotationRules() const
void SetSecretVersionsToStages(SecretVersionsToStagesT &&value)
SecretListEntry & WithExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
bool LastAccessedDateHasBeenSet() const
void SetRotationLambdaARN(RotationLambdaARNT &&value)
bool ExternalSecretRotationMetadataHasBeenSet() const
bool RotationLambdaARNHasBeenSet() const
const Aws::String & GetRotationLambdaARN() const
const Aws::String & GetExternalSecretRotationRoleArn() const
SecretListEntry & WithPrimaryRegion(PrimaryRegionT &&value)
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDeletedDate() const
SecretListEntry & WithType(TypeT &&value)
void SetTags(TagsT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetOwningService() const
void SetLastAccessedDate(LastAccessedDateT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetType(TypeT &&value)
void SetExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
SecretListEntry & WithRotationLambdaARN(RotationLambdaARNT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< ExternalSecretRotationMetadataItem > & GetExternalSecretRotationMetadata() const
bool DescriptionHasBeenSet() const
SecretListEntry & WithRotationRules(RotationRulesT &&value)
AWS_SECRETSMANAGER_API SecretListEntry(Aws::Utils::Json::JsonView jsonValue)
SecretListEntry & WithNextRotationDate(NextRotationDateT &&value)
SecretListEntry & WithDescription(DescriptionT &&value)
void SetARN(ARNT &&value)
SecretListEntry & WithLastChangedDate(LastChangedDateT &&value)
bool ARNHasBeenSet() const
bool NameHasBeenSet() const
bool GetRotationEnabled() const
AWS_SECRETSMANAGER_API SecretListEntry()=default
SecretListEntry & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastChangedDate() const
void SetLastChangedDate(LastChangedDateT &&value)
const Aws::Utils::DateTime & GetNextRotationDate() const
SecretListEntry & WithKmsKeyId(KmsKeyIdT &&value)
bool LastRotatedDateHasBeenSet() const
bool RotationEnabledHasBeenSet() const
SecretListEntry & WithRotationEnabled(bool value)
const Aws::String & GetType() const
SecretListEntry & WithLastRotatedDate(LastRotatedDateT &&value)
SecretListEntry & WithCreatedDate(CreatedDateT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSecretVersionsToStages() const
void SetCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
void SetExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
void SetLastRotatedDate(LastRotatedDateT &&value)
SecretListEntry & AddSecretVersionsToStages(SecretVersionsToStagesKeyT &&key, SecretVersionsToStagesValueT &&value)
bool OwningServiceHasBeenSet() const
const Aws::String & GetDescription() const
bool LastChangedDateHasBeenSet() const
void SetName(NameT &&value)
SecretListEntry & WithSecretVersionsToStages(SecretVersionsToStagesT &&value)
AWS_SECRETSMANAGER_API SecretListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKmsKeyId() const
SecretListEntry & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool ExternalSecretRotationRoleArnHasBeenSet() const
bool PrimaryRegionHasBeenSet() const
SecretListEntry & WithDeletedDate(DeletedDateT &&value)
const Aws::String & GetARN() const
bool KmsKeyIdHasBeenSet() const
SecretListEntry & AddExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
SecretListEntry & WithLastAccessedDate(LastAccessedDateT &&value)
void SetOwningService(OwningServiceT &&value)
SecretListEntry & AddTags(TagsT &&value)
void SetPrimaryRegion(PrimaryRegionT &&value)
void SetNextRotationDate(NextRotationDateT &&value)
SecretListEntry & WithExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
bool SecretVersionsToStagesHasBeenSet() const
const Aws::String & GetPrimaryRegion() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue