7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
13#include <aws/secretsmanager/model/ExternalSecretRotationMetadataItem.h>
14#include <aws/secretsmanager/model/ReplicationStatusType.h>
15#include <aws/secretsmanager/model/RotationRulesType.h>
16#include <aws/secretsmanager/model/Tag.h>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
29namespace SecretsManager {
42 template <
typename ARNT = Aws::String>
44 m_aRNHasBeenSet =
true;
45 m_aRN = std::forward<ARNT>(value);
47 template <
typename ARNT = Aws::String>
49 SetARN(std::forward<ARNT>(value));
59 template <
typename NameT = Aws::String>
61 m_nameHasBeenSet =
true;
62 m_name = std::forward<NameT>(value);
64 template <
typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
79 template <
typename TypeT = Aws::String>
81 m_typeHasBeenSet =
true;
82 m_type = std::forward<TypeT>(value);
84 template <
typename TypeT = Aws::String>
86 SetType(std::forward<TypeT>(value));
96 template <
typename DescriptionT = Aws::String>
98 m_descriptionHasBeenSet =
true;
99 m_description = std::forward<DescriptionT>(value);
101 template <
typename DescriptionT = Aws::String>
116 template <
typename KmsKeyIdT = Aws::String>
118 m_kmsKeyIdHasBeenSet =
true;
119 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
121 template <
typename KmsKeyIdT = Aws::String>
137 m_rotationEnabledHasBeenSet =
true;
138 m_rotationEnabled = value;
152 template <
typename RotationLambdaARNT = Aws::String>
154 m_rotationLambdaARNHasBeenSet =
true;
155 m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value);
157 template <
typename RotationLambdaARNT = Aws::String>
172 template <
typename RotationRulesT = RotationRulesType>
174 m_rotationRulesHasBeenSet =
true;
175 m_rotationRules = std::forward<RotationRulesT>(value);
177 template <
typename RotationRulesT = RotationRulesType>
193 return m_externalSecretRotationMetadata;
195 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
197 m_externalSecretRotationMetadataHasBeenSet =
true;
198 m_externalSecretRotationMetadata = std::forward<ExternalSecretRotationMetadataT>(value);
200 template <
typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
205 template <
typename ExternalSecretRotationMetadataT = ExternalSecretRotationMetadataItem>
207 m_externalSecretRotationMetadataHasBeenSet =
true;
208 m_externalSecretRotationMetadata.emplace_back(std::forward<ExternalSecretRotationMetadataT>(value));
221 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
223 m_externalSecretRotationRoleArnHasBeenSet =
true;
224 m_externalSecretRotationRoleArn = std::forward<ExternalSecretRotationRoleArnT>(value);
226 template <
typename ExternalSecretRotationRoleArnT = Aws::String>
240 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
242 m_lastRotatedDateHasBeenSet =
true;
243 m_lastRotatedDate = std::forward<LastRotatedDateT>(value);
245 template <
typename LastRotatedDateT = Aws::Utils::DateTime>
257 template <
typename LastChangedDateT = Aws::Utils::DateTime>
259 m_lastChangedDateHasBeenSet =
true;
260 m_lastChangedDate = std::forward<LastChangedDateT>(value);
262 template <
typename LastChangedDateT = Aws::Utils::DateTime>
275 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
277 m_lastAccessedDateHasBeenSet =
true;
278 m_lastAccessedDate = std::forward<LastAccessedDateT>(value);
280 template <
typename LastAccessedDateT = Aws::Utils::DateTime>
298 template <
typename DeletedDateT = Aws::Utils::DateTime>
300 m_deletedDateHasBeenSet =
true;
301 m_deletedDate = std::forward<DeletedDateT>(value);
303 template <
typename DeletedDateT = Aws::Utils::DateTime>
322 template <
typename NextRotationDateT = Aws::Utils::DateTime>
324 m_nextRotationDateHasBeenSet =
true;
325 m_nextRotationDate = std::forward<NextRotationDateT>(value);
327 template <
typename NextRotationDateT = Aws::Utils::DateTime>
340 template <
typename TagsT = Aws::Vector<Tag>>
342 m_tagsHasBeenSet =
true;
343 m_tags = std::forward<TagsT>(value);
345 template <
typename TagsT = Aws::Vector<Tag>>
347 SetTags(std::forward<TagsT>(value));
350 template <
typename TagsT = Tag>
352 m_tagsHasBeenSet =
true;
353 m_tags.emplace_back(std::forward<TagsT>(value));
378 template <
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
380 m_versionIdsToStagesHasBeenSet =
true;
381 m_versionIdsToStages = std::forward<VersionIdsToStagesT>(value);
383 template <
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
388 template <
typename VersionIdsToStagesKeyT = Aws::String,
typename VersionIdsToStagesValueT = Aws::Vector<Aws::String>>
390 m_versionIdsToStagesHasBeenSet =
true;
391 m_versionIdsToStages.emplace(std::forward<VersionIdsToStagesKeyT>(key), std::forward<VersionIdsToStagesValueT>(value));
403 template <
typename OwningServiceT = Aws::String>
405 m_owningServiceHasBeenSet =
true;
406 m_owningService = std::forward<OwningServiceT>(value);
408 template <
typename OwningServiceT = Aws::String>
420 template <
typename CreatedDateT = Aws::Utils::DateTime>
422 m_createdDateHasBeenSet =
true;
423 m_createdDate = std::forward<CreatedDateT>(value);
425 template <
typename CreatedDateT = Aws::Utils::DateTime>
438 template <
typename PrimaryRegionT = Aws::String>
440 m_primaryRegionHasBeenSet =
true;
441 m_primaryRegion = std::forward<PrimaryRegionT>(value);
443 template <
typename PrimaryRegionT = Aws::String>
459 template <
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
461 m_replicationStatusHasBeenSet =
true;
462 m_replicationStatus = std::forward<ReplicationStatusT>(value);
464 template <
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
469 template <
typename ReplicationStatusT = ReplicationStatusType>
471 m_replicationStatusHasBeenSet =
true;
472 m_replicationStatus.emplace_back(std::forward<ReplicationStatusT>(value));
480 template <
typename RequestIdT = Aws::String>
482 m_requestIdHasBeenSet =
true;
483 m_requestId = std::forward<RequestIdT>(value);
485 template <
typename RequestIdT = Aws::String>
504 bool m_rotationEnabled{
false};
508 RotationRulesType m_rotationRules;
538 bool m_aRNHasBeenSet =
false;
539 bool m_nameHasBeenSet =
false;
540 bool m_typeHasBeenSet =
false;
541 bool m_descriptionHasBeenSet =
false;
542 bool m_kmsKeyIdHasBeenSet =
false;
543 bool m_rotationEnabledHasBeenSet =
false;
544 bool m_rotationLambdaARNHasBeenSet =
false;
545 bool m_rotationRulesHasBeenSet =
false;
546 bool m_externalSecretRotationMetadataHasBeenSet =
false;
547 bool m_externalSecretRotationRoleArnHasBeenSet =
false;
548 bool m_lastRotatedDateHasBeenSet =
false;
549 bool m_lastChangedDateHasBeenSet =
false;
550 bool m_lastAccessedDateHasBeenSet =
false;
551 bool m_deletedDateHasBeenSet =
false;
552 bool m_nextRotationDateHasBeenSet =
false;
553 bool m_tagsHasBeenSet =
false;
554 bool m_versionIdsToStagesHasBeenSet =
false;
555 bool m_owningServiceHasBeenSet =
false;
556 bool m_createdDateHasBeenSet =
false;
557 bool m_primaryRegionHasBeenSet =
false;
558 bool m_replicationStatusHasBeenSet =
false;
559 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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