AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/model/Category.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/eks/model/InsightStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/eks/model/InsightCategorySpecificSummary.h>
15#include <aws/eks/model/InsightResourceDetail.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace EKS
29{
30namespace Model
31{
32
39 class Insight
40 {
41 public:
42 AWS_EKS_API Insight() = default;
43 AWS_EKS_API Insight(Aws::Utils::Json::JsonView jsonValue);
46
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 Insight& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 Insight& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline Category GetCategory() const { return m_category; }
77 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
78 inline void SetCategory(Category value) { m_categoryHasBeenSet = true; m_category = value; }
79 inline Insight& WithCategory(Category value) { SetCategory(value); return *this;}
81
83
86 inline const Aws::String& GetKubernetesVersion() const { return m_kubernetesVersion; }
87 inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; }
88 template<typename KubernetesVersionT = Aws::String>
89 void SetKubernetesVersion(KubernetesVersionT&& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = std::forward<KubernetesVersionT>(value); }
90 template<typename KubernetesVersionT = Aws::String>
91 Insight& WithKubernetesVersion(KubernetesVersionT&& value) { SetKubernetesVersion(std::forward<KubernetesVersionT>(value)); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetLastRefreshTime() const { return m_lastRefreshTime; }
100 inline bool LastRefreshTimeHasBeenSet() const { return m_lastRefreshTimeHasBeenSet; }
101 template<typename LastRefreshTimeT = Aws::Utils::DateTime>
102 void SetLastRefreshTime(LastRefreshTimeT&& value) { m_lastRefreshTimeHasBeenSet = true; m_lastRefreshTime = std::forward<LastRefreshTimeT>(value); }
103 template<typename LastRefreshTimeT = Aws::Utils::DateTime>
104 Insight& WithLastRefreshTime(LastRefreshTimeT&& value) { SetLastRefreshTime(std::forward<LastRefreshTimeT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetLastTransitionTime() const { return m_lastTransitionTime; }
112 inline bool LastTransitionTimeHasBeenSet() const { return m_lastTransitionTimeHasBeenSet; }
113 template<typename LastTransitionTimeT = Aws::Utils::DateTime>
114 void SetLastTransitionTime(LastTransitionTimeT&& value) { m_lastTransitionTimeHasBeenSet = true; m_lastTransitionTime = std::forward<LastTransitionTimeT>(value); }
115 template<typename LastTransitionTimeT = Aws::Utils::DateTime>
116 Insight& WithLastTransitionTime(LastTransitionTimeT&& value) { SetLastTransitionTime(std::forward<LastTransitionTimeT>(value)); return *this;}
118
120
124 inline const Aws::String& GetDescription() const { return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 template<typename DescriptionT = Aws::String>
127 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
128 template<typename DescriptionT = Aws::String>
129 Insight& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
131
133
136 inline const InsightStatus& GetInsightStatus() const { return m_insightStatus; }
137 inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; }
138 template<typename InsightStatusT = InsightStatus>
139 void SetInsightStatus(InsightStatusT&& value) { m_insightStatusHasBeenSet = true; m_insightStatus = std::forward<InsightStatusT>(value); }
140 template<typename InsightStatusT = InsightStatus>
141 Insight& WithInsightStatus(InsightStatusT&& value) { SetInsightStatus(std::forward<InsightStatusT>(value)); return *this;}
143
145
148 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
149 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
150 template<typename RecommendationT = Aws::String>
151 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
152 template<typename RecommendationT = Aws::String>
153 Insight& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
155
157
160 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalInfo() const { return m_additionalInfo; }
161 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
162 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::String>>
163 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
164 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::String>>
165 Insight& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
166 template<typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::String>
167 Insight& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
168 m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value)); return *this;
169 }
171
173
176 inline const Aws::Vector<InsightResourceDetail>& GetResources() const { return m_resources; }
177 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
178 template<typename ResourcesT = Aws::Vector<InsightResourceDetail>>
179 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
180 template<typename ResourcesT = Aws::Vector<InsightResourceDetail>>
181 Insight& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
182 template<typename ResourcesT = InsightResourceDetail>
183 Insight& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
185
187
192 inline const InsightCategorySpecificSummary& GetCategorySpecificSummary() const { return m_categorySpecificSummary; }
193 inline bool CategorySpecificSummaryHasBeenSet() const { return m_categorySpecificSummaryHasBeenSet; }
194 template<typename CategorySpecificSummaryT = InsightCategorySpecificSummary>
195 void SetCategorySpecificSummary(CategorySpecificSummaryT&& value) { m_categorySpecificSummaryHasBeenSet = true; m_categorySpecificSummary = std::forward<CategorySpecificSummaryT>(value); }
196 template<typename CategorySpecificSummaryT = InsightCategorySpecificSummary>
197 Insight& WithCategorySpecificSummary(CategorySpecificSummaryT&& value) { SetCategorySpecificSummary(std::forward<CategorySpecificSummaryT>(value)); return *this;}
199 private:
200
201 Aws::String m_id;
202 bool m_idHasBeenSet = false;
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Category m_category{Category::NOT_SET};
208 bool m_categoryHasBeenSet = false;
209
210 Aws::String m_kubernetesVersion;
211 bool m_kubernetesVersionHasBeenSet = false;
212
213 Aws::Utils::DateTime m_lastRefreshTime{};
214 bool m_lastRefreshTimeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_lastTransitionTime{};
217 bool m_lastTransitionTimeHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 InsightStatus m_insightStatus;
223 bool m_insightStatusHasBeenSet = false;
224
225 Aws::String m_recommendation;
226 bool m_recommendationHasBeenSet = false;
227
228 Aws::Map<Aws::String, Aws::String> m_additionalInfo;
229 bool m_additionalInfoHasBeenSet = false;
230
232 bool m_resourcesHasBeenSet = false;
233
234 InsightCategorySpecificSummary m_categorySpecificSummary;
235 bool m_categorySpecificSummaryHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace EKS
240} // namespace Aws
const Aws::String & GetKubernetesVersion() const
Definition Insight.h:86
bool IdHasBeenSet() const
Definition Insight.h:53
Insight & WithLastRefreshTime(LastRefreshTimeT &&value)
Definition Insight.h:104
bool KubernetesVersionHasBeenSet() const
Definition Insight.h:87
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastTransitionTimeHasBeenSet() const
Definition Insight.h:112
bool AdditionalInfoHasBeenSet() const
Definition Insight.h:161
Insight & WithName(NameT &&value)
Definition Insight.h:69
Insight & WithDescription(DescriptionT &&value)
Definition Insight.h:129
void SetName(NameT &&value)
Definition Insight.h:67
const InsightCategorySpecificSummary & GetCategorySpecificSummary() const
Definition Insight.h:192
void SetInsightStatus(InsightStatusT &&value)
Definition Insight.h:139
void SetKubernetesVersion(KubernetesVersionT &&value)
Definition Insight.h:89
const Aws::Utils::DateTime & GetLastTransitionTime() const
Definition Insight.h:111
void SetResources(ResourcesT &&value)
Definition Insight.h:179
Insight & WithId(IdT &&value)
Definition Insight.h:57
AWS_EKS_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
Category GetCategory() const
Definition Insight.h:76
bool LastRefreshTimeHasBeenSet() const
Definition Insight.h:100
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:160
AWS_EKS_API Insight(Aws::Utils::Json::JsonView jsonValue)
Insight & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
Definition Insight.h:167
void SetLastTransitionTime(LastTransitionTimeT &&value)
Definition Insight.h:114
Insight & WithCategory(Category value)
Definition Insight.h:79
void SetLastRefreshTime(LastRefreshTimeT &&value)
Definition Insight.h:102
const Aws::Utils::DateTime & GetLastRefreshTime() const
Definition Insight.h:99
void SetCategorySpecificSummary(CategorySpecificSummaryT &&value)
Definition Insight.h:195
bool ResourcesHasBeenSet() const
Definition Insight.h:177
void SetCategory(Category value)
Definition Insight.h:78
const Aws::String & GetDescription() const
Definition Insight.h:124
bool DescriptionHasBeenSet() const
Definition Insight.h:125
Insight & WithKubernetesVersion(KubernetesVersionT &&value)
Definition Insight.h:91
Insight & AddResources(ResourcesT &&value)
Definition Insight.h:183
const Aws::String & GetId() const
Definition Insight.h:52
Insight & WithResources(ResourcesT &&value)
Definition Insight.h:181
bool CategorySpecificSummaryHasBeenSet() const
Definition Insight.h:193
bool InsightStatusHasBeenSet() const
Definition Insight.h:137
void SetId(IdT &&value)
Definition Insight.h:55
void SetRecommendation(RecommendationT &&value)
Definition Insight.h:151
Insight & WithCategorySpecificSummary(CategorySpecificSummaryT &&value)
Definition Insight.h:197
const Aws::Vector< InsightResourceDetail > & GetResources() const
Definition Insight.h:176
void SetAdditionalInfo(AdditionalInfoT &&value)
Definition Insight.h:163
Insight & WithRecommendation(RecommendationT &&value)
Definition Insight.h:153
Insight & WithInsightStatus(InsightStatusT &&value)
Definition Insight.h:141
Insight & WithLastTransitionTime(LastTransitionTimeT &&value)
Definition Insight.h:116
bool RecommendationHasBeenSet() const
Definition Insight.h:149
const Aws::String & GetRecommendation() const
Definition Insight.h:148
void SetDescription(DescriptionT &&value)
Definition Insight.h:127
Insight & WithAdditionalInfo(AdditionalInfoT &&value)
Definition Insight.h:165
bool CategoryHasBeenSet() const
Definition Insight.h:77
const InsightStatus & GetInsightStatus() const
Definition Insight.h:136
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