AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
SecretListEntry.h
1
6#pragma once
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/RotationRulesType.h>
14#include <aws/secretsmanager/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecretsManager {
26namespace Model {
27
38 public:
39 AWS_SECRETSMANAGER_API SecretListEntry() = default;
40 AWS_SECRETSMANAGER_API SecretListEntry(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECRETSMANAGER_API SecretListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetARN() const { return m_aRN; }
49 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
50 template <typename ARNT = Aws::String>
51 void SetARN(ARNT&& value) {
52 m_aRNHasBeenSet = true;
53 m_aRN = std::forward<ARNT>(value);
54 }
55 template <typename ARNT = Aws::String>
56 SecretListEntry& WithARN(ARNT&& value) {
57 SetARN(std::forward<ARNT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 SecretListEntry& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::String& GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 template <typename TypeT = Aws::String>
90 void SetType(TypeT&& value) {
91 m_typeHasBeenSet = true;
92 m_type = std::forward<TypeT>(value);
93 }
94 template <typename TypeT = Aws::String>
95 SecretListEntry& WithType(TypeT&& value) {
96 SetType(std::forward<TypeT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 SecretListEntry& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
126 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
127 template <typename KmsKeyIdT = Aws::String>
128 void SetKmsKeyId(KmsKeyIdT&& value) {
129 m_kmsKeyIdHasBeenSet = true;
130 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
131 }
132 template <typename KmsKeyIdT = Aws::String>
133 SecretListEntry& WithKmsKeyId(KmsKeyIdT&& value) {
134 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
135 return *this;
136 }
138
140
144 inline bool GetRotationEnabled() const { return m_rotationEnabled; }
145 inline bool RotationEnabledHasBeenSet() const { return m_rotationEnabledHasBeenSet; }
146 inline void SetRotationEnabled(bool value) {
147 m_rotationEnabledHasBeenSet = true;
148 m_rotationEnabled = value;
149 }
151 SetRotationEnabled(value);
152 return *this;
153 }
155
157
164 inline const Aws::String& GetRotationLambdaARN() const { return m_rotationLambdaARN; }
165 inline bool RotationLambdaARNHasBeenSet() const { return m_rotationLambdaARNHasBeenSet; }
166 template <typename RotationLambdaARNT = Aws::String>
167 void SetRotationLambdaARN(RotationLambdaARNT&& value) {
168 m_rotationLambdaARNHasBeenSet = true;
169 m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value);
170 }
171 template <typename RotationLambdaARNT = Aws::String>
172 SecretListEntry& WithRotationLambdaARN(RotationLambdaARNT&& value) {
173 SetRotationLambdaARN(std::forward<RotationLambdaARNT>(value));
174 return *this;
175 }
177
179
182 inline const RotationRulesType& GetRotationRules() const { return m_rotationRules; }
183 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
184 template <typename RotationRulesT = RotationRulesType>
185 void SetRotationRules(RotationRulesT&& value) {
186 m_rotationRulesHasBeenSet = true;
187 m_rotationRules = std::forward<RotationRulesT>(value);
188 }
189 template <typename RotationRulesT = RotationRulesType>
190 SecretListEntry& WithRotationRules(RotationRulesT&& value) {
191 SetRotationRules(std::forward<RotationRulesT>(value));
192 return *this;
193 }
195
197
205 return m_externalSecretRotationMetadata;
206 }
207 inline bool ExternalSecretRotationMetadataHasBeenSet() const { return m_externalSecretRotationMetadataHasBeenSet; }
208 template <typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
209 void SetExternalSecretRotationMetadata(ExternalSecretRotationMetadataT&& value) {
210 m_externalSecretRotationMetadataHasBeenSet = true;
211 m_externalSecretRotationMetadata = std::forward<ExternalSecretRotationMetadataT>(value);
212 }
213 template <typename ExternalSecretRotationMetadataT = Aws::Vector<ExternalSecretRotationMetadataItem>>
214 SecretListEntry& WithExternalSecretRotationMetadata(ExternalSecretRotationMetadataT&& value) {
215 SetExternalSecretRotationMetadata(std::forward<ExternalSecretRotationMetadataT>(value));
216 return *this;
217 }
218 template <typename ExternalSecretRotationMetadataT = ExternalSecretRotationMetadataItem>
219 SecretListEntry& AddExternalSecretRotationMetadata(ExternalSecretRotationMetadataT&& value) {
220 m_externalSecretRotationMetadataHasBeenSet = true;
221 m_externalSecretRotationMetadata.emplace_back(std::forward<ExternalSecretRotationMetadataT>(value));
222 return *this;
223 }
225
227
233 inline const Aws::String& GetExternalSecretRotationRoleArn() const { return m_externalSecretRotationRoleArn; }
234 inline bool ExternalSecretRotationRoleArnHasBeenSet() const { return m_externalSecretRotationRoleArnHasBeenSet; }
235 template <typename ExternalSecretRotationRoleArnT = Aws::String>
236 void SetExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT&& value) {
237 m_externalSecretRotationRoleArnHasBeenSet = true;
238 m_externalSecretRotationRoleArn = std::forward<ExternalSecretRotationRoleArnT>(value);
239 }
240 template <typename ExternalSecretRotationRoleArnT = Aws::String>
241 SecretListEntry& WithExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT&& value) {
242 SetExternalSecretRotationRoleArn(std::forward<ExternalSecretRotationRoleArnT>(value));
243 return *this;
244 }
246
248
253 inline const Aws::Utils::DateTime& GetLastRotatedDate() const { return m_lastRotatedDate; }
254 inline bool LastRotatedDateHasBeenSet() const { return m_lastRotatedDateHasBeenSet; }
255 template <typename LastRotatedDateT = Aws::Utils::DateTime>
256 void SetLastRotatedDate(LastRotatedDateT&& value) {
257 m_lastRotatedDateHasBeenSet = true;
258 m_lastRotatedDate = std::forward<LastRotatedDateT>(value);
259 }
260 template <typename LastRotatedDateT = Aws::Utils::DateTime>
261 SecretListEntry& WithLastRotatedDate(LastRotatedDateT&& value) {
262 SetLastRotatedDate(std::forward<LastRotatedDateT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Utils::DateTime& GetLastChangedDate() const { return m_lastChangedDate; }
272 inline bool LastChangedDateHasBeenSet() const { return m_lastChangedDateHasBeenSet; }
273 template <typename LastChangedDateT = Aws::Utils::DateTime>
274 void SetLastChangedDate(LastChangedDateT&& value) {
275 m_lastChangedDateHasBeenSet = true;
276 m_lastChangedDate = std::forward<LastChangedDateT>(value);
277 }
278 template <typename LastChangedDateT = Aws::Utils::DateTime>
279 SecretListEntry& WithLastChangedDate(LastChangedDateT&& value) {
280 SetLastChangedDate(std::forward<LastChangedDateT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::Utils::DateTime& GetLastAccessedDate() const { return m_lastAccessedDate; }
291 inline bool LastAccessedDateHasBeenSet() const { return m_lastAccessedDateHasBeenSet; }
292 template <typename LastAccessedDateT = Aws::Utils::DateTime>
293 void SetLastAccessedDate(LastAccessedDateT&& value) {
294 m_lastAccessedDateHasBeenSet = true;
295 m_lastAccessedDate = std::forward<LastAccessedDateT>(value);
296 }
297 template <typename LastAccessedDateT = Aws::Utils::DateTime>
298 SecretListEntry& WithLastAccessedDate(LastAccessedDateT&& value) {
299 SetLastAccessedDate(std::forward<LastAccessedDateT>(value));
300 return *this;
301 }
303
305
313 inline const Aws::Utils::DateTime& GetDeletedDate() const { return m_deletedDate; }
314 inline bool DeletedDateHasBeenSet() const { return m_deletedDateHasBeenSet; }
315 template <typename DeletedDateT = Aws::Utils::DateTime>
316 void SetDeletedDate(DeletedDateT&& value) {
317 m_deletedDateHasBeenSet = true;
318 m_deletedDate = std::forward<DeletedDateT>(value);
319 }
320 template <typename DeletedDateT = Aws::Utils::DateTime>
321 SecretListEntry& WithDeletedDate(DeletedDateT&& value) {
322 SetDeletedDate(std::forward<DeletedDateT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
334 inline bool NextRotationDateHasBeenSet() const { return m_nextRotationDateHasBeenSet; }
335 template <typename NextRotationDateT = Aws::Utils::DateTime>
336 void SetNextRotationDate(NextRotationDateT&& value) {
337 m_nextRotationDateHasBeenSet = true;
338 m_nextRotationDate = std::forward<NextRotationDateT>(value);
339 }
340 template <typename NextRotationDateT = Aws::Utils::DateTime>
341 SecretListEntry& WithNextRotationDate(NextRotationDateT&& value) {
342 SetNextRotationDate(std::forward<NextRotationDateT>(value));
343 return *this;
344 }
346
348
356 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
357 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
358 template <typename TagsT = Aws::Vector<Tag>>
359 void SetTags(TagsT&& value) {
360 m_tagsHasBeenSet = true;
361 m_tags = std::forward<TagsT>(value);
362 }
363 template <typename TagsT = Aws::Vector<Tag>>
364 SecretListEntry& WithTags(TagsT&& value) {
365 SetTags(std::forward<TagsT>(value));
366 return *this;
367 }
368 template <typename TagsT = Tag>
369 SecretListEntry& AddTags(TagsT&& value) {
370 m_tagsHasBeenSet = true;
371 m_tags.emplace_back(std::forward<TagsT>(value));
372 return *this;
373 }
375
377
385 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSecretVersionsToStages() const { return m_secretVersionsToStages; }
386 inline bool SecretVersionsToStagesHasBeenSet() const { return m_secretVersionsToStagesHasBeenSet; }
387 template <typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
388 void SetSecretVersionsToStages(SecretVersionsToStagesT&& value) {
389 m_secretVersionsToStagesHasBeenSet = true;
390 m_secretVersionsToStages = std::forward<SecretVersionsToStagesT>(value);
391 }
392 template <typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
393 SecretListEntry& WithSecretVersionsToStages(SecretVersionsToStagesT&& value) {
394 SetSecretVersionsToStages(std::forward<SecretVersionsToStagesT>(value));
395 return *this;
396 }
397 template <typename SecretVersionsToStagesKeyT = Aws::String, typename SecretVersionsToStagesValueT = Aws::Vector<Aws::String>>
398 SecretListEntry& AddSecretVersionsToStages(SecretVersionsToStagesKeyT&& key, SecretVersionsToStagesValueT&& value) {
399 m_secretVersionsToStagesHasBeenSet = true;
400 m_secretVersionsToStages.emplace(std::forward<SecretVersionsToStagesKeyT>(key), std::forward<SecretVersionsToStagesValueT>(value));
401 return *this;
402 }
404
406
409 inline const Aws::String& GetOwningService() const { return m_owningService; }
410 inline bool OwningServiceHasBeenSet() const { return m_owningServiceHasBeenSet; }
411 template <typename OwningServiceT = Aws::String>
412 void SetOwningService(OwningServiceT&& value) {
413 m_owningServiceHasBeenSet = true;
414 m_owningService = std::forward<OwningServiceT>(value);
415 }
416 template <typename OwningServiceT = Aws::String>
417 SecretListEntry& WithOwningService(OwningServiceT&& value) {
418 SetOwningService(std::forward<OwningServiceT>(value));
419 return *this;
420 }
422
424
427 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
428 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
429 template <typename CreatedDateT = Aws::Utils::DateTime>
430 void SetCreatedDate(CreatedDateT&& value) {
431 m_createdDateHasBeenSet = true;
432 m_createdDate = std::forward<CreatedDateT>(value);
433 }
434 template <typename CreatedDateT = Aws::Utils::DateTime>
435 SecretListEntry& WithCreatedDate(CreatedDateT&& value) {
436 SetCreatedDate(std::forward<CreatedDateT>(value));
437 return *this;
438 }
440
442
445 inline const Aws::String& GetPrimaryRegion() const { return m_primaryRegion; }
446 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
447 template <typename PrimaryRegionT = Aws::String>
448 void SetPrimaryRegion(PrimaryRegionT&& value) {
449 m_primaryRegionHasBeenSet = true;
450 m_primaryRegion = std::forward<PrimaryRegionT>(value);
451 }
452 template <typename PrimaryRegionT = Aws::String>
453 SecretListEntry& WithPrimaryRegion(PrimaryRegionT&& value) {
454 SetPrimaryRegion(std::forward<PrimaryRegionT>(value));
455 return *this;
456 }
458 private:
459 Aws::String m_aRN;
460
461 Aws::String m_name;
462
463 Aws::String m_type;
464
465 Aws::String m_description;
466
467 Aws::String m_kmsKeyId;
468
469 bool m_rotationEnabled{false};
470
471 Aws::String m_rotationLambdaARN;
472
473 RotationRulesType m_rotationRules;
474
475 Aws::Vector<ExternalSecretRotationMetadataItem> m_externalSecretRotationMetadata;
476
477 Aws::String m_externalSecretRotationRoleArn;
478
479 Aws::Utils::DateTime m_lastRotatedDate{};
480
481 Aws::Utils::DateTime m_lastChangedDate{};
482
483 Aws::Utils::DateTime m_lastAccessedDate{};
484
485 Aws::Utils::DateTime m_deletedDate{};
486
487 Aws::Utils::DateTime m_nextRotationDate{};
488
489 Aws::Vector<Tag> m_tags;
490
491 Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_secretVersionsToStages;
492
493 Aws::String m_owningService;
494
495 Aws::Utils::DateTime m_createdDate{};
496
497 Aws::String m_primaryRegion;
498 bool m_aRNHasBeenSet = false;
499 bool m_nameHasBeenSet = false;
500 bool m_typeHasBeenSet = false;
501 bool m_descriptionHasBeenSet = false;
502 bool m_kmsKeyIdHasBeenSet = false;
503 bool m_rotationEnabledHasBeenSet = false;
504 bool m_rotationLambdaARNHasBeenSet = false;
505 bool m_rotationRulesHasBeenSet = false;
506 bool m_externalSecretRotationMetadataHasBeenSet = false;
507 bool m_externalSecretRotationRoleArnHasBeenSet = false;
508 bool m_lastRotatedDateHasBeenSet = false;
509 bool m_lastChangedDateHasBeenSet = false;
510 bool m_lastAccessedDateHasBeenSet = false;
511 bool m_deletedDateHasBeenSet = false;
512 bool m_nextRotationDateHasBeenSet = false;
513 bool m_tagsHasBeenSet = false;
514 bool m_secretVersionsToStagesHasBeenSet = false;
515 bool m_owningServiceHasBeenSet = false;
516 bool m_createdDateHasBeenSet = false;
517 bool m_primaryRegionHasBeenSet = false;
518};
519
520} // namespace Model
521} // namespace SecretsManager
522} // namespace Aws
void SetRotationRules(RotationRulesT &&value)
void SetRotationEnabled(bool value)
bool TypeHasBeenSet() const
void SetDeletedDate(DeletedDateT &&value)
bool NextRotationDateHasBeenSet() const
SecretListEntry & WithOwningService(OwningServiceT &&value)
bool CreatedDateHasBeenSet() const
bool DeletedDateHasBeenSet() const
const Aws::String & GetName() const
SecretListEntry & WithARN(ARNT &&value)
bool RotationRulesHasBeenSet() const
const Aws::Utils::DateTime & GetLastRotatedDate() const
bool TagsHasBeenSet() const
const RotationRulesType & GetRotationRules() const
void SetSecretVersionsToStages(SecretVersionsToStagesT &&value)
SecretListEntry & WithExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
bool LastAccessedDateHasBeenSet() const
void SetRotationLambdaARN(RotationLambdaARNT &&value)
bool ExternalSecretRotationMetadataHasBeenSet() const
bool RotationLambdaARNHasBeenSet() const
const Aws::String & GetRotationLambdaARN() const
const Aws::String & GetExternalSecretRotationRoleArn() const
SecretListEntry & WithPrimaryRegion(PrimaryRegionT &&value)
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDeletedDate() const
SecretListEntry & WithType(TypeT &&value)
void SetTags(TagsT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetOwningService() const
void SetLastAccessedDate(LastAccessedDateT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetType(TypeT &&value)
void SetExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
SecretListEntry & WithRotationLambdaARN(RotationLambdaARNT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< ExternalSecretRotationMetadataItem > & GetExternalSecretRotationMetadata() const
bool DescriptionHasBeenSet() const
SecretListEntry & WithRotationRules(RotationRulesT &&value)
AWS_SECRETSMANAGER_API SecretListEntry(Aws::Utils::Json::JsonView jsonValue)
SecretListEntry & WithNextRotationDate(NextRotationDateT &&value)
SecretListEntry & WithDescription(DescriptionT &&value)
void SetARN(ARNT &&value)
SecretListEntry & WithLastChangedDate(LastChangedDateT &&value)
bool ARNHasBeenSet() const
bool NameHasBeenSet() const
bool GetRotationEnabled() const
AWS_SECRETSMANAGER_API SecretListEntry()=default
SecretListEntry & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastChangedDate() const
void SetLastChangedDate(LastChangedDateT &&value)
const Aws::Utils::DateTime & GetNextRotationDate() const
SecretListEntry & WithKmsKeyId(KmsKeyIdT &&value)
bool LastRotatedDateHasBeenSet() const
bool RotationEnabledHasBeenSet() const
SecretListEntry & WithRotationEnabled(bool value)
const Aws::String & GetType() const
SecretListEntry & WithLastRotatedDate(LastRotatedDateT &&value)
SecretListEntry & WithCreatedDate(CreatedDateT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSecretVersionsToStages() const
void SetCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
void SetExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
void SetLastRotatedDate(LastRotatedDateT &&value)
SecretListEntry & AddSecretVersionsToStages(SecretVersionsToStagesKeyT &&key, SecretVersionsToStagesValueT &&value)
bool OwningServiceHasBeenSet() const
const Aws::String & GetDescription() const
bool LastChangedDateHasBeenSet() const
void SetName(NameT &&value)
SecretListEntry & WithSecretVersionsToStages(SecretVersionsToStagesT &&value)
AWS_SECRETSMANAGER_API SecretListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKmsKeyId() const
SecretListEntry & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool ExternalSecretRotationRoleArnHasBeenSet() const
bool PrimaryRegionHasBeenSet() const
SecretListEntry & WithDeletedDate(DeletedDateT &&value)
const Aws::String & GetARN() const
bool KmsKeyIdHasBeenSet() const
SecretListEntry & AddExternalSecretRotationMetadata(ExternalSecretRotationMetadataT &&value)
SecretListEntry & WithLastAccessedDate(LastAccessedDateT &&value)
void SetOwningService(OwningServiceT &&value)
SecretListEntry & AddTags(TagsT &&value)
void SetPrimaryRegion(PrimaryRegionT &&value)
void SetNextRotationDate(NextRotationDateT &&value)
SecretListEntry & WithExternalSecretRotationRoleArn(ExternalSecretRotationRoleArnT &&value)
bool SecretVersionsToStagesHasBeenSet() const
const Aws::String & GetPrimaryRegion() const
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