AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
RecommendationSummary.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/trustedadvisor/TrustedAdvisor_EXPORTS.h>
11#include <aws/trustedadvisor/model/RecommendationLifecycleStage.h>
12#include <aws/trustedadvisor/model/RecommendationPillar.h>
13#include <aws/trustedadvisor/model/RecommendationPillarSpecificAggregates.h>
14#include <aws/trustedadvisor/model/RecommendationResourcesAggregates.h>
15#include <aws/trustedadvisor/model/RecommendationSource.h>
16#include <aws/trustedadvisor/model/RecommendationStatus.h>
17#include <aws/trustedadvisor/model/RecommendationType.h>
18#include <aws/trustedadvisor/model/StatusReason.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace TrustedAdvisor {
30namespace Model {
31
38 public:
39 AWS_TRUSTEDADVISOR_API RecommendationSummary() = default;
40 AWS_TRUSTEDADVISOR_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template <typename IdT = Aws::String>
51 void SetId(IdT&& value) {
52 m_idHasBeenSet = true;
53 m_id = std::forward<IdT>(value);
54 }
55 template <typename IdT = Aws::String>
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
67 inline RecommendationType GetType() const { return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(RecommendationType value) {
70 m_typeHasBeenSet = true;
71 m_type = value;
72 }
74 SetType(value);
75 return *this;
76 }
78
80
83 inline const Aws::String& GetCheckArn() const { return m_checkArn; }
84 inline bool CheckArnHasBeenSet() const { return m_checkArnHasBeenSet; }
85 template <typename CheckArnT = Aws::String>
86 void SetCheckArn(CheckArnT&& value) {
87 m_checkArnHasBeenSet = true;
88 m_checkArn = std::forward<CheckArnT>(value);
89 }
90 template <typename CheckArnT = Aws::String>
91 RecommendationSummary& WithCheckArn(CheckArnT&& value) {
92 SetCheckArn(std::forward<CheckArnT>(value));
93 return *this;
94 }
96
98
101 inline RecommendationStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(RecommendationStatus value) {
104 m_statusHasBeenSet = true;
105 m_status = value;
106 }
108 SetStatus(value);
109 return *this;
110 }
112
114
117 inline RecommendationLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
118 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
120 m_lifecycleStageHasBeenSet = true;
121 m_lifecycleStage = value;
122 }
128
130
133 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
134 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
135 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
136 void SetPillars(PillarsT&& value) {
137 m_pillarsHasBeenSet = true;
138 m_pillars = std::forward<PillarsT>(value);
139 }
140 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
142 SetPillars(std::forward<PillarsT>(value));
143 return *this;
144 }
146 m_pillarsHasBeenSet = true;
147 m_pillars.push_back(value);
148 return *this;
149 }
151
153
156 inline RecommendationSource GetSource() const { return m_source; }
157 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
158 inline void SetSource(RecommendationSource value) {
159 m_sourceHasBeenSet = true;
160 m_source = value;
161 }
163 SetSource(value);
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
173 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
174 template <typename AwsServicesT = Aws::Vector<Aws::String>>
175 void SetAwsServices(AwsServicesT&& value) {
176 m_awsServicesHasBeenSet = true;
177 m_awsServices = std::forward<AwsServicesT>(value);
178 }
179 template <typename AwsServicesT = Aws::Vector<Aws::String>>
180 RecommendationSummary& WithAwsServices(AwsServicesT&& value) {
181 SetAwsServices(std::forward<AwsServicesT>(value));
182 return *this;
183 }
184 template <typename AwsServicesT = Aws::String>
185 RecommendationSummary& AddAwsServices(AwsServicesT&& value) {
186 m_awsServicesHasBeenSet = true;
187 m_awsServices.emplace_back(std::forward<AwsServicesT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetName() const { return m_name; }
197 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
198 template <typename NameT = Aws::String>
199 void SetName(NameT&& value) {
200 m_nameHasBeenSet = true;
201 m_name = std::forward<NameT>(value);
202 }
203 template <typename NameT = Aws::String>
205 SetName(std::forward<NameT>(value));
206 return *this;
207 }
209
211
214 inline const RecommendationResourcesAggregates& GetResourcesAggregates() const { return m_resourcesAggregates; }
215 inline bool ResourcesAggregatesHasBeenSet() const { return m_resourcesAggregatesHasBeenSet; }
216 template <typename ResourcesAggregatesT = RecommendationResourcesAggregates>
217 void SetResourcesAggregates(ResourcesAggregatesT&& value) {
218 m_resourcesAggregatesHasBeenSet = true;
219 m_resourcesAggregates = std::forward<ResourcesAggregatesT>(value);
220 }
221 template <typename ResourcesAggregatesT = RecommendationResourcesAggregates>
222 RecommendationSummary& WithResourcesAggregates(ResourcesAggregatesT&& value) {
223 SetResourcesAggregates(std::forward<ResourcesAggregatesT>(value));
224 return *this;
225 }
227
229
232 inline const RecommendationPillarSpecificAggregates& GetPillarSpecificAggregates() const { return m_pillarSpecificAggregates; }
233 inline bool PillarSpecificAggregatesHasBeenSet() const { return m_pillarSpecificAggregatesHasBeenSet; }
234 template <typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
235 void SetPillarSpecificAggregates(PillarSpecificAggregatesT&& value) {
236 m_pillarSpecificAggregatesHasBeenSet = true;
237 m_pillarSpecificAggregates = std::forward<PillarSpecificAggregatesT>(value);
238 }
239 template <typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
240 RecommendationSummary& WithPillarSpecificAggregates(PillarSpecificAggregatesT&& value) {
241 SetPillarSpecificAggregates(std::forward<PillarSpecificAggregatesT>(value));
242 return *this;
243 }
245
247
251 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
252 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
253 template <typename CreatedAtT = Aws::Utils::DateTime>
254 void SetCreatedAt(CreatedAtT&& value) {
255 m_createdAtHasBeenSet = true;
256 m_createdAt = std::forward<CreatedAtT>(value);
257 }
258 template <typename CreatedAtT = Aws::Utils::DateTime>
260 SetCreatedAt(std::forward<CreatedAtT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
270 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
271 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
272 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
273 m_lastUpdatedAtHasBeenSet = true;
274 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
275 }
276 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
277 RecommendationSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
278 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetArn() const { return m_arn; }
288 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
289 template <typename ArnT = Aws::String>
290 void SetArn(ArnT&& value) {
291 m_arnHasBeenSet = true;
292 m_arn = std::forward<ArnT>(value);
293 }
294 template <typename ArnT = Aws::String>
296 SetArn(std::forward<ArnT>(value));
297 return *this;
298 }
300
302
306 inline StatusReason GetStatusReason() const { return m_statusReason; }
307 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
308 inline void SetStatusReason(StatusReason value) {
309 m_statusReasonHasBeenSet = true;
310 m_statusReason = value;
311 }
313 SetStatusReason(value);
314 return *this;
315 }
317 private:
318 Aws::String m_id;
319
321
322 Aws::String m_checkArn;
323
325
327
329
331
332 Aws::Vector<Aws::String> m_awsServices;
333
334 Aws::String m_name;
335
336 RecommendationResourcesAggregates m_resourcesAggregates;
337
338 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
339
340 Aws::Utils::DateTime m_createdAt{};
341
342 Aws::Utils::DateTime m_lastUpdatedAt{};
343
344 Aws::String m_arn;
345
346 StatusReason m_statusReason{StatusReason::NOT_SET};
347 bool m_idHasBeenSet = false;
348 bool m_typeHasBeenSet = false;
349 bool m_checkArnHasBeenSet = false;
350 bool m_statusHasBeenSet = false;
351 bool m_lifecycleStageHasBeenSet = false;
352 bool m_pillarsHasBeenSet = false;
353 bool m_sourceHasBeenSet = false;
354 bool m_awsServicesHasBeenSet = false;
355 bool m_nameHasBeenSet = false;
356 bool m_resourcesAggregatesHasBeenSet = false;
357 bool m_pillarSpecificAggregatesHasBeenSet = false;
358 bool m_createdAtHasBeenSet = false;
359 bool m_lastUpdatedAtHasBeenSet = false;
360 bool m_arnHasBeenSet = false;
361 bool m_statusReasonHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace TrustedAdvisor
366} // namespace Aws
RecommendationSummary & WithResourcesAggregates(ResourcesAggregatesT &&value)
RecommendationSummary & WithPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
RecommendationSummary & AddAwsServices(AwsServicesT &&value)
RecommendationSummary & WithCheckArn(CheckArnT &&value)
void SetResourcesAggregates(ResourcesAggregatesT &&value)
AWS_TRUSTEDADVISOR_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
const RecommendationPillarSpecificAggregates & GetPillarSpecificAggregates() const
RecommendationSummary & WithCreatedAt(CreatedAtT &&value)
RecommendationSummary & WithAwsServices(AwsServicesT &&value)
RecommendationSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
RecommendationSummary & WithType(RecommendationType value)
AWS_TRUSTEDADVISOR_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithStatus(RecommendationStatus value)
const Aws::Vector< Aws::String > & GetAwsServices() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
RecommendationSummary & AddPillars(RecommendationPillar value)
RecommendationLifecycleStage GetLifecycleStage() const
void SetPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
RecommendationSummary & WithPillars(PillarsT &&value)
RecommendationSummary & WithLifecycleStage(RecommendationLifecycleStage value)
AWS_TRUSTEDADVISOR_API RecommendationSummary()=default
const RecommendationResourcesAggregates & GetResourcesAggregates() const
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationSummary & WithStatusReason(StatusReason value)
const Aws::Vector< RecommendationPillar > & GetPillars() const
RecommendationSummary & WithName(NameT &&value)
RecommendationSummary & WithSource(RecommendationSource value)
void SetLifecycleStage(RecommendationLifecycleStage value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue