AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClusterVersionInformation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/ClusterVersionStatus.h>
11#include <aws/eks/model/VersionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS {
23namespace Model {
24
32 public:
33 AWS_EKS_API ClusterVersionInformation() = default;
37
39
42 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
43 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
44 template <typename ClusterVersionT = Aws::String>
45 void SetClusterVersion(ClusterVersionT&& value) {
46 m_clusterVersionHasBeenSet = true;
47 m_clusterVersion = std::forward<ClusterVersionT>(value);
48 }
49 template <typename ClusterVersionT = Aws::String>
51 SetClusterVersion(std::forward<ClusterVersionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetClusterType() const { return m_clusterType; }
61 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
62 template <typename ClusterTypeT = Aws::String>
63 void SetClusterType(ClusterTypeT&& value) {
64 m_clusterTypeHasBeenSet = true;
65 m_clusterType = std::forward<ClusterTypeT>(value);
66 }
67 template <typename ClusterTypeT = Aws::String>
69 SetClusterType(std::forward<ClusterTypeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDefaultPlatformVersion() const { return m_defaultPlatformVersion; }
79 inline bool DefaultPlatformVersionHasBeenSet() const { return m_defaultPlatformVersionHasBeenSet; }
80 template <typename DefaultPlatformVersionT = Aws::String>
81 void SetDefaultPlatformVersion(DefaultPlatformVersionT&& value) {
82 m_defaultPlatformVersionHasBeenSet = true;
83 m_defaultPlatformVersion = std::forward<DefaultPlatformVersionT>(value);
84 }
85 template <typename DefaultPlatformVersionT = Aws::String>
86 ClusterVersionInformation& WithDefaultPlatformVersion(DefaultPlatformVersionT&& value) {
87 SetDefaultPlatformVersion(std::forward<DefaultPlatformVersionT>(value));
88 return *this;
89 }
91
93
96 inline bool GetDefaultVersion() const { return m_defaultVersion; }
97 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
98 inline void SetDefaultVersion(bool value) {
99 m_defaultVersionHasBeenSet = true;
100 m_defaultVersion = value;
101 }
103 SetDefaultVersion(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetReleaseDate() const { return m_releaseDate; }
113 inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; }
114 template <typename ReleaseDateT = Aws::Utils::DateTime>
115 void SetReleaseDate(ReleaseDateT&& value) {
116 m_releaseDateHasBeenSet = true;
117 m_releaseDate = std::forward<ReleaseDateT>(value);
118 }
119 template <typename ReleaseDateT = Aws::Utils::DateTime>
121 SetReleaseDate(std::forward<ReleaseDateT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetEndOfStandardSupportDate() const { return m_endOfStandardSupportDate; }
131 inline bool EndOfStandardSupportDateHasBeenSet() const { return m_endOfStandardSupportDateHasBeenSet; }
132 template <typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
133 void SetEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) {
134 m_endOfStandardSupportDateHasBeenSet = true;
135 m_endOfStandardSupportDate = std::forward<EndOfStandardSupportDateT>(value);
136 }
137 template <typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
138 ClusterVersionInformation& WithEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) {
139 SetEndOfStandardSupportDate(std::forward<EndOfStandardSupportDateT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetEndOfExtendedSupportDate() const { return m_endOfExtendedSupportDate; }
149 inline bool EndOfExtendedSupportDateHasBeenSet() const { return m_endOfExtendedSupportDateHasBeenSet; }
150 template <typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
151 void SetEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) {
152 m_endOfExtendedSupportDateHasBeenSet = true;
153 m_endOfExtendedSupportDate = std::forward<EndOfExtendedSupportDateT>(value);
154 }
155 template <typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
156 ClusterVersionInformation& WithEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) {
157 SetEndOfExtendedSupportDate(std::forward<EndOfExtendedSupportDateT>(value));
158 return *this;
159 }
161
163
168 inline ClusterVersionStatus GetStatus() const { return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
170 inline void SetStatus(ClusterVersionStatus value) {
171 m_statusHasBeenSet = true;
172 m_status = value;
173 }
175 SetStatus(value);
176 return *this;
177 }
179
181
184 inline VersionStatus GetVersionStatus() const { return m_versionStatus; }
185 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
186 inline void SetVersionStatus(VersionStatus value) {
187 m_versionStatusHasBeenSet = true;
188 m_versionStatus = value;
189 }
191 SetVersionStatus(value);
192 return *this;
193 }
195
197
200 inline const Aws::String& GetKubernetesPatchVersion() const { return m_kubernetesPatchVersion; }
201 inline bool KubernetesPatchVersionHasBeenSet() const { return m_kubernetesPatchVersionHasBeenSet; }
202 template <typename KubernetesPatchVersionT = Aws::String>
203 void SetKubernetesPatchVersion(KubernetesPatchVersionT&& value) {
204 m_kubernetesPatchVersionHasBeenSet = true;
205 m_kubernetesPatchVersion = std::forward<KubernetesPatchVersionT>(value);
206 }
207 template <typename KubernetesPatchVersionT = Aws::String>
208 ClusterVersionInformation& WithKubernetesPatchVersion(KubernetesPatchVersionT&& value) {
209 SetKubernetesPatchVersion(std::forward<KubernetesPatchVersionT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_clusterVersion;
215
216 Aws::String m_clusterType;
217
218 Aws::String m_defaultPlatformVersion;
219
220 bool m_defaultVersion{false};
221
222 Aws::Utils::DateTime m_releaseDate{};
223
224 Aws::Utils::DateTime m_endOfStandardSupportDate{};
225
226 Aws::Utils::DateTime m_endOfExtendedSupportDate{};
227
229
230 VersionStatus m_versionStatus{VersionStatus::NOT_SET};
231
232 Aws::String m_kubernetesPatchVersion;
233 bool m_clusterVersionHasBeenSet = false;
234 bool m_clusterTypeHasBeenSet = false;
235 bool m_defaultPlatformVersionHasBeenSet = false;
236 bool m_defaultVersionHasBeenSet = false;
237 bool m_releaseDateHasBeenSet = false;
238 bool m_endOfStandardSupportDateHasBeenSet = false;
239 bool m_endOfExtendedSupportDateHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_versionStatusHasBeenSet = false;
242 bool m_kubernetesPatchVersionHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace EKS
247} // namespace Aws
ClusterVersionInformation & WithReleaseDate(ReleaseDateT &&value)
const Aws::Utils::DateTime & GetReleaseDate() const
ClusterVersionInformation & WithVersionStatus(VersionStatus value)
ClusterVersionInformation & WithDefaultVersion(bool value)
void SetKubernetesPatchVersion(KubernetesPatchVersionT &&value)
ClusterVersionInformation & WithClusterVersion(ClusterVersionT &&value)
AWS_EKS_API ClusterVersionInformation(Aws::Utils::Json::JsonView jsonValue)
void SetEndOfStandardSupportDate(EndOfStandardSupportDateT &&value)
void SetEndOfExtendedSupportDate(EndOfExtendedSupportDateT &&value)
ClusterVersionInformation & WithEndOfExtendedSupportDate(EndOfExtendedSupportDateT &&value)
const Aws::Utils::DateTime & GetEndOfExtendedSupportDate() const
void SetDefaultPlatformVersion(DefaultPlatformVersionT &&value)
ClusterVersionInformation & WithClusterType(ClusterTypeT &&value)
AWS_EKS_API ClusterVersionInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterVersionInformation & WithDefaultPlatformVersion(DefaultPlatformVersionT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterVersionInformation & WithKubernetesPatchVersion(KubernetesPatchVersionT &&value)
ClusterVersionInformation & WithStatus(ClusterVersionStatus value)
AWS_EKS_API ClusterVersionInformation()=default
const Aws::Utils::DateTime & GetEndOfStandardSupportDate() const
ClusterVersionInformation & WithEndOfStandardSupportDate(EndOfStandardSupportDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue