AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/EKS_EXPORTS.h>
12#include <aws/eks/model/Category.h>
13#include <aws/eks/model/InsightCategorySpecificSummary.h>
14#include <aws/eks/model/InsightResourceDetail.h>
15#include <aws/eks/model/InsightStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace EKS {
27namespace Model {
28
35class Insight {
36 public:
37 AWS_EKS_API Insight() = default;
38 AWS_EKS_API Insight(Aws::Utils::Json::JsonView jsonValue);
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 Insight& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 Insight& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline Category GetCategory() const { return m_category; }
83 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
84 inline void SetCategory(Category value) {
85 m_categoryHasBeenSet = true;
86 m_category = value;
87 }
88 inline Insight& WithCategory(Category value) {
89 SetCategory(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetKubernetesVersion() const { return m_kubernetesVersion; }
99 inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; }
100 template <typename KubernetesVersionT = Aws::String>
101 void SetKubernetesVersion(KubernetesVersionT&& value) {
102 m_kubernetesVersionHasBeenSet = true;
103 m_kubernetesVersion = std::forward<KubernetesVersionT>(value);
104 }
105 template <typename KubernetesVersionT = Aws::String>
106 Insight& WithKubernetesVersion(KubernetesVersionT&& value) {
107 SetKubernetesVersion(std::forward<KubernetesVersionT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetLastRefreshTime() const { return m_lastRefreshTime; }
118 inline bool LastRefreshTimeHasBeenSet() const { return m_lastRefreshTimeHasBeenSet; }
119 template <typename LastRefreshTimeT = Aws::Utils::DateTime>
120 void SetLastRefreshTime(LastRefreshTimeT&& value) {
121 m_lastRefreshTimeHasBeenSet = true;
122 m_lastRefreshTime = std::forward<LastRefreshTimeT>(value);
123 }
124 template <typename LastRefreshTimeT = Aws::Utils::DateTime>
125 Insight& WithLastRefreshTime(LastRefreshTimeT&& value) {
126 SetLastRefreshTime(std::forward<LastRefreshTimeT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetLastTransitionTime() const { return m_lastTransitionTime; }
136 inline bool LastTransitionTimeHasBeenSet() const { return m_lastTransitionTimeHasBeenSet; }
137 template <typename LastTransitionTimeT = Aws::Utils::DateTime>
138 void SetLastTransitionTime(LastTransitionTimeT&& value) {
139 m_lastTransitionTimeHasBeenSet = true;
140 m_lastTransitionTime = std::forward<LastTransitionTimeT>(value);
141 }
142 template <typename LastTransitionTimeT = Aws::Utils::DateTime>
143 Insight& WithLastTransitionTime(LastTransitionTimeT&& value) {
144 SetLastTransitionTime(std::forward<LastTransitionTimeT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetDescription() const { return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 template <typename DescriptionT = Aws::String>
157 void SetDescription(DescriptionT&& value) {
158 m_descriptionHasBeenSet = true;
159 m_description = std::forward<DescriptionT>(value);
160 }
161 template <typename DescriptionT = Aws::String>
162 Insight& WithDescription(DescriptionT&& value) {
163 SetDescription(std::forward<DescriptionT>(value));
164 return *this;
165 }
167
169
172 inline const InsightStatus& GetInsightStatus() const { return m_insightStatus; }
173 inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; }
174 template <typename InsightStatusT = InsightStatus>
175 void SetInsightStatus(InsightStatusT&& value) {
176 m_insightStatusHasBeenSet = true;
177 m_insightStatus = std::forward<InsightStatusT>(value);
178 }
179 template <typename InsightStatusT = InsightStatus>
180 Insight& WithInsightStatus(InsightStatusT&& value) {
181 SetInsightStatus(std::forward<InsightStatusT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
191 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
192 template <typename RecommendationT = Aws::String>
193 void SetRecommendation(RecommendationT&& value) {
194 m_recommendationHasBeenSet = true;
195 m_recommendation = std::forward<RecommendationT>(value);
196 }
197 template <typename RecommendationT = Aws::String>
198 Insight& WithRecommendation(RecommendationT&& value) {
199 SetRecommendation(std::forward<RecommendationT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalInfo() const { return m_additionalInfo; }
209 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
210 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::String>>
211 void SetAdditionalInfo(AdditionalInfoT&& value) {
212 m_additionalInfoHasBeenSet = true;
213 m_additionalInfo = std::forward<AdditionalInfoT>(value);
214 }
215 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::String>>
216 Insight& WithAdditionalInfo(AdditionalInfoT&& value) {
217 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
218 return *this;
219 }
220 template <typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::String>
221 Insight& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
222 m_additionalInfoHasBeenSet = true;
223 m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Vector<InsightResourceDetail>& GetResources() const { return m_resources; }
233 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
234 template <typename ResourcesT = Aws::Vector<InsightResourceDetail>>
235 void SetResources(ResourcesT&& value) {
236 m_resourcesHasBeenSet = true;
237 m_resources = std::forward<ResourcesT>(value);
238 }
239 template <typename ResourcesT = Aws::Vector<InsightResourceDetail>>
240 Insight& WithResources(ResourcesT&& value) {
241 SetResources(std::forward<ResourcesT>(value));
242 return *this;
243 }
244 template <typename ResourcesT = InsightResourceDetail>
245 Insight& AddResources(ResourcesT&& value) {
246 m_resourcesHasBeenSet = true;
247 m_resources.emplace_back(std::forward<ResourcesT>(value));
248 return *this;
249 }
251
253
258 inline const InsightCategorySpecificSummary& GetCategorySpecificSummary() const { return m_categorySpecificSummary; }
259 inline bool CategorySpecificSummaryHasBeenSet() const { return m_categorySpecificSummaryHasBeenSet; }
260 template <typename CategorySpecificSummaryT = InsightCategorySpecificSummary>
261 void SetCategorySpecificSummary(CategorySpecificSummaryT&& value) {
262 m_categorySpecificSummaryHasBeenSet = true;
263 m_categorySpecificSummary = std::forward<CategorySpecificSummaryT>(value);
264 }
265 template <typename CategorySpecificSummaryT = InsightCategorySpecificSummary>
266 Insight& WithCategorySpecificSummary(CategorySpecificSummaryT&& value) {
267 SetCategorySpecificSummary(std::forward<CategorySpecificSummaryT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_id;
273
274 Aws::String m_name;
275
276 Category m_category{Category::NOT_SET};
277
278 Aws::String m_kubernetesVersion;
279
280 Aws::Utils::DateTime m_lastRefreshTime{};
281
282 Aws::Utils::DateTime m_lastTransitionTime{};
283
284 Aws::String m_description;
285
286 InsightStatus m_insightStatus;
287
288 Aws::String m_recommendation;
289
290 Aws::Map<Aws::String, Aws::String> m_additionalInfo;
291
293
294 InsightCategorySpecificSummary m_categorySpecificSummary;
295 bool m_idHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_categoryHasBeenSet = false;
298 bool m_kubernetesVersionHasBeenSet = false;
299 bool m_lastRefreshTimeHasBeenSet = false;
300 bool m_lastTransitionTimeHasBeenSet = false;
301 bool m_descriptionHasBeenSet = false;
302 bool m_insightStatusHasBeenSet = false;
303 bool m_recommendationHasBeenSet = false;
304 bool m_additionalInfoHasBeenSet = false;
305 bool m_resourcesHasBeenSet = false;
306 bool m_categorySpecificSummaryHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace EKS
311} // namespace Aws
const Aws::String & GetKubernetesVersion() const
Definition Insight.h:98
bool IdHasBeenSet() const
Definition Insight.h:47
Insight & WithLastRefreshTime(LastRefreshTimeT &&value)
Definition Insight.h:125
bool KubernetesVersionHasBeenSet() const
Definition Insight.h:99
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastTransitionTimeHasBeenSet() const
Definition Insight.h:136
bool AdditionalInfoHasBeenSet() const
Definition Insight.h:209
Insight & WithName(NameT &&value)
Definition Insight.h:72
Insight & WithDescription(DescriptionT &&value)
Definition Insight.h:162
void SetName(NameT &&value)
Definition Insight.h:67
const InsightCategorySpecificSummary & GetCategorySpecificSummary() const
Definition Insight.h:258
void SetInsightStatus(InsightStatusT &&value)
Definition Insight.h:175
void SetKubernetesVersion(KubernetesVersionT &&value)
Definition Insight.h:101
const Aws::Utils::DateTime & GetLastTransitionTime() const
Definition Insight.h:135
void SetResources(ResourcesT &&value)
Definition Insight.h:235
Insight & WithId(IdT &&value)
Definition Insight.h:54
AWS_EKS_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
Category GetCategory() const
Definition Insight.h:82
bool LastRefreshTimeHasBeenSet() const
Definition Insight.h:118
const Aws::String & GetName() const
Definition Insight.h:64
AWS_EKS_API Insight()=default
const Aws::Map< Aws::String, Aws::String > & GetAdditionalInfo() const
Definition Insight.h:208
AWS_EKS_API Insight(Aws::Utils::Json::JsonView jsonValue)
Insight & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
Definition Insight.h:221
void SetLastTransitionTime(LastTransitionTimeT &&value)
Definition Insight.h:138
Insight & WithCategory(Category value)
Definition Insight.h:88
void SetLastRefreshTime(LastRefreshTimeT &&value)
Definition Insight.h:120
const Aws::Utils::DateTime & GetLastRefreshTime() const
Definition Insight.h:117
void SetCategorySpecificSummary(CategorySpecificSummaryT &&value)
Definition Insight.h:261
bool ResourcesHasBeenSet() const
Definition Insight.h:233
void SetCategory(Category value)
Definition Insight.h:84
const Aws::String & GetDescription() const
Definition Insight.h:154
bool DescriptionHasBeenSet() const
Definition Insight.h:155
Insight & WithKubernetesVersion(KubernetesVersionT &&value)
Definition Insight.h:106
Insight & AddResources(ResourcesT &&value)
Definition Insight.h:245
const Aws::String & GetId() const
Definition Insight.h:46
Insight & WithResources(ResourcesT &&value)
Definition Insight.h:240
bool CategorySpecificSummaryHasBeenSet() const
Definition Insight.h:259
bool InsightStatusHasBeenSet() const
Definition Insight.h:173
void SetId(IdT &&value)
Definition Insight.h:49
void SetRecommendation(RecommendationT &&value)
Definition Insight.h:193
Insight & WithCategorySpecificSummary(CategorySpecificSummaryT &&value)
Definition Insight.h:266
const Aws::Vector< InsightResourceDetail > & GetResources() const
Definition Insight.h:232
void SetAdditionalInfo(AdditionalInfoT &&value)
Definition Insight.h:211
Insight & WithRecommendation(RecommendationT &&value)
Definition Insight.h:198
Insight & WithInsightStatus(InsightStatusT &&value)
Definition Insight.h:180
Insight & WithLastTransitionTime(LastTransitionTimeT &&value)
Definition Insight.h:143
bool RecommendationHasBeenSet() const
Definition Insight.h:191
const Aws::String & GetRecommendation() const
Definition Insight.h:190
void SetDescription(DescriptionT &&value)
Definition Insight.h:157
Insight & WithAdditionalInfo(AdditionalInfoT &&value)
Definition Insight.h:216
bool CategoryHasBeenSet() const
Definition Insight.h:83
const InsightStatus & GetInsightStatus() const
Definition Insight.h:172
bool NameHasBeenSet() const
Definition Insight.h:65
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue