AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterVersionInformation.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/eks/model/ClusterVersionStatus.h>
11#include <aws/eks/model/VersionStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EKS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EKS_API ClusterVersionInformation() = default;
42
43
45
48 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
49 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
50 template<typename ClusterVersionT = Aws::String>
51 void SetClusterVersion(ClusterVersionT&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::forward<ClusterVersionT>(value); }
52 template<typename ClusterVersionT = Aws::String>
53 ClusterVersionInformation& WithClusterVersion(ClusterVersionT&& value) { SetClusterVersion(std::forward<ClusterVersionT>(value)); return *this;}
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) { m_clusterTypeHasBeenSet = true; m_clusterType = std::forward<ClusterTypeT>(value); }
64 template<typename ClusterTypeT = Aws::String>
65 ClusterVersionInformation& WithClusterType(ClusterTypeT&& value) { SetClusterType(std::forward<ClusterTypeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDefaultPlatformVersion() const { return m_defaultPlatformVersion; }
73 inline bool DefaultPlatformVersionHasBeenSet() const { return m_defaultPlatformVersionHasBeenSet; }
74 template<typename DefaultPlatformVersionT = Aws::String>
75 void SetDefaultPlatformVersion(DefaultPlatformVersionT&& value) { m_defaultPlatformVersionHasBeenSet = true; m_defaultPlatformVersion = std::forward<DefaultPlatformVersionT>(value); }
76 template<typename DefaultPlatformVersionT = Aws::String>
77 ClusterVersionInformation& WithDefaultPlatformVersion(DefaultPlatformVersionT&& value) { SetDefaultPlatformVersion(std::forward<DefaultPlatformVersionT>(value)); return *this;}
79
81
84 inline bool GetDefaultVersion() const { return m_defaultVersion; }
85 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
86 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
87 inline ClusterVersionInformation& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetReleaseDate() const { return m_releaseDate; }
95 inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; }
96 template<typename ReleaseDateT = Aws::Utils::DateTime>
97 void SetReleaseDate(ReleaseDateT&& value) { m_releaseDateHasBeenSet = true; m_releaseDate = std::forward<ReleaseDateT>(value); }
98 template<typename ReleaseDateT = Aws::Utils::DateTime>
99 ClusterVersionInformation& WithReleaseDate(ReleaseDateT&& value) { SetReleaseDate(std::forward<ReleaseDateT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetEndOfStandardSupportDate() const { return m_endOfStandardSupportDate; }
107 inline bool EndOfStandardSupportDateHasBeenSet() const { return m_endOfStandardSupportDateHasBeenSet; }
108 template<typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
109 void SetEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) { m_endOfStandardSupportDateHasBeenSet = true; m_endOfStandardSupportDate = std::forward<EndOfStandardSupportDateT>(value); }
110 template<typename EndOfStandardSupportDateT = Aws::Utils::DateTime>
111 ClusterVersionInformation& WithEndOfStandardSupportDate(EndOfStandardSupportDateT&& value) { SetEndOfStandardSupportDate(std::forward<EndOfStandardSupportDateT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetEndOfExtendedSupportDate() const { return m_endOfExtendedSupportDate; }
119 inline bool EndOfExtendedSupportDateHasBeenSet() const { return m_endOfExtendedSupportDateHasBeenSet; }
120 template<typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
121 void SetEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) { m_endOfExtendedSupportDateHasBeenSet = true; m_endOfExtendedSupportDate = std::forward<EndOfExtendedSupportDateT>(value); }
122 template<typename EndOfExtendedSupportDateT = Aws::Utils::DateTime>
123 ClusterVersionInformation& WithEndOfExtendedSupportDate(EndOfExtendedSupportDateT&& value) { SetEndOfExtendedSupportDate(std::forward<EndOfExtendedSupportDateT>(value)); return *this;}
125
127
132 inline ClusterVersionStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(ClusterVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
137
139
142 inline VersionStatus GetVersionStatus() const { return m_versionStatus; }
143 inline bool VersionStatusHasBeenSet() const { return m_versionStatusHasBeenSet; }
144 inline void SetVersionStatus(VersionStatus value) { m_versionStatusHasBeenSet = true; m_versionStatus = value; }
147
149
152 inline const Aws::String& GetKubernetesPatchVersion() const { return m_kubernetesPatchVersion; }
153 inline bool KubernetesPatchVersionHasBeenSet() const { return m_kubernetesPatchVersionHasBeenSet; }
154 template<typename KubernetesPatchVersionT = Aws::String>
155 void SetKubernetesPatchVersion(KubernetesPatchVersionT&& value) { m_kubernetesPatchVersionHasBeenSet = true; m_kubernetesPatchVersion = std::forward<KubernetesPatchVersionT>(value); }
156 template<typename KubernetesPatchVersionT = Aws::String>
157 ClusterVersionInformation& WithKubernetesPatchVersion(KubernetesPatchVersionT&& value) { SetKubernetesPatchVersion(std::forward<KubernetesPatchVersionT>(value)); return *this;}
159 private:
160
161 Aws::String m_clusterVersion;
162 bool m_clusterVersionHasBeenSet = false;
163
164 Aws::String m_clusterType;
165 bool m_clusterTypeHasBeenSet = false;
166
167 Aws::String m_defaultPlatformVersion;
168 bool m_defaultPlatformVersionHasBeenSet = false;
169
170 bool m_defaultVersion{false};
171 bool m_defaultVersionHasBeenSet = false;
172
173 Aws::Utils::DateTime m_releaseDate{};
174 bool m_releaseDateHasBeenSet = false;
175
176 Aws::Utils::DateTime m_endOfStandardSupportDate{};
177 bool m_endOfStandardSupportDateHasBeenSet = false;
178
179 Aws::Utils::DateTime m_endOfExtendedSupportDate{};
180 bool m_endOfExtendedSupportDateHasBeenSet = false;
181
183 bool m_statusHasBeenSet = false;
184
185 VersionStatus m_versionStatus{VersionStatus::NOT_SET};
186 bool m_versionStatusHasBeenSet = false;
187
188 Aws::String m_kubernetesPatchVersion;
189 bool m_kubernetesPatchVersionHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace EKS
194} // 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