AWS SDK for C++

AWS SDK for C++ Version 1.11.872

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/eks/EKS_EXPORTS.h>
11#include <aws/eks/model/ClusterVersionStatus.h>
12#include <aws/eks/model/ControlPlaneConfigInfo.h>
13#include <aws/eks/model/ControlPlaneScalingTierInfo.h>
14#include <aws/eks/model/VersionStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EKS {
26namespace Model {
27
35 public:
36 AWS_EKS_API ClusterVersionInformation() = default;
40
42
45 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
46 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
47 template <typename ClusterVersionT = Aws::String>
48 void SetClusterVersion(ClusterVersionT&& value) {
49 m_clusterVersionHasBeenSet = true;
50 m_clusterVersion = std::forward<ClusterVersionT>(value);
51 }
52 template <typename ClusterVersionT = Aws::String>
54 SetClusterVersion(std::forward<ClusterVersionT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetClusterType() const { return m_clusterType; }
64 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
65 template <typename ClusterTypeT = Aws::String>
66 void SetClusterType(ClusterTypeT&& value) {
67 m_clusterTypeHasBeenSet = true;
68 m_clusterType = std::forward<ClusterTypeT>(value);
69 }
70 template <typename ClusterTypeT = Aws::String>
72 SetClusterType(std::forward<ClusterTypeT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDefaultPlatformVersion() const { return m_defaultPlatformVersion; }
82 inline bool DefaultPlatformVersionHasBeenSet() const { return m_defaultPlatformVersionHasBeenSet; }
83 template <typename DefaultPlatformVersionT = Aws::String>
84 void SetDefaultPlatformVersion(DefaultPlatformVersionT&& value) {
85 m_defaultPlatformVersionHasBeenSet = true;
86 m_defaultPlatformVersion = std::forward<DefaultPlatformVersionT>(value);
87 }
88 template <typename DefaultPlatformVersionT = Aws::String>
89 ClusterVersionInformation& WithDefaultPlatformVersion(DefaultPlatformVersionT&& value) {
90 SetDefaultPlatformVersion(std::forward<DefaultPlatformVersionT>(value));
91 return *this;
92 }
94
96
99 inline bool GetDefaultVersion() const { return m_defaultVersion; }
100 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
101 inline void SetDefaultVersion(bool value) {
102 m_defaultVersionHasBeenSet = true;
103 m_defaultVersion = value;
104 }
106 SetDefaultVersion(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetReleaseDate() const { return m_releaseDate; }
116 inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; }
117 template <typename ReleaseDateT = Aws::Utils::DateTime>
118 void SetReleaseDate(ReleaseDateT&& value) {
119 m_releaseDateHasBeenSet = true;
120 m_releaseDate = std::forward<ReleaseDateT>(value);
121 }
122 template <typename ReleaseDateT = Aws::Utils::DateTime>
124 SetReleaseDate(std::forward<ReleaseDateT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetEndOfStandardSupportDate() const { return m_endOfStandardSupportDate; }
134 inline bool EndOfStandardSupportDateHasBeenSet() const { return m_endOfStandardSupportDateHasBeenSet; }
135 template <typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
136 void SetEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) {
137 m_endOfStandardSupportDateHasBeenSet = true;
138 m_endOfStandardSupportDate = std::forward<EndOfStandardSupportDateT>(value);
139 }
140 template <typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
141 ClusterVersionInformation& WithEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) {
142 SetEndOfStandardSupportDate(std::forward<EndOfStandardSupportDateT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetEndOfExtendedSupportDate() const { return m_endOfExtendedSupportDate; }
152 inline bool EndOfExtendedSupportDateHasBeenSet() const { return m_endOfExtendedSupportDateHasBeenSet; }
153 template <typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
154 void SetEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) {
155 m_endOfExtendedSupportDateHasBeenSet = true;
156 m_endOfExtendedSupportDate = std::forward<EndOfExtendedSupportDateT>(value);
157 }
158 template <typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
159 ClusterVersionInformation& WithEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) {
160 SetEndOfExtendedSupportDate(std::forward<EndOfExtendedSupportDateT>(value));
161 return *this;
162 }
164
166
171 inline ClusterVersionStatus GetStatus() const { return m_status; }
172 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 inline void SetStatus(ClusterVersionStatus value) {
174 m_statusHasBeenSet = true;
175 m_status = value;
176 }
178 SetStatus(value);
179 return *this;
180 }
182
184
187 inline VersionStatus GetVersionStatus() const { return m_versionStatus; }
188 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
189 inline void SetVersionStatus(VersionStatus value) {
190 m_versionStatusHasBeenSet = true;
191 m_versionStatus = value;
192 }
194 SetVersionStatus(value);
195 return *this;
196 }
198
200
203 inline const Aws::String& GetKubernetesPatchVersion() const { return m_kubernetesPatchVersion; }
204 inline bool KubernetesPatchVersionHasBeenSet() const { return m_kubernetesPatchVersionHasBeenSet; }
205 template <typename KubernetesPatchVersionT = Aws::String>
206 void SetKubernetesPatchVersion(KubernetesPatchVersionT&& value) {
207 m_kubernetesPatchVersionHasBeenSet = true;
208 m_kubernetesPatchVersion = std::forward<KubernetesPatchVersionT>(value);
209 }
210 template <typename KubernetesPatchVersionT = Aws::String>
211 ClusterVersionInformation& WithKubernetesPatchVersion(KubernetesPatchVersionT&& value) {
212 SetKubernetesPatchVersion(std::forward<KubernetesPatchVersionT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::Vector<ControlPlaneScalingTierInfo>& GetControlPlaneScalingTiers() const { return m_controlPlaneScalingTiers; }
223 inline bool ControlPlaneScalingTiersHasBeenSet() const { return m_controlPlaneScalingTiersHasBeenSet; }
224 template <typename ControlPlaneScalingTiersT = Aws::Vector<ControlPlaneScalingTierInfo>>
225 void SetControlPlaneScalingTiers(ControlPlaneScalingTiersT&& value) {
226 m_controlPlaneScalingTiersHasBeenSet = true;
227 m_controlPlaneScalingTiers = std::forward<ControlPlaneScalingTiersT>(value);
228 }
229 template <typename ControlPlaneScalingTiersT = Aws::Vector<ControlPlaneScalingTierInfo>>
230 ClusterVersionInformation& WithControlPlaneScalingTiers(ControlPlaneScalingTiersT&& value) {
231 SetControlPlaneScalingTiers(std::forward<ControlPlaneScalingTiersT>(value));
232 return *this;
233 }
234 template <typename ControlPlaneScalingTiersT = ControlPlaneScalingTierInfo>
235 ClusterVersionInformation& AddControlPlaneScalingTiers(ControlPlaneScalingTiersT&& value) {
236 m_controlPlaneScalingTiersHasBeenSet = true;
237 m_controlPlaneScalingTiers.emplace_back(std::forward<ControlPlaneScalingTiersT>(value));
238 return *this;
239 }
241
243
247 inline const ControlPlaneConfigInfo& GetControlPlaneComponentConfig() const { return m_controlPlaneComponentConfig; }
248 inline bool ControlPlaneComponentConfigHasBeenSet() const { return m_controlPlaneComponentConfigHasBeenSet; }
249 template <typename ControlPlaneComponentConfigT = ControlPlaneConfigInfo>
250 void SetControlPlaneComponentConfig(ControlPlaneComponentConfigT&& value) {
251 m_controlPlaneComponentConfigHasBeenSet = true;
252 m_controlPlaneComponentConfig = std::forward<ControlPlaneComponentConfigT>(value);
253 }
254 template <typename ControlPlaneComponentConfigT = ControlPlaneConfigInfo>
255 ClusterVersionInformation& WithControlPlaneComponentConfig(ControlPlaneComponentConfigT&& value) {
256 SetControlPlaneComponentConfig(std::forward<ControlPlaneComponentConfigT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_clusterVersion;
262
263 Aws::String m_clusterType;
264
265 Aws::String m_defaultPlatformVersion;
266
267 bool m_defaultVersion{false};
268
269 Aws::Utils::DateTime m_releaseDate{};
270
271 Aws::Utils::DateTime m_endOfStandardSupportDate{};
272
273 Aws::Utils::DateTime m_endOfExtendedSupportDate{};
274
276
277 VersionStatus m_versionStatus{VersionStatus::NOT_SET};
278
279 Aws::String m_kubernetesPatchVersion;
280
281 Aws::Vector<ControlPlaneScalingTierInfo> m_controlPlaneScalingTiers;
282
283 ControlPlaneConfigInfo m_controlPlaneComponentConfig;
284 bool m_clusterVersionHasBeenSet = false;
285 bool m_clusterTypeHasBeenSet = false;
286 bool m_defaultPlatformVersionHasBeenSet = false;
287 bool m_defaultVersionHasBeenSet = false;
288 bool m_releaseDateHasBeenSet = false;
289 bool m_endOfStandardSupportDateHasBeenSet = false;
290 bool m_endOfExtendedSupportDateHasBeenSet = false;
291 bool m_statusHasBeenSet = false;
292 bool m_versionStatusHasBeenSet = false;
293 bool m_kubernetesPatchVersionHasBeenSet = false;
294 bool m_controlPlaneScalingTiersHasBeenSet = false;
295 bool m_controlPlaneComponentConfigHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace EKS
300} // namespace Aws
ClusterVersionInformation & WithReleaseDate(ReleaseDateT &&value)
const Aws::Utils::DateTime & GetReleaseDate() const
ClusterVersionInformation & WithControlPlaneScalingTiers(ControlPlaneScalingTiersT &&value)
ClusterVersionInformation & WithVersionStatus(VersionStatus value)
ClusterVersionInformation & WithDefaultVersion(bool value)
void SetKubernetesPatchVersion(KubernetesPatchVersionT &&value)
const ControlPlaneConfigInfo & GetControlPlaneComponentConfig() const
void SetControlPlaneComponentConfig(ControlPlaneComponentConfigT &&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)
ClusterVersionInformation & WithControlPlaneComponentConfig(ControlPlaneComponentConfigT &&value)
const Aws::Utils::DateTime & GetEndOfExtendedSupportDate() const
void SetDefaultPlatformVersion(DefaultPlatformVersionT &&value)
ClusterVersionInformation & WithClusterType(ClusterTypeT &&value)
ClusterVersionInformation & AddControlPlaneScalingTiers(ControlPlaneScalingTiersT &&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
void SetControlPlaneScalingTiers(ControlPlaneScalingTiersT &&value)
ClusterVersionInformation & WithEndOfStandardSupportDate(EndOfStandardSupportDateT &&value)
const Aws::Vector< ControlPlaneScalingTierInfo > & GetControlPlaneScalingTiers() 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