AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetARN() const{ return m_aRN; }
46 inline void SetARN(const Aws::String& value) { m_aRN = value; }
47 inline void SetARN(Aws::String&& value) { m_aRN = std::move(value); }
48 inline void SetARN(const char* value) { m_aRN.assign(value); }
49 inline DescribeSecretResult& WithARN(const Aws::String& value) { SetARN(value); return *this;}
50 inline DescribeSecretResult& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
51 inline DescribeSecretResult& WithARN(const char* value) { SetARN(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline void SetName(const Aws::String& value) { m_name = value; }
60 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
61 inline void SetName(const char* value) { m_name.assign(value); }
62 inline DescribeSecretResult& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline DescribeSecretResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline DescribeSecretResult& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline void SetDescription(const Aws::String& value) { m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_description.assign(value); }
75 inline DescribeSecretResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline DescribeSecretResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline DescribeSecretResult& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
87 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
88 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
89 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
90 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
91 inline DescribeSecretResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
92 inline DescribeSecretResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
93 inline DescribeSecretResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
95
97
103 inline bool GetRotationEnabled() const{ return m_rotationEnabled; }
104 inline void SetRotationEnabled(bool value) { m_rotationEnabled = value; }
105 inline DescribeSecretResult& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;}
107
109
113 inline const Aws::String& GetRotationLambdaARN() const{ return m_rotationLambdaARN; }
114 inline void SetRotationLambdaARN(const Aws::String& value) { m_rotationLambdaARN = value; }
115 inline void SetRotationLambdaARN(Aws::String&& value) { m_rotationLambdaARN = std::move(value); }
116 inline void SetRotationLambdaARN(const char* value) { m_rotationLambdaARN.assign(value); }
117 inline DescribeSecretResult& WithRotationLambdaARN(const Aws::String& value) { SetRotationLambdaARN(value); return *this;}
118 inline DescribeSecretResult& WithRotationLambdaARN(Aws::String&& value) { SetRotationLambdaARN(std::move(value)); return *this;}
119 inline DescribeSecretResult& WithRotationLambdaARN(const char* value) { SetRotationLambdaARN(value); return *this;}
121
123
129 inline const RotationRulesType& GetRotationRules() const{ return m_rotationRules; }
130 inline void SetRotationRules(const RotationRulesType& value) { m_rotationRules = value; }
131 inline void SetRotationRules(RotationRulesType&& value) { m_rotationRules = std::move(value); }
132 inline DescribeSecretResult& WithRotationRules(const RotationRulesType& value) { SetRotationRules(value); return *this;}
133 inline DescribeSecretResult& WithRotationRules(RotationRulesType&& value) { SetRotationRules(std::move(value)); return *this;}
135
137
142 inline const Aws::Utils::DateTime& GetLastRotatedDate() const{ return m_lastRotatedDate; }
143 inline void SetLastRotatedDate(const Aws::Utils::DateTime& value) { m_lastRotatedDate = value; }
144 inline void SetLastRotatedDate(Aws::Utils::DateTime&& value) { m_lastRotatedDate = std::move(value); }
146 inline DescribeSecretResult& WithLastRotatedDate(Aws::Utils::DateTime&& value) { SetLastRotatedDate(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetLastChangedDate() const{ return m_lastChangedDate; }
154 inline void SetLastChangedDate(const Aws::Utils::DateTime& value) { m_lastChangedDate = value; }
155 inline void SetLastChangedDate(Aws::Utils::DateTime&& value) { m_lastChangedDate = std::move(value); }
157 inline DescribeSecretResult& WithLastChangedDate(Aws::Utils::DateTime&& value) { SetLastChangedDate(std::move(value)); return *this;}
159
161
165 inline const Aws::Utils::DateTime& GetLastAccessedDate() const{ return m_lastAccessedDate; }
166 inline void SetLastAccessedDate(const Aws::Utils::DateTime& value) { m_lastAccessedDate = value; }
167 inline void SetLastAccessedDate(Aws::Utils::DateTime&& value) { m_lastAccessedDate = std::move(value); }
169 inline DescribeSecretResult& WithLastAccessedDate(Aws::Utils::DateTime&& value) { SetLastAccessedDate(std::move(value)); return *this;}
171
173
182 inline const Aws::Utils::DateTime& GetDeletedDate() const{ return m_deletedDate; }
183 inline void SetDeletedDate(const Aws::Utils::DateTime& value) { m_deletedDate = value; }
184 inline void SetDeletedDate(Aws::Utils::DateTime&& value) { m_deletedDate = std::move(value); }
185 inline DescribeSecretResult& WithDeletedDate(const Aws::Utils::DateTime& value) { SetDeletedDate(value); return *this;}
186 inline DescribeSecretResult& WithDeletedDate(Aws::Utils::DateTime&& value) { SetDeletedDate(std::move(value)); return *this;}
188
190
200 inline const Aws::Utils::DateTime& GetNextRotationDate() const{ return m_nextRotationDate; }
201 inline void SetNextRotationDate(const Aws::Utils::DateTime& value) { m_nextRotationDate = value; }
202 inline void SetNextRotationDate(Aws::Utils::DateTime&& value) { m_nextRotationDate = std::move(value); }
204 inline DescribeSecretResult& WithNextRotationDate(Aws::Utils::DateTime&& value) { SetNextRotationDate(std::move(value)); return *this;}
206
208
212 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
213 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
214 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
215 inline DescribeSecretResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
216 inline DescribeSecretResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
217 inline DescribeSecretResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
218 inline DescribeSecretResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
220
222
240 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetVersionIdsToStages() const{ return m_versionIdsToStages; }
241 inline void SetVersionIdsToStages(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_versionIdsToStages = value; }
242 inline void SetVersionIdsToStages(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_versionIdsToStages = std::move(value); }
245 inline DescribeSecretResult& AddVersionIdsToStages(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_versionIdsToStages.emplace(key, value); return *this; }
246 inline DescribeSecretResult& AddVersionIdsToStages(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_versionIdsToStages.emplace(std::move(key), value); return *this; }
247 inline DescribeSecretResult& AddVersionIdsToStages(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_versionIdsToStages.emplace(key, std::move(value)); return *this; }
248 inline DescribeSecretResult& AddVersionIdsToStages(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_versionIdsToStages.emplace(std::move(key), std::move(value)); return *this; }
249 inline DescribeSecretResult& AddVersionIdsToStages(const char* key, Aws::Vector<Aws::String>&& value) { m_versionIdsToStages.emplace(key, std::move(value)); return *this; }
250 inline DescribeSecretResult& AddVersionIdsToStages(const char* key, const Aws::Vector<Aws::String>& value) { m_versionIdsToStages.emplace(key, value); return *this; }
252
254
259 inline const Aws::String& GetOwningService() const{ return m_owningService; }
260 inline void SetOwningService(const Aws::String& value) { m_owningService = value; }
261 inline void SetOwningService(Aws::String&& value) { m_owningService = std::move(value); }
262 inline void SetOwningService(const char* value) { m_owningService.assign(value); }
263 inline DescribeSecretResult& WithOwningService(const Aws::String& value) { SetOwningService(value); return *this;}
264 inline DescribeSecretResult& WithOwningService(Aws::String&& value) { SetOwningService(std::move(value)); return *this;}
265 inline DescribeSecretResult& WithOwningService(const char* value) { SetOwningService(value); return *this;}
267
269
272 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
273 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
274 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
275 inline DescribeSecretResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
276 inline DescribeSecretResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
278
280
284 inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; }
285 inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegion = value; }
286 inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegion = std::move(value); }
287 inline void SetPrimaryRegion(const char* value) { m_primaryRegion.assign(value); }
288 inline DescribeSecretResult& WithPrimaryRegion(const Aws::String& value) { SetPrimaryRegion(value); return *this;}
289 inline DescribeSecretResult& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;}
290 inline DescribeSecretResult& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;}
292
294
301 inline const Aws::Vector<ReplicationStatusType>& GetReplicationStatus() const{ return m_replicationStatus; }
302 inline void SetReplicationStatus(const Aws::Vector<ReplicationStatusType>& value) { m_replicationStatus = value; }
303 inline void SetReplicationStatus(Aws::Vector<ReplicationStatusType>&& value) { m_replicationStatus = std::move(value); }
306 inline DescribeSecretResult& AddReplicationStatus(const ReplicationStatusType& value) { m_replicationStatus.push_back(value); return *this; }
307 inline DescribeSecretResult& AddReplicationStatus(ReplicationStatusType&& value) { m_replicationStatus.push_back(std::move(value)); return *this; }
309
311
312 inline const Aws::String& GetRequestId() const{ return m_requestId; }
313 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
314 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
315 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
316 inline DescribeSecretResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
317 inline DescribeSecretResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
318 inline DescribeSecretResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
320 private:
321
322 Aws::String m_aRN;
323
324 Aws::String m_name;
325
326 Aws::String m_description;
327
328 Aws::String m_kmsKeyId;
329
330 bool m_rotationEnabled;
331
332 Aws::String m_rotationLambdaARN;
333
334 RotationRulesType m_rotationRules;
335
336 Aws::Utils::DateTime m_lastRotatedDate;
337
338 Aws::Utils::DateTime m_lastChangedDate;
339
340 Aws::Utils::DateTime m_lastAccessedDate;
341
342 Aws::Utils::DateTime m_deletedDate;
343
344 Aws::Utils::DateTime m_nextRotationDate;
345
346 Aws::Vector<Tag> m_tags;
347
349
350 Aws::String m_owningService;
351
352 Aws::Utils::DateTime m_createdDate;
353
354 Aws::String m_primaryRegion;
355
356 Aws::Vector<ReplicationStatusType> m_replicationStatus;
357
358 Aws::String m_requestId;
359 };
360
361} // namespace Model
362} // namespace SecretsManager
363} // namespace Aws
DescribeSecretResult & WithLastRotatedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithPrimaryRegion(const char *value)
const Aws::Utils::DateTime & GetNextRotationDate() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetVersionIdsToStages() const
DescribeSecretResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Vector< Tag > &value)
DescribeSecretResult & WithNextRotationDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithKmsKeyId(Aws::String &&value)
DescribeSecretResult & WithVersionIdsToStages(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::Vector< ReplicationStatusType > & GetReplicationStatus() const
DescribeSecretResult & WithCreatedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithOwningService(const char *value)
DescribeSecretResult & WithRotationEnabled(bool value)
void SetVersionIdsToStages(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
DescribeSecretResult & WithRotationLambdaARN(const char *value)
DescribeSecretResult & WithKmsKeyId(const char *value)
DescribeSecretResult & WithPrimaryRegion(const Aws::String &value)
AWS_SECRETSMANAGER_API DescribeSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSecretResult & WithRequestId(const char *value)
DescribeSecretResult & AddVersionIdsToStages(const Aws::String &key, Aws::Vector< Aws::String > &&value)
DescribeSecretResult & WithRotationLambdaARN(const Aws::String &value)
DescribeSecretResult & WithName(Aws::String &&value)
DescribeSecretResult & WithOwningService(const Aws::String &value)
DescribeSecretResult & WithVersionIdsToStages(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
DescribeSecretResult & WithDescription(const char *value)
void SetDeletedDate(Aws::Utils::DateTime &&value)
void SetLastChangedDate(const Aws::Utils::DateTime &value)
void SetRotationRules(const RotationRulesType &value)
void SetNextRotationDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithLastChangedDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & WithDeletedDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & WithName(const Aws::String &value)
void SetLastRotatedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithRotationLambdaARN(Aws::String &&value)
DescribeSecretResult & WithLastAccessedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithARN(const char *value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & AddVersionIdsToStages(const char *key, Aws::Vector< Aws::String > &&value)
DescribeSecretResult & WithDescription(const Aws::String &value)
DescribeSecretResult & AddTags(const Tag &value)
void SetLastAccessedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithDescription(Aws::String &&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
DescribeSecretResult & AddReplicationStatus(const ReplicationStatusType &value)
DescribeSecretResult & AddVersionIdsToStages(const char *key, const Aws::Vector< Aws::String > &value)
DescribeSecretResult & WithOwningService(Aws::String &&value)
void SetNextRotationDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & WithKmsKeyId(const Aws::String &value)
DescribeSecretResult & WithRotationRules(RotationRulesType &&value)
DescribeSecretResult & AddVersionIdsToStages(Aws::String &&key, const Aws::Vector< Aws::String > &value)
DescribeSecretResult & WithReplicationStatus(Aws::Vector< ReplicationStatusType > &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & WithLastChangedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithNextRotationDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastRotatedDate() const
void SetReplicationStatus(Aws::Vector< ReplicationStatusType > &&value)
DescribeSecretResult & WithPrimaryRegion(Aws::String &&value)
DescribeSecretResult & WithDeletedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithARN(const Aws::String &value)
DescribeSecretResult & WithLastAccessedDate(Aws::Utils::DateTime &&value)
void SetDeletedDate(const Aws::Utils::DateTime &value)
DescribeSecretResult & WithTags(const Aws::Vector< Tag > &value)
void SetVersionIdsToStages(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetReplicationStatus(const Aws::Vector< ReplicationStatusType > &value)
void SetLastAccessedDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & AddVersionIdsToStages(const Aws::String &key, const Aws::Vector< Aws::String > &value)
DescribeSecretResult & WithRequestId(const Aws::String &value)
DescribeSecretResult & WithARN(Aws::String &&value)
DescribeSecretResult & WithLastRotatedDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
const Aws::Utils::DateTime & GetLastChangedDate() const
void SetLastRotatedDate(Aws::Utils::DateTime &&value)
DescribeSecretResult & WithRotationRules(const RotationRulesType &value)
DescribeSecretResult & WithReplicationStatus(const Aws::Vector< ReplicationStatusType > &value)
DescribeSecretResult & WithRequestId(Aws::String &&value)
DescribeSecretResult & AddVersionIdsToStages(Aws::String &&key, Aws::Vector< Aws::String > &&value)
DescribeSecretResult & WithName(const char *value)
DescribeSecretResult & AddReplicationStatus(ReplicationStatusType &&value)
DescribeSecretResult & WithTags(Aws::Vector< Tag > &&value)
void SetLastChangedDate(Aws::Utils::DateTime &&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