AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecretVersionsListEntry.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecretsManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECRETSMANAGER_API SecretVersionsListEntry() = default;
38 AWS_SECRETSMANAGER_API SecretVersionsListEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetVersionId() const { return m_versionId; }
48 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
49 template<typename VersionIdT = Aws::String>
50 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
51 template<typename VersionIdT = Aws::String>
52 SecretVersionsListEntry& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetVersionStages() const { return m_versionStages; }
61 inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
62 template<typename VersionStagesT = Aws::Vector<Aws::String>>
63 void SetVersionStages(VersionStagesT&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::forward<VersionStagesT>(value); }
64 template<typename VersionStagesT = Aws::Vector<Aws::String>>
65 SecretVersionsListEntry& WithVersionStages(VersionStagesT&& value) { SetVersionStages(std::forward<VersionStagesT>(value)); return *this;}
66 template<typename VersionStagesT = Aws::String>
67 SecretVersionsListEntry& AddVersionStages(VersionStagesT&& value) { m_versionStagesHasBeenSet = true; m_versionStages.emplace_back(std::forward<VersionStagesT>(value)); return *this; }
69
71
75 inline const Aws::Utils::DateTime& GetLastAccessedDate() const { return m_lastAccessedDate; }
76 inline bool LastAccessedDateHasBeenSet() const { return m_lastAccessedDateHasBeenSet; }
77 template<typename LastAccessedDateT = Aws::Utils::DateTime>
78 void SetLastAccessedDate(LastAccessedDateT&& value) { m_lastAccessedDateHasBeenSet = true; m_lastAccessedDate = std::forward<LastAccessedDateT>(value); }
79 template<typename LastAccessedDateT = Aws::Utils::DateTime>
80 SecretVersionsListEntry& WithLastAccessedDate(LastAccessedDateT&& value) { SetLastAccessedDate(std::forward<LastAccessedDateT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
88 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
89 template<typename CreatedDateT = Aws::Utils::DateTime>
90 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
91 template<typename CreatedDateT = Aws::Utils::DateTime>
92 SecretVersionsListEntry& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
94
96
99 inline const Aws::Vector<Aws::String>& GetKmsKeyIds() const { return m_kmsKeyIds; }
100 inline bool KmsKeyIdsHasBeenSet() const { return m_kmsKeyIdsHasBeenSet; }
101 template<typename KmsKeyIdsT = Aws::Vector<Aws::String>>
102 void SetKmsKeyIds(KmsKeyIdsT&& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds = std::forward<KmsKeyIdsT>(value); }
103 template<typename KmsKeyIdsT = Aws::Vector<Aws::String>>
104 SecretVersionsListEntry& WithKmsKeyIds(KmsKeyIdsT&& value) { SetKmsKeyIds(std::forward<KmsKeyIdsT>(value)); return *this;}
105 template<typename KmsKeyIdsT = Aws::String>
106 SecretVersionsListEntry& AddKmsKeyIds(KmsKeyIdsT&& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds.emplace_back(std::forward<KmsKeyIdsT>(value)); return *this; }
108 private:
109
110 Aws::String m_versionId;
111 bool m_versionIdHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_versionStages;
114 bool m_versionStagesHasBeenSet = false;
115
116 Aws::Utils::DateTime m_lastAccessedDate{};
117 bool m_lastAccessedDateHasBeenSet = false;
118
119 Aws::Utils::DateTime m_createdDate{};
120 bool m_createdDateHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_kmsKeyIds;
123 bool m_kmsKeyIdsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SecretsManager
128} // namespace Aws
const Aws::Vector< Aws::String > & GetVersionStages() const
bool VersionStagesHasBeenSet() const
SecretVersionsListEntry & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
void SetVersionId(VersionIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
AWS_SECRETSMANAGER_API SecretVersionsListEntry()=default
SecretVersionsListEntry & WithVersionId(VersionIdT &&value)
bool KmsKeyIdsHasBeenSet() const
SecretVersionsListEntry & WithVersionStages(VersionStagesT &&value)
void SetVersionStages(VersionStagesT &&value)
const Aws::Vector< Aws::String > & GetKmsKeyIds() const
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedDate(CreatedDateT &&value)
bool CreatedDateHasBeenSet() const
SecretVersionsListEntry & WithLastAccessedDate(LastAccessedDateT &&value)
SecretVersionsListEntry & WithKmsKeyIds(KmsKeyIdsT &&value)
SecretVersionsListEntry & AddVersionStages(VersionStagesT &&value)
AWS_SECRETSMANAGER_API SecretVersionsListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VersionIdHasBeenSet() const
bool LastAccessedDateHasBeenSet() const
SecretVersionsListEntry & AddKmsKeyIds(KmsKeyIdsT &&value)
AWS_SECRETSMANAGER_API SecretVersionsListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetKmsKeyIds(KmsKeyIdsT &&value)
void SetLastAccessedDate(LastAccessedDateT &&value)
const Aws::String & GetVersionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue