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/ReplicationStatusType.h>
14#include <aws/secretsmanager/model/RotationRulesType.h>
15#include <aws/secretsmanager/model/Tag.h>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace SecretsManager {
41 template <
typename ARNT = Aws::String>
43 m_aRNHasBeenSet =
true;
44 m_aRN = std::forward<ARNT>(value);
46 template <
typename ARNT = Aws::String>
48 SetARN(std::forward<ARNT>(value));
58 template <
typename NameT = Aws::String>
60 m_nameHasBeenSet =
true;
61 m_name = std::forward<NameT>(value);
63 template <
typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
78 template <
typename TypeT = Aws::String>
80 m_typeHasBeenSet =
true;
81 m_type = std::forward<TypeT>(value);
83 template <
typename TypeT = Aws::String>
85 SetType(std::forward<TypeT>(value));
95 template <
typename DescriptionT = Aws::String>
97 m_descriptionHasBeenSet =
true;
98 m_description = std::forward<DescriptionT>(value);
100 template <
typename DescriptionT = Aws::String>
115 template <
typename KmsKeyIdT = Aws::String>
117 m_kmsKeyIdHasBeenSet =
true;
118 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
120 template <
typename KmsKeyIdT = Aws::String>
136 m_rotationEnabledHasBeenSet =
true;
137 m_rotationEnabled = value;
151 template <
typename RotationLambdaARNT = Aws::String>
153 m_rotationLambdaARNHasBeenSet =
true;
154 m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value);
156 template <
typename RotationLambdaARNT = Aws::String>
171 template <
typename RotationRulesT = RotationRulesType>
173 m_rotationRulesHasBeenSet =
true;
174 m_rotationRules = std::forward<RotationRulesT>(value);
176 template <
typename RotationRulesT = RotationRulesType>
192 return m_externalSecretRotationMetadata;
194 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
196 m_externalSecretRotationMetadataHasBeenSet =
true;
197 m_externalSecretRotationMetadata = std::forward<ExternalSecretRotationMetadataT>(value);
199 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
204 template <
typename ExternalSecretRotationMetadataT = ExternalSecretRotationMetadataItem>
206 m_externalSecretRotationMetadataHasBeenSet =
true;
207 m_externalSecretRotationMetadata.emplace_back(std::forward<ExternalSecretRotationMetadataT>(value));
220 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
222 m_externalSecretRotationRoleArnHasBeenSet =
true;
223 m_externalSecretRotationRoleArn = std::forward<ExternalSecretRotationRoleArnT>(value);
225 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
239 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
241 m_lastRotatedDateHasBeenSet =
true;
242 m_lastRotatedDate = std::forward<LastRotatedDateT>(value);
244 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
256 template <
typename LastChangedDateT = Aws::Utils::DateTime>
258 m_lastChangedDateHasBeenSet =
true;
259 m_lastChangedDate = std::forward<LastChangedDateT>(value);
261 template <
typename LastChangedDateT = Aws::Utils::DateTime>
274 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
276 m_lastAccessedDateHasBeenSet =
true;
277 m_lastAccessedDate = std::forward<LastAccessedDateT>(value);
279 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
297 template <
typename DeletedDateT = Aws::Utils::DateTime>
299 m_deletedDateHasBeenSet =
true;
300 m_deletedDate = std::forward<DeletedDateT>(value);
302 template <
typename DeletedDateT = Aws::Utils::DateTime>
321 template <
typename NextRotationDateT = Aws::Utils::DateTime>
323 m_nextRotationDateHasBeenSet =
true;
324 m_nextRotationDate = std::forward<NextRotationDateT>(value);
326 template <
typename NextRotationDateT = Aws::Utils::DateTime>
339 template <
typename TagsT = Aws::Vector<Tag>>
341 m_tagsHasBeenSet =
true;
342 m_tags = std::forward<TagsT>(value);
344 template <
typename TagsT = Aws::Vector<Tag>>
346 SetTags(std::forward<TagsT>(value));
349 template <
typename TagsT = Tag>
351 m_tagsHasBeenSet =
true;
352 m_tags.emplace_back(std::forward<TagsT>(value));
377 template <
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
379 m_versionIdsToStagesHasBeenSet =
true;
380 m_versionIdsToStages = std::forward<VersionIdsToStagesT>(value);
382 template <
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
387 template <
typename VersionIdsToStagesKeyT = Aws::String,
typename VersionIdsToStagesValueT = Aws::Vector<Aws::String>>
389 m_versionIdsToStagesHasBeenSet =
true;
390 m_versionIdsToStages.emplace(std::forward<VersionIdsToStagesKeyT>(key), std::forward<VersionIdsToStagesValueT>(value));
402 template <
typename OwningServiceT = Aws::String>
404 m_owningServiceHasBeenSet =
true;
405 m_owningService = std::forward<OwningServiceT>(value);
407 template <
typename OwningServiceT = Aws::String>
419 template <
typename CreatedDateT = Aws::Utils::DateTime>
421 m_createdDateHasBeenSet =
true;
422 m_createdDate = std::forward<CreatedDateT>(value);
424 template <
typename CreatedDateT = Aws::Utils::DateTime>
437 template <
typename PrimaryRegionT = Aws::String>
439 m_primaryRegionHasBeenSet =
true;
440 m_primaryRegion = std::forward<PrimaryRegionT>(value);
442 template <
typename PrimaryRegionT = Aws::String>
458 template <
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
460 m_replicationStatusHasBeenSet =
true;
461 m_replicationStatus = std::forward<ReplicationStatusT>(value);
463 template <
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
468 template <
typename ReplicationStatusT = ReplicationStatusType>
470 m_replicationStatusHasBeenSet =
true;
471 m_replicationStatus.emplace_back(std::forward<ReplicationStatusT>(value));
479 template <
typename RequestIdT = Aws::String>
481 m_requestIdHasBeenSet =
true;
482 m_requestId = std::forward<RequestIdT>(value);
484 template <
typename RequestIdT = Aws::String>
501 bool m_rotationEnabled{
false};
505 RotationRulesType m_rotationRules;
534 bool m_aRNHasBeenSet =
false;
535 bool m_nameHasBeenSet =
false;
536 bool m_typeHasBeenSet =
false;
537 bool m_descriptionHasBeenSet =
false;
538 bool m_kmsKeyIdHasBeenSet =
false;
539 bool m_rotationEnabledHasBeenSet =
false;
540 bool m_rotationLambdaARNHasBeenSet =
false;
541 bool m_rotationRulesHasBeenSet =
false;
542 bool m_externalSecretRotationMetadataHasBeenSet =
false;
543 bool m_externalSecretRotationRoleArnHasBeenSet =
false;
544 bool m_lastRotatedDateHasBeenSet =
false;
545 bool m_lastChangedDateHasBeenSet =
false;
546 bool m_lastAccessedDateHasBeenSet =
false;
547 bool m_deletedDateHasBeenSet =
false;
548 bool m_nextRotationDateHasBeenSet =
false;
549 bool m_tagsHasBeenSet =
false;
550 bool m_versionIdsToStagesHasBeenSet =
false;
551 bool m_owningServiceHasBeenSet =
false;
552 bool m_createdDateHasBeenSet =
false;
553 bool m_primaryRegionHasBeenSet =
false;
554 bool m_replicationStatusHasBeenSet =
false;
555 bool m_requestIdHasBeenSet =
false;
DescribeSecretResult & WithNextRotationDate(NextRotationDateT &&value)
const Aws::Utils::DateTime & GetNextRotationDate() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetVersionIdsToStages() const
void SetType(TypeT &&value)
DescribeSecretResult & WithRequestId(RequestIdT &&value)
DescribeSecretResult & WithCreatedDate(CreatedDateT &&value)
DescribeSecretResult & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetOwningService() const
const Aws::Vector< ReplicationStatusType > & GetReplicationStatus() const
DescribeSecretResult & WithRotationEnabled(bool value)
DescribeSecretResult & AddExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
DescribeSecretResult & WithRotationLambdaARN(RotationLambdaARNT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_SECRETSMANAGER_API DescribeSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSecretResult & WithLastChangedDate(LastChangedDateT &&value)
DescribeSecretResult & WithARN(ARNT &&value)
DescribeSecretResult & WithKmsKeyId(KmsKeyIdT &&value)
DescribeSecretResult & AddVersionIdsToStages(VersionIdsToStagesKeyT &&key, VersionIdsToStagesValueT &&value)
void SetVersionIdsToStages(VersionIdsToStagesT &&value)
DescribeSecretResult & WithLastAccessedDate(LastAccessedDateT &&value)
DescribeSecretResult & WithExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
DescribeSecretResult & WithOwningService(OwningServiceT &&value)
DescribeSecretResult & WithType(TypeT &&value)
void SetNextRotationDate(NextRotationDateT &&value)
void SetRotationLambdaARN(RotationLambdaARNT &&value)
const Aws::Vector< ExternalSecretRotationMetadataItem > & GetExternalSecretRotationMetadata() const
void SetExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
DescribeSecretResult & WithPrimaryRegion(PrimaryRegionT &&value)
bool GetRotationEnabled() const
void SetCreatedDate(CreatedDateT &&value)
const Aws::String & GetRotationLambdaARN() const
DescribeSecretResult & WithLastRotatedDate(LastRotatedDateT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_SECRETSMANAGER_API DescribeSecretResult()=default
DescribeSecretResult & WithExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
void SetName(NameT &&value)
DescribeSecretResult & WithVersionIdsToStages(VersionIdsToStagesT &&value)
DescribeSecretResult & AddReplicationStatus(ReplicationStatusT &&value)
DescribeSecretResult & AddTags(TagsT &&value)
void SetTags(TagsT &&value)
void SetDeletedDate(DeletedDateT &&value)
AWS_SECRETSMANAGER_API DescribeSecretResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Utils::DateTime & GetDeletedDate() const
const Aws::String & GetKmsKeyId() const
const Aws::Utils::DateTime & GetLastRotatedDate() const
void SetReplicationStatus(ReplicationStatusT &&value)
void SetLastAccessedDate(LastAccessedDateT &&value)
void SetLastRotatedDate(LastRotatedDateT &&value)
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
void SetARN(ARNT &&value)
const Aws::String & GetType() const
const RotationRulesType & GetRotationRules() const
const Aws::String & GetPrimaryRegion() const
void SetRotationEnabled(bool value)
void SetExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
const Aws::String & GetARN() const
void SetRequestId(RequestIdT &&value)
DescribeSecretResult & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
DescribeSecretResult & WithRotationRules(RotationRulesT &&value)
const Aws::Utils::DateTime & GetLastChangedDate() const
DescribeSecretResult & WithName(NameT &&value)
void SetLastChangedDate(LastChangedDateT &&value)
DescribeSecretResult & WithDeletedDate(DeletedDateT &&value)
void SetRotationRules(RotationRulesT &&value)
void SetOwningService(OwningServiceT &&value)
const Aws::String & GetExternalSecretRotationRoleArn() const
DescribeSecretResult & WithReplicationStatus(ReplicationStatusT &&value)
const Aws::String & GetRequestId() const
void SetPrimaryRegion(PrimaryRegionT &&value)
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