AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InsightSummary.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/Category.h>
11#include <aws/eks/model/InsightStatus.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
31 public:
32 AWS_EKS_API InsightSummary() = default;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 InsightSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 InsightSummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline Category GetCategory() const { return m_category; }
78 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
79 inline void SetCategory(Category value) {
80 m_categoryHasBeenSet = true;
81 m_category = value;
82 }
84 SetCategory(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetKubernetesVersion() const { return m_kubernetesVersion; }
94 inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; }
95 template <typename KubernetesVersionT = Aws::String>
96 void SetKubernetesVersion(KubernetesVersionT&& value) {
97 m_kubernetesVersionHasBeenSet = true;
98 m_kubernetesVersion = std::forward<KubernetesVersionT>(value);
99 }
100 template <typename KubernetesVersionT = Aws::String>
101 InsightSummary& WithKubernetesVersion(KubernetesVersionT&& value) {
102 SetKubernetesVersion(std::forward<KubernetesVersionT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetLastRefreshTime() const { return m_lastRefreshTime; }
113 inline bool LastRefreshTimeHasBeenSet() const { return m_lastRefreshTimeHasBeenSet; }
114 template <typename LastRefreshTimeT = Aws::Utils::DateTime>
115 void SetLastRefreshTime(LastRefreshTimeT&& value) {
116 m_lastRefreshTimeHasBeenSet = true;
117 m_lastRefreshTime = std::forward<LastRefreshTimeT>(value);
118 }
119 template <typename LastRefreshTimeT = Aws::Utils::DateTime>
120 InsightSummary& WithLastRefreshTime(LastRefreshTimeT&& value) {
121 SetLastRefreshTime(std::forward<LastRefreshTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetLastTransitionTime() const { return m_lastTransitionTime; }
131 inline bool LastTransitionTimeHasBeenSet() const { return m_lastTransitionTimeHasBeenSet; }
132 template <typename LastTransitionTimeT = Aws::Utils::DateTime>
133 void SetLastTransitionTime(LastTransitionTimeT&& value) {
134 m_lastTransitionTimeHasBeenSet = true;
135 m_lastTransitionTime = std::forward<LastTransitionTimeT>(value);
136 }
137 template <typename LastTransitionTimeT = Aws::Utils::DateTime>
138 InsightSummary& WithLastTransitionTime(LastTransitionTimeT&& value) {
139 SetLastTransitionTime(std::forward<LastTransitionTimeT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template <typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) {
153 m_descriptionHasBeenSet = true;
154 m_description = std::forward<DescriptionT>(value);
155 }
156 template <typename DescriptionT = Aws::String>
157 InsightSummary& WithDescription(DescriptionT&& value) {
158 SetDescription(std::forward<DescriptionT>(value));
159 return *this;
160 }
162
164
167 inline const InsightStatus& GetInsightStatus() const { return m_insightStatus; }
168 inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; }
169 template <typename InsightStatusT = InsightStatus>
170 void SetInsightStatus(InsightStatusT&& value) {
171 m_insightStatusHasBeenSet = true;
172 m_insightStatus = std::forward<InsightStatusT>(value);
173 }
174 template <typename InsightStatusT = InsightStatus>
175 InsightSummary& WithInsightStatus(InsightStatusT&& value) {
176 SetInsightStatus(std::forward<InsightStatusT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_id;
182
183 Aws::String m_name;
184
185 Category m_category{Category::NOT_SET};
186
187 Aws::String m_kubernetesVersion;
188
189 Aws::Utils::DateTime m_lastRefreshTime{};
190
191 Aws::Utils::DateTime m_lastTransitionTime{};
192
193 Aws::String m_description;
194
195 InsightStatus m_insightStatus;
196 bool m_idHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_categoryHasBeenSet = false;
199 bool m_kubernetesVersionHasBeenSet = false;
200 bool m_lastRefreshTimeHasBeenSet = false;
201 bool m_lastTransitionTimeHasBeenSet = false;
202 bool m_descriptionHasBeenSet = false;
203 bool m_insightStatusHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace EKS
208} // namespace Aws
const InsightStatus & GetInsightStatus() const
void SetDescription(DescriptionT &&value)
InsightSummary & WithLastTransitionTime(LastTransitionTimeT &&value)
const Aws::String & GetId() const
AWS_EKS_API InsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightSummary & WithDescription(DescriptionT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
void SetLastRefreshTime(LastRefreshTimeT &&value)
void SetKubernetesVersion(KubernetesVersionT &&value)
const Aws::String & GetKubernetesVersion() const
InsightSummary & WithLastRefreshTime(LastRefreshTimeT &&value)
const Aws::Utils::DateTime & GetLastTransitionTime() const
const Aws::String & GetDescription() const
InsightSummary & WithName(NameT &&value)
InsightSummary & WithInsightStatus(InsightStatusT &&value)
InsightSummary & WithId(IdT &&value)
InsightSummary & WithKubernetesVersion(KubernetesVersionT &&value)
AWS_EKS_API InsightSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(Category value)
void SetInsightStatus(InsightStatusT &&value)
InsightSummary & WithCategory(Category value)
const Aws::Utils::DateTime & GetLastRefreshTime() const
AWS_EKS_API InsightSummary()=default
void SetLastTransitionTime(LastTransitionTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue