AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeSecretResult.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SecretsManager
30{
31namespace Model
32{
34 {
35 public:
36 AWS_SECRETSMANAGER_API DescribeSecretResult() = default;
39
40
42
45 inline const Aws::String& GetARN() const { return m_aRN; }
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>
49 DescribeSecretResult& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
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>
60 DescribeSecretResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
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>
71 DescribeSecretResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
81 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
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>
85 DescribeSecretResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
87
89
95 inline bool GetRotationEnabled() const { return m_rotationEnabled; }
96 inline void SetRotationEnabled(bool value) { m_rotationEnabledHasBeenSet = true; m_rotationEnabled = value; }
97 inline DescribeSecretResult& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;}
99
101
105 inline const Aws::String& GetRotationLambdaARN() const { return m_rotationLambdaARN; }
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>
109 DescribeSecretResult& WithRotationLambdaARN(RotationLambdaARNT&& value) { SetRotationLambdaARN(std::forward<RotationLambdaARNT>(value)); return *this;}
111
113
119 inline const RotationRulesType& GetRotationRules() const { return m_rotationRules; }
120 template<typename RotationRulesT = RotationRulesType>
121 void SetRotationRules(RotationRulesT&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::forward<RotationRulesT>(value); }
122 template<typename RotationRulesT = RotationRulesType>
123 DescribeSecretResult& WithRotationRules(RotationRulesT&& value) { SetRotationRules(std::forward<RotationRulesT>(value)); return *this;}
125
127
132 inline const Aws::Utils::DateTime& GetLastRotatedDate() const { return m_lastRotatedDate; }
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>
136 DescribeSecretResult& WithLastRotatedDate(LastRotatedDateT&& value) { SetLastRotatedDate(std::forward<LastRotatedDateT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetLastChangedDate() const { return m_lastChangedDate; }
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>
147 DescribeSecretResult& WithLastChangedDate(LastChangedDateT&& value) { SetLastChangedDate(std::forward<LastChangedDateT>(value)); return *this;}
149
151
155 inline const Aws::Utils::DateTime& GetLastAccessedDate() const { return m_lastAccessedDate; }
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>
159 DescribeSecretResult& WithLastAccessedDate(LastAccessedDateT&& value) { SetLastAccessedDate(std::forward<LastAccessedDateT>(value)); return *this;}
161
163
172 inline const Aws::Utils::DateTime& GetDeletedDate() const { return m_deletedDate; }
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>
176 DescribeSecretResult& WithDeletedDate(DeletedDateT&& value) { SetDeletedDate(std::forward<DeletedDateT>(value)); return *this;}
178
180
190 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
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>
194 DescribeSecretResult& WithNextRotationDate(NextRotationDateT&& value) { SetNextRotationDate(std::forward<NextRotationDateT>(value)); return *this;}
196
198
202 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
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>>
206 DescribeSecretResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
207 template<typename TagsT = Tag>
208 DescribeSecretResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
210
212
230 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetVersionIdsToStages() const { return m_versionIdsToStages; }
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>>>
234 DescribeSecretResult& WithVersionIdsToStages(VersionIdsToStagesT&& value) { SetVersionIdsToStages(std::forward<VersionIdsToStagesT>(value)); return *this;}
235 template<typename VersionIdsToStagesKeyT = Aws::String, typename VersionIdsToStagesValueT = Aws::Vector<Aws::String>>
236 DescribeSecretResult& AddVersionIdsToStages(VersionIdsToStagesKeyT&& key, VersionIdsToStagesValueT&& value) {
237 m_versionIdsToStagesHasBeenSet = true; m_versionIdsToStages.emplace(std::forward<VersionIdsToStagesKeyT>(key), std::forward<VersionIdsToStagesValueT>(value)); return *this;
238 }
240
242
247 inline const Aws::String& GetOwningService() const { return m_owningService; }
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>
251 DescribeSecretResult& WithOwningService(OwningServiceT&& value) { SetOwningService(std::forward<OwningServiceT>(value)); return *this;}
253
255
258 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
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>
262 DescribeSecretResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
264
266
270 inline const Aws::String& GetPrimaryRegion() const { return m_primaryRegion; }
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>
274 DescribeSecretResult& WithPrimaryRegion(PrimaryRegionT&& value) { SetPrimaryRegion(std::forward<PrimaryRegionT>(value)); return *this;}
276
278
285 inline const Aws::Vector<ReplicationStatusType>& GetReplicationStatus() const { return m_replicationStatus; }
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>>
289 DescribeSecretResult& WithReplicationStatus(ReplicationStatusT&& value) { SetReplicationStatus(std::forward<ReplicationStatusT>(value)); return *this;}
290 template<typename ReplicationStatusT = ReplicationStatusType>
291 DescribeSecretResult& AddReplicationStatus(ReplicationStatusT&& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus.emplace_back(std::forward<ReplicationStatusT>(value)); return *this; }
293
295
296 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
300 DescribeSecretResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
302 private:
303
304 Aws::String m_aRN;
305 bool m_aRNHasBeenSet = false;
306
307 Aws::String m_name;
308 bool m_nameHasBeenSet = false;
309
310 Aws::String m_description;
311 bool m_descriptionHasBeenSet = false;
312
313 Aws::String m_kmsKeyId;
314 bool m_kmsKeyIdHasBeenSet = false;
315
316 bool m_rotationEnabled{false};
317 bool m_rotationEnabledHasBeenSet = false;
318
319 Aws::String m_rotationLambdaARN;
320 bool m_rotationLambdaARNHasBeenSet = false;
321
322 RotationRulesType m_rotationRules;
323 bool m_rotationRulesHasBeenSet = false;
324
325 Aws::Utils::DateTime m_lastRotatedDate{};
326 bool m_lastRotatedDateHasBeenSet = false;
327
328 Aws::Utils::DateTime m_lastChangedDate{};
329 bool m_lastChangedDateHasBeenSet = false;
330
331 Aws::Utils::DateTime m_lastAccessedDate{};
332 bool m_lastAccessedDateHasBeenSet = false;
333
334 Aws::Utils::DateTime m_deletedDate{};
335 bool m_deletedDateHasBeenSet = false;
336
337 Aws::Utils::DateTime m_nextRotationDate{};
338 bool m_nextRotationDateHasBeenSet = false;
339
340 Aws::Vector<Tag> m_tags;
341 bool m_tagsHasBeenSet = false;
342
344 bool m_versionIdsToStagesHasBeenSet = false;
345
346 Aws::String m_owningService;
347 bool m_owningServiceHasBeenSet = false;
348
349 Aws::Utils::DateTime m_createdDate{};
350 bool m_createdDateHasBeenSet = false;
351
352 Aws::String m_primaryRegion;
353 bool m_primaryRegionHasBeenSet = false;
354
355 Aws::Vector<ReplicationStatusType> m_replicationStatus;
356 bool m_replicationStatusHasBeenSet = false;
357
358 Aws::String m_requestId;
359 bool m_requestIdHasBeenSet = false;
360 };
361
362} // namespace Model
363} // namespace SecretsManager
364} // namespace Aws
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::Vector< ReplicationStatusType > & GetReplicationStatus() const
DescribeSecretResult & WithRotationEnabled(bool value)
DescribeSecretResult & WithRotationLambdaARN(RotationLambdaARNT &&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 SetRotationLambdaARN(RotationLambdaARNT &&value)
DescribeSecretResult & WithPrimaryRegion(PrimaryRegionT &&value)
DescribeSecretResult & WithLastRotatedDate(LastRotatedDateT &&value)
AWS_SECRETSMANAGER_API DescribeSecretResult()=default
DescribeSecretResult & WithVersionIdsToStages(VersionIdsToStagesT &&value)
DescribeSecretResult & AddReplicationStatus(ReplicationStatusT &&value)
DescribeSecretResult & AddTags(TagsT &&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::Utils::DateTime & GetLastRotatedDate() const
void SetReplicationStatus(ReplicationStatusT &&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)
DescribeSecretResult & WithDeletedDate(DeletedDateT &&value)
DescribeSecretResult & WithReplicationStatus(ReplicationStatusT &&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