AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecretListEntry.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 <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecretsManager
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_SECRETSMANAGER_API SecretListEntry() = default;
44 AWS_SECRETSMANAGER_API SecretListEntry(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECRETSMANAGER_API SecretListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetARN() const { return m_aRN; }
54 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
55 template<typename ARNT = Aws::String>
56 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
57 template<typename ARNT = Aws::String>
58 SecretListEntry& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template<typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 SecretListEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 SecretListEntry& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
91 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
92 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
93 template<typename KmsKeyIdT = Aws::String>
94 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
95 template<typename KmsKeyIdT = Aws::String>
96 SecretListEntry& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
98
100
104 inline bool GetRotationEnabled() const { return m_rotationEnabled; }
105 inline bool RotationEnabledHasBeenSet() const { return m_rotationEnabledHasBeenSet; }
106 inline void SetRotationEnabled(bool value) { m_rotationEnabledHasBeenSet = true; m_rotationEnabled = value; }
107 inline SecretListEntry& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;}
109
111
118 inline const Aws::String& GetRotationLambdaARN() const { return m_rotationLambdaARN; }
119 inline bool RotationLambdaARNHasBeenSet() const { return m_rotationLambdaARNHasBeenSet; }
120 template<typename RotationLambdaARNT = Aws::String>
121 void SetRotationLambdaARN(RotationLambdaARNT&& value) { m_rotationLambdaARNHasBeenSet = true; m_rotationLambdaARN = std::forward<RotationLambdaARNT>(value); }
122 template<typename RotationLambdaARNT = Aws::String>
123 SecretListEntry& WithRotationLambdaARN(RotationLambdaARNT&& value) { SetRotationLambdaARN(std::forward<RotationLambdaARNT>(value)); return *this;}
125
127
130 inline const RotationRulesType& GetRotationRules() const { return m_rotationRules; }
131 inline bool RotationRulesHasBeenSet() const { return m_rotationRulesHasBeenSet; }
132 template<typename RotationRulesT = RotationRulesType>
133 void SetRotationRules(RotationRulesT&& value) { m_rotationRulesHasBeenSet = true; m_rotationRules = std::forward<RotationRulesT>(value); }
134 template<typename RotationRulesT = RotationRulesType>
135 SecretListEntry& WithRotationRules(RotationRulesT&& value) { SetRotationRules(std::forward<RotationRulesT>(value)); return *this;}
137
139
144 inline const Aws::Utils::DateTime& GetLastRotatedDate() const { return m_lastRotatedDate; }
145 inline bool LastRotatedDateHasBeenSet() const { return m_lastRotatedDateHasBeenSet; }
146 template<typename LastRotatedDateT = Aws::Utils::DateTime>
147 void SetLastRotatedDate(LastRotatedDateT&& value) { m_lastRotatedDateHasBeenSet = true; m_lastRotatedDate = std::forward<LastRotatedDateT>(value); }
148 template<typename LastRotatedDateT = Aws::Utils::DateTime>
149 SecretListEntry& WithLastRotatedDate(LastRotatedDateT&& value) { SetLastRotatedDate(std::forward<LastRotatedDateT>(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetLastChangedDate() const { return m_lastChangedDate; }
157 inline bool LastChangedDateHasBeenSet() const { return m_lastChangedDateHasBeenSet; }
158 template<typename LastChangedDateT = Aws::Utils::DateTime>
159 void SetLastChangedDate(LastChangedDateT&& value) { m_lastChangedDateHasBeenSet = true; m_lastChangedDate = std::forward<LastChangedDateT>(value); }
160 template<typename LastChangedDateT = Aws::Utils::DateTime>
161 SecretListEntry& WithLastChangedDate(LastChangedDateT&& value) { SetLastChangedDate(std::forward<LastChangedDateT>(value)); return *this;}
163
165
169 inline const Aws::Utils::DateTime& GetLastAccessedDate() const { return m_lastAccessedDate; }
170 inline bool LastAccessedDateHasBeenSet() const { return m_lastAccessedDateHasBeenSet; }
171 template<typename LastAccessedDateT = Aws::Utils::DateTime>
172 void SetLastAccessedDate(LastAccessedDateT&& value) { m_lastAccessedDateHasBeenSet = true; m_lastAccessedDate = std::forward<LastAccessedDateT>(value); }
173 template<typename LastAccessedDateT = Aws::Utils::DateTime>
174 SecretListEntry& WithLastAccessedDate(LastAccessedDateT&& value) { SetLastAccessedDate(std::forward<LastAccessedDateT>(value)); return *this;}
176
178
186 inline const Aws::Utils::DateTime& GetDeletedDate() const { return m_deletedDate; }
187 inline bool DeletedDateHasBeenSet() const { return m_deletedDateHasBeenSet; }
188 template<typename DeletedDateT = Aws::Utils::DateTime>
189 void SetDeletedDate(DeletedDateT&& value) { m_deletedDateHasBeenSet = true; m_deletedDate = std::forward<DeletedDateT>(value); }
190 template<typename DeletedDateT = Aws::Utils::DateTime>
191 SecretListEntry& WithDeletedDate(DeletedDateT&& value) { SetDeletedDate(std::forward<DeletedDateT>(value)); return *this;}
193
195
200 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
201 inline bool NextRotationDateHasBeenSet() const { return m_nextRotationDateHasBeenSet; }
202 template<typename NextRotationDateT = Aws::Utils::DateTime>
203 void SetNextRotationDate(NextRotationDateT&& value) { m_nextRotationDateHasBeenSet = true; m_nextRotationDate = std::forward<NextRotationDateT>(value); }
204 template<typename NextRotationDateT = Aws::Utils::DateTime>
205 SecretListEntry& WithNextRotationDate(NextRotationDateT&& value) { SetNextRotationDate(std::forward<NextRotationDateT>(value)); return *this;}
207
209
217 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template<typename TagsT = Aws::Vector<Tag>>
220 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
221 template<typename TagsT = Aws::Vector<Tag>>
222 SecretListEntry& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
223 template<typename TagsT = Tag>
224 SecretListEntry& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
226
228
236 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSecretVersionsToStages() const { return m_secretVersionsToStages; }
237 inline bool SecretVersionsToStagesHasBeenSet() const { return m_secretVersionsToStagesHasBeenSet; }
238 template<typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
239 void SetSecretVersionsToStages(SecretVersionsToStagesT&& value) { m_secretVersionsToStagesHasBeenSet = true; m_secretVersionsToStages = std::forward<SecretVersionsToStagesT>(value); }
240 template<typename SecretVersionsToStagesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
241 SecretListEntry& WithSecretVersionsToStages(SecretVersionsToStagesT&& value) { SetSecretVersionsToStages(std::forward<SecretVersionsToStagesT>(value)); return *this;}
242 template<typename SecretVersionsToStagesKeyT = Aws::String, typename SecretVersionsToStagesValueT = Aws::Vector<Aws::String>>
243 SecretListEntry& AddSecretVersionsToStages(SecretVersionsToStagesKeyT&& key, SecretVersionsToStagesValueT&& value) {
244 m_secretVersionsToStagesHasBeenSet = true; m_secretVersionsToStages.emplace(std::forward<SecretVersionsToStagesKeyT>(key), std::forward<SecretVersionsToStagesValueT>(value)); return *this;
245 }
247
249
252 inline const Aws::String& GetOwningService() const { return m_owningService; }
253 inline bool OwningServiceHasBeenSet() const { return m_owningServiceHasBeenSet; }
254 template<typename OwningServiceT = Aws::String>
255 void SetOwningService(OwningServiceT&& value) { m_owningServiceHasBeenSet = true; m_owningService = std::forward<OwningServiceT>(value); }
256 template<typename OwningServiceT = Aws::String>
257 SecretListEntry& WithOwningService(OwningServiceT&& value) { SetOwningService(std::forward<OwningServiceT>(value)); return *this;}
259
261
264 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
265 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
266 template<typename CreatedDateT = Aws::Utils::DateTime>
267 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
268 template<typename CreatedDateT = Aws::Utils::DateTime>
269 SecretListEntry& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
271
273
276 inline const Aws::String& GetPrimaryRegion() const { return m_primaryRegion; }
277 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
278 template<typename PrimaryRegionT = Aws::String>
279 void SetPrimaryRegion(PrimaryRegionT&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::forward<PrimaryRegionT>(value); }
280 template<typename PrimaryRegionT = Aws::String>
281 SecretListEntry& WithPrimaryRegion(PrimaryRegionT&& value) { SetPrimaryRegion(std::forward<PrimaryRegionT>(value)); return *this;}
283 private:
284
285 Aws::String m_aRN;
286 bool m_aRNHasBeenSet = false;
287
288 Aws::String m_name;
289 bool m_nameHasBeenSet = false;
290
291 Aws::String m_description;
292 bool m_descriptionHasBeenSet = false;
293
294 Aws::String m_kmsKeyId;
295 bool m_kmsKeyIdHasBeenSet = false;
296
297 bool m_rotationEnabled{false};
298 bool m_rotationEnabledHasBeenSet = false;
299
300 Aws::String m_rotationLambdaARN;
301 bool m_rotationLambdaARNHasBeenSet = false;
302
303 RotationRulesType m_rotationRules;
304 bool m_rotationRulesHasBeenSet = false;
305
306 Aws::Utils::DateTime m_lastRotatedDate{};
307 bool m_lastRotatedDateHasBeenSet = false;
308
309 Aws::Utils::DateTime m_lastChangedDate{};
310 bool m_lastChangedDateHasBeenSet = false;
311
312 Aws::Utils::DateTime m_lastAccessedDate{};
313 bool m_lastAccessedDateHasBeenSet = false;
314
315 Aws::Utils::DateTime m_deletedDate{};
316 bool m_deletedDateHasBeenSet = false;
317
318 Aws::Utils::DateTime m_nextRotationDate{};
319 bool m_nextRotationDateHasBeenSet = false;
320
321 Aws::Vector<Tag> m_tags;
322 bool m_tagsHasBeenSet = false;
323
324 Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_secretVersionsToStages;
325 bool m_secretVersionsToStagesHasBeenSet = false;
326
327 Aws::String m_owningService;
328 bool m_owningServiceHasBeenSet = false;
329
330 Aws::Utils::DateTime m_createdDate{};
331 bool m_createdDateHasBeenSet = false;
332
333 Aws::String m_primaryRegion;
334 bool m_primaryRegionHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace SecretsManager
339} // namespace Aws
void SetRotationRules(RotationRulesT &&value)
void SetRotationEnabled(bool value)
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)
bool LastAccessedDateHasBeenSet() const
void SetRotationLambdaARN(RotationLambdaARNT &&value)
bool RotationLambdaARNHasBeenSet() const
const Aws::String & GetRotationLambdaARN() const
SecretListEntry & WithPrimaryRegion(PrimaryRegionT &&value)
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDeletedDate() const
void SetTags(TagsT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetOwningService() const
void SetLastAccessedDate(LastAccessedDateT &&value)
const Aws::Vector< Tag > & GetTags() const
SecretListEntry & WithRotationLambdaARN(RotationLambdaARNT &&value)
void SetDescription(DescriptionT &&value)
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)
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 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 PrimaryRegionHasBeenSet() const
SecretListEntry & WithDeletedDate(DeletedDateT &&value)
const Aws::String & GetARN() const
bool KmsKeyIdHasBeenSet() const
SecretListEntry & WithLastAccessedDate(LastAccessedDateT &&value)
void SetOwningService(OwningServiceT &&value)
SecretListEntry & AddTags(TagsT &&value)
void SetPrimaryRegion(PrimaryRegionT &&value)
void SetNextRotationDate(NextRotationDateT &&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