7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/secretsmanager/model/RotationRulesType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/secretsmanager/model/Tag.h>
14#include <aws/secretsmanager/model/ReplicationStatusType.h>
19template<
typename RESULT_TYPE>
20class AmazonWebServiceResult;
29namespace SecretsManager
46 template<
typename ARNT = Aws::String>
47 void SetARN(ARNT&& value) { m_aRNHasBeenSet =
true; m_aRN = std::forward<ARNT>(value); }
48 template<
typename ARNT = Aws::String>
57 template<
typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
59 template<
typename NameT = Aws::String>
68 template<
typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
70 template<
typename DescriptionT = Aws::String>
82 template<
typename KmsKeyIdT = Aws::String>
83 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
84 template<
typename KmsKeyIdT = Aws::String>
96 inline void SetRotationEnabled(
bool value) { m_rotationEnabledHasBeenSet =
true; m_rotationEnabled = value; }
106 template<
typename RotationLambdaARNT = Aws::String>
107 void SetRotationLambdaARN(RotationLambdaARNT&& value) { m_rotationLambdaARNHasBeenSet =
true; m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value); }
108 template<
typename RotationLambdaARNT = Aws::String>
120 template<
typename RotationRulesT = RotationRulesType>
121 void SetRotationRules(RotationRulesT&& value) { m_rotationRulesHasBeenSet =
true; m_rotationRules = std::forward<RotationRulesT>(value); }
122 template<
typename RotationRulesT = RotationRulesType>
133 template<
typename LastRotatedDateT = Aws::Utils::DateTime>
134 void SetLastRotatedDate(LastRotatedDateT&& value) { m_lastRotatedDateHasBeenSet =
true; m_lastRotatedDate = std::forward<LastRotatedDateT>(value); }
135 template<
typename LastRotatedDateT = Aws::Utils::DateTime>
144 template<
typename LastChangedDateT = Aws::Utils::DateTime>
145 void SetLastChangedDate(LastChangedDateT&& value) { m_lastChangedDateHasBeenSet =
true; m_lastChangedDate = std::forward<LastChangedDateT>(value); }
146 template<
typename LastChangedDateT = Aws::Utils::DateTime>
156 template<
typename LastAccessedDateT = Aws::Utils::DateTime>
157 void SetLastAccessedDate(LastAccessedDateT&& value) { m_lastAccessedDateHasBeenSet =
true; m_lastAccessedDate = std::forward<LastAccessedDateT>(value); }
158 template<
typename LastAccessedDateT = Aws::Utils::DateTime>
173 template<
typename DeletedDateT = Aws::Utils::DateTime>
174 void SetDeletedDate(DeletedDateT&& value) { m_deletedDateHasBeenSet =
true; m_deletedDate = std::forward<DeletedDateT>(value); }
175 template<
typename DeletedDateT = Aws::Utils::DateTime>
191 template<
typename NextRotationDateT = Aws::Utils::DateTime>
192 void SetNextRotationDate(NextRotationDateT&& value) { m_nextRotationDateHasBeenSet =
true; m_nextRotationDate = std::forward<NextRotationDateT>(value); }
193 template<
typename NextRotationDateT = Aws::Utils::DateTime>
203 template<
typename TagsT = Aws::Vector<Tag>>
204 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
205 template<
typename TagsT = Aws::Vector<Tag>>
207 template<
typename TagsT = Tag>
231 template<
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
232 void SetVersionIdsToStages(VersionIdsToStagesT&& value) { m_versionIdsToStagesHasBeenSet =
true; m_versionIdsToStages = std::forward<VersionIdsToStagesT>(value); }
233 template<
typename VersionIdsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
235 template<
typename VersionIdsToStagesKeyT = Aws::String,
typename VersionIdsToStagesValueT = Aws::Vector<Aws::String>>
237 m_versionIdsToStagesHasBeenSet =
true; m_versionIdsToStages.emplace(std::forward<VersionIdsToStagesKeyT>(key), std::forward<VersionIdsToStagesValueT>(value));
return *
this;
248 template<
typename OwningServiceT = Aws::String>
249 void SetOwningService(OwningServiceT&& value) { m_owningServiceHasBeenSet =
true; m_owningService = std::forward<OwningServiceT>(value); }
250 template<
typename OwningServiceT = Aws::String>
259 template<
typename CreatedDateT = Aws::Utils::DateTime>
260 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet =
true; m_createdDate = std::forward<CreatedDateT>(value); }
261 template<
typename CreatedDateT = Aws::Utils::DateTime>
271 template<
typename PrimaryRegionT = Aws::String>
272 void SetPrimaryRegion(PrimaryRegionT&& value) { m_primaryRegionHasBeenSet =
true; m_primaryRegion = std::forward<PrimaryRegionT>(value); }
273 template<
typename PrimaryRegionT = Aws::String>
286 template<
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
287 void SetReplicationStatus(ReplicationStatusT&& value) { m_replicationStatusHasBeenSet =
true; m_replicationStatus = std::forward<ReplicationStatusT>(value); }
288 template<
typename ReplicationStatusT = Aws::Vector<ReplicationStatusType>>
290 template<
typename ReplicationStatusT = ReplicationStatusType>
297 template<
typename RequestIdT = Aws::String>
298 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
299 template<
typename RequestIdT = Aws::String>
305 bool m_aRNHasBeenSet =
false;
308 bool m_nameHasBeenSet =
false;
311 bool m_descriptionHasBeenSet =
false;
314 bool m_kmsKeyIdHasBeenSet =
false;
316 bool m_rotationEnabled{
false};
317 bool m_rotationEnabledHasBeenSet =
false;
320 bool m_rotationLambdaARNHasBeenSet =
false;
322 RotationRulesType m_rotationRules;
323 bool m_rotationRulesHasBeenSet =
false;
326 bool m_lastRotatedDateHasBeenSet =
false;
329 bool m_lastChangedDateHasBeenSet =
false;
332 bool m_lastAccessedDateHasBeenSet =
false;
335 bool m_deletedDateHasBeenSet =
false;
338 bool m_nextRotationDateHasBeenSet =
false;
341 bool m_tagsHasBeenSet =
false;
344 bool m_versionIdsToStagesHasBeenSet =
false;
347 bool m_owningServiceHasBeenSet =
false;
350 bool m_createdDateHasBeenSet =
false;
353 bool m_primaryRegionHasBeenSet =
false;
356 bool m_replicationStatusHasBeenSet =
false;
359 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
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 & 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 & WithOwningService(OwningServiceT &&value)
void SetNextRotationDate(NextRotationDateT &&value)
void SetRotationLambdaARN(RotationLambdaARNT &&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
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 RotationRulesType & GetRotationRules() const
const Aws::String & GetPrimaryRegion() const
void SetRotationEnabled(bool 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)
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