AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
50 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
51 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
52 inline SecretVersionsListEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
53 inline SecretVersionsListEntry& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
54 inline SecretVersionsListEntry& WithVersionId(const char* value) { SetVersionId(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetVersionStages() const{ return m_versionStages; }
63 inline bool VersionStagesHasBeenSet() const { return m_versionStagesHasBeenSet; }
64 inline void SetVersionStages(const Aws::Vector<Aws::String>& value) { m_versionStagesHasBeenSet = true; m_versionStages = value; }
65 inline void SetVersionStages(Aws::Vector<Aws::String>&& value) { m_versionStagesHasBeenSet = true; m_versionStages = std::move(value); }
67 inline SecretVersionsListEntry& WithVersionStages(Aws::Vector<Aws::String>&& value) { SetVersionStages(std::move(value)); return *this;}
68 inline SecretVersionsListEntry& AddVersionStages(const Aws::String& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
69 inline SecretVersionsListEntry& AddVersionStages(Aws::String&& value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(std::move(value)); return *this; }
70 inline SecretVersionsListEntry& AddVersionStages(const char* value) { m_versionStagesHasBeenSet = true; m_versionStages.push_back(value); return *this; }
72
74
78 inline const Aws::Utils::DateTime& GetLastAccessedDate() const{ return m_lastAccessedDate; }
79 inline bool LastAccessedDateHasBeenSet() const { return m_lastAccessedDateHasBeenSet; }
80 inline void SetLastAccessedDate(const Aws::Utils::DateTime& value) { m_lastAccessedDateHasBeenSet = true; m_lastAccessedDate = value; }
81 inline void SetLastAccessedDate(Aws::Utils::DateTime&& value) { m_lastAccessedDateHasBeenSet = true; m_lastAccessedDate = std::move(value); }
83 inline SecretVersionsListEntry& WithLastAccessedDate(Aws::Utils::DateTime&& value) { SetLastAccessedDate(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
91 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
92 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
93 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
94 inline SecretVersionsListEntry& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
95 inline SecretVersionsListEntry& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetKmsKeyIds() const{ return m_kmsKeyIds; }
103 inline bool KmsKeyIdsHasBeenSet() const { return m_kmsKeyIdsHasBeenSet; }
104 inline void SetKmsKeyIds(const Aws::Vector<Aws::String>& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds = value; }
105 inline void SetKmsKeyIds(Aws::Vector<Aws::String>&& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds = std::move(value); }
106 inline SecretVersionsListEntry& WithKmsKeyIds(const Aws::Vector<Aws::String>& value) { SetKmsKeyIds(value); return *this;}
107 inline SecretVersionsListEntry& WithKmsKeyIds(Aws::Vector<Aws::String>&& value) { SetKmsKeyIds(std::move(value)); return *this;}
108 inline SecretVersionsListEntry& AddKmsKeyIds(const Aws::String& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds.push_back(value); return *this; }
109 inline SecretVersionsListEntry& AddKmsKeyIds(Aws::String&& value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds.push_back(std::move(value)); return *this; }
110 inline SecretVersionsListEntry& AddKmsKeyIds(const char* value) { m_kmsKeyIdsHasBeenSet = true; m_kmsKeyIds.push_back(value); return *this; }
112 private:
113
114 Aws::String m_versionId;
115 bool m_versionIdHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_versionStages;
118 bool m_versionStagesHasBeenSet = false;
119
120 Aws::Utils::DateTime m_lastAccessedDate;
121 bool m_lastAccessedDateHasBeenSet = false;
122
123 Aws::Utils::DateTime m_createdDate;
124 bool m_createdDateHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_kmsKeyIds;
127 bool m_kmsKeyIdsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace SecretsManager
132} // namespace Aws
SecretVersionsListEntry & WithKmsKeyIds(Aws::Vector< Aws::String > &&value)
SecretVersionsListEntry & AddVersionStages(Aws::String &&value)
AWS_SECRETSMANAGER_API SecretVersionsListEntry()
const Aws::Vector< Aws::String > & GetVersionStages() const
bool VersionStagesHasBeenSet() const
SecretVersionsListEntry & AddVersionStages(const char *value)
SecretVersionsListEntry & AddKmsKeyIds(Aws::String &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
SecretVersionsListEntry & WithVersionId(const char *value)
void SetVersionStages(Aws::Vector< Aws::String > &&value)
void SetVersionId(const char *value)
const Aws::Utils::DateTime & GetLastAccessedDate() const
const Aws::Utils::DateTime & GetCreatedDate() const
SecretVersionsListEntry & AddVersionStages(const Aws::String &value)
SecretVersionsListEntry & WithVersionId(Aws::String &&value)
bool KmsKeyIdsHasBeenSet() const
SecretVersionsListEntry & WithCreatedDate(const Aws::Utils::DateTime &value)
SecretVersionsListEntry & WithLastAccessedDate(const Aws::Utils::DateTime &value)
void SetLastAccessedDate(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetKmsKeyIds() const
SecretVersionsListEntry & WithVersionId(const Aws::String &value)
void SetVersionId(Aws::String &&value)
void SetKmsKeyIds(const Aws::Vector< Aws::String > &value)
SecretVersionsListEntry & WithVersionStages(Aws::Vector< Aws::String > &&value)
AWS_SECRETSMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedDate(const Aws::Utils::DateTime &value)
bool CreatedDateHasBeenSet() const
void SetVersionId(const Aws::String &value)
SecretVersionsListEntry & WithKmsKeyIds(const Aws::Vector< Aws::String > &value)
SecretVersionsListEntry & AddKmsKeyIds(const Aws::String &value)
void SetLastAccessedDate(const Aws::Utils::DateTime &value)
SecretVersionsListEntry & WithVersionStages(const Aws::Vector< Aws::String > &value)
SecretVersionsListEntry & AddKmsKeyIds(const char *value)
AWS_SECRETSMANAGER_API SecretVersionsListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersionStages(const Aws::Vector< Aws::String > &value)
bool VersionIdHasBeenSet() const
bool LastAccessedDateHasBeenSet() const
AWS_SECRETSMANAGER_API SecretVersionsListEntry(Aws::Utils::Json::JsonView jsonValue)
SecretVersionsListEntry & WithLastAccessedDate(Aws::Utils::DateTime &&value)
SecretVersionsListEntry & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetKmsKeyIds(Aws::Vector< Aws::String > &&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