AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Recommendation.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#include <aws/trustedadvisor/model/UpdateRecommendationLifecycleStageReasonCode.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace TrustedAdvisor {
31namespace Model {
32
39 public:
40 AWS_TRUSTEDADVISOR_API Recommendation() = default;
41 AWS_TRUSTEDADVISOR_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRUSTEDADVISOR_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template <typename IdT = Aws::String>
52 void SetId(IdT&& value) {
53 m_idHasBeenSet = true;
54 m_id = std::forward<IdT>(value);
55 }
56 template <typename IdT = Aws::String>
57 Recommendation& WithId(IdT&& value) {
58 SetId(std::forward<IdT>(value));
59 return *this;
60 }
62
64
68 inline RecommendationType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(RecommendationType value) {
71 m_typeHasBeenSet = true;
72 m_type = value;
73 }
75 SetType(value);
76 return *this;
77 }
79
81
84 inline const Aws::String& GetCheckArn() const { return m_checkArn; }
85 inline bool CheckArnHasBeenSet() const { return m_checkArnHasBeenSet; }
86 template <typename CheckArnT = Aws::String>
87 void SetCheckArn(CheckArnT&& value) {
88 m_checkArnHasBeenSet = true;
89 m_checkArn = std::forward<CheckArnT>(value);
90 }
91 template <typename CheckArnT = Aws::String>
92 Recommendation& WithCheckArn(CheckArnT&& value) {
93 SetCheckArn(std::forward<CheckArnT>(value));
94 return *this;
95 }
97
99
102 inline RecommendationStatus GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(RecommendationStatus value) {
105 m_statusHasBeenSet = true;
106 m_status = value;
107 }
109 SetStatus(value);
110 return *this;
111 }
113
115
118 inline RecommendationLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
119 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
121 m_lifecycleStageHasBeenSet = true;
122 m_lifecycleStage = value;
123 }
125 SetLifecycleStage(value);
126 return *this;
127 }
129
131
134 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
135 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
136 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
137 void SetPillars(PillarsT&& value) {
138 m_pillarsHasBeenSet = true;
139 m_pillars = std::forward<PillarsT>(value);
140 }
141 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
142 Recommendation& WithPillars(PillarsT&& value) {
143 SetPillars(std::forward<PillarsT>(value));
144 return *this;
145 }
147 m_pillarsHasBeenSet = true;
148 m_pillars.push_back(value);
149 return *this;
150 }
152
154
157 inline RecommendationSource GetSource() const { return m_source; }
158 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
159 inline void SetSource(RecommendationSource value) {
160 m_sourceHasBeenSet = true;
161 m_source = value;
162 }
164 SetSource(value);
165 return *this;
166 }
168
170
173 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
174 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
175 template <typename AwsServicesT = Aws::Vector<Aws::String>>
176 void SetAwsServices(AwsServicesT&& value) {
177 m_awsServicesHasBeenSet = true;
178 m_awsServices = std::forward<AwsServicesT>(value);
179 }
180 template <typename AwsServicesT = Aws::Vector<Aws::String>>
181 Recommendation& WithAwsServices(AwsServicesT&& value) {
182 SetAwsServices(std::forward<AwsServicesT>(value));
183 return *this;
184 }
185 template <typename AwsServicesT = Aws::String>
186 Recommendation& AddAwsServices(AwsServicesT&& value) {
187 m_awsServicesHasBeenSet = true;
188 m_awsServices.emplace_back(std::forward<AwsServicesT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetName() const { return m_name; }
198 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
199 template <typename NameT = Aws::String>
200 void SetName(NameT&& value) {
201 m_nameHasBeenSet = true;
202 m_name = std::forward<NameT>(value);
203 }
204 template <typename NameT = Aws::String>
205 Recommendation& WithName(NameT&& value) {
206 SetName(std::forward<NameT>(value));
207 return *this;
208 }
210
212
215 inline const RecommendationResourcesAggregates& GetResourcesAggregates() const { return m_resourcesAggregates; }
216 inline bool ResourcesAggregatesHasBeenSet() const { return m_resourcesAggregatesHasBeenSet; }
217 template <typename ResourcesAggregatesT = RecommendationResourcesAggregates>
218 void SetResourcesAggregates(ResourcesAggregatesT&& value) {
219 m_resourcesAggregatesHasBeenSet = true;
220 m_resourcesAggregates = std::forward<ResourcesAggregatesT>(value);
221 }
222 template <typename ResourcesAggregatesT = RecommendationResourcesAggregates>
223 Recommendation& WithResourcesAggregates(ResourcesAggregatesT&& value) {
224 SetResourcesAggregates(std::forward<ResourcesAggregatesT>(value));
225 return *this;
226 }
228
230
233 inline const RecommendationPillarSpecificAggregates& GetPillarSpecificAggregates() const { return m_pillarSpecificAggregates; }
234 inline bool PillarSpecificAggregatesHasBeenSet() const { return m_pillarSpecificAggregatesHasBeenSet; }
235 template <typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
236 void SetPillarSpecificAggregates(PillarSpecificAggregatesT&& value) {
237 m_pillarSpecificAggregatesHasBeenSet = true;
238 m_pillarSpecificAggregates = std::forward<PillarSpecificAggregatesT>(value);
239 }
240 template <typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
241 Recommendation& WithPillarSpecificAggregates(PillarSpecificAggregatesT&& value) {
242 SetPillarSpecificAggregates(std::forward<PillarSpecificAggregatesT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
253 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
254 template <typename CreatedAtT = Aws::Utils::DateTime>
255 void SetCreatedAt(CreatedAtT&& value) {
256 m_createdAtHasBeenSet = true;
257 m_createdAt = std::forward<CreatedAtT>(value);
258 }
259 template <typename CreatedAtT = Aws::Utils::DateTime>
260 Recommendation& WithCreatedAt(CreatedAtT&& value) {
261 SetCreatedAt(std::forward<CreatedAtT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
271 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
272 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
273 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
274 m_lastUpdatedAtHasBeenSet = true;
275 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
276 }
277 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
278 Recommendation& WithLastUpdatedAt(LastUpdatedAtT&& value) {
279 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetArn() const { return m_arn; }
289 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
290 template <typename ArnT = Aws::String>
291 void SetArn(ArnT&& value) {
292 m_arnHasBeenSet = true;
293 m_arn = std::forward<ArnT>(value);
294 }
295 template <typename ArnT = Aws::String>
296 Recommendation& WithArn(ArnT&& value) {
297 SetArn(std::forward<ArnT>(value));
298 return *this;
299 }
301
303
307 inline StatusReason GetStatusReason() const { return m_statusReason; }
308 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
309 inline void SetStatusReason(StatusReason value) {
310 m_statusReasonHasBeenSet = true;
311 m_statusReason = value;
312 }
314 SetStatusReason(value);
315 return *this;
316 }
318
320
323 inline const Aws::String& GetDescription() const { return m_description; }
324 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
325 template <typename DescriptionT = Aws::String>
326 void SetDescription(DescriptionT&& value) {
327 m_descriptionHasBeenSet = true;
328 m_description = std::forward<DescriptionT>(value);
329 }
330 template <typename DescriptionT = Aws::String>
331 Recommendation& WithDescription(DescriptionT&& value) {
332 SetDescription(std::forward<DescriptionT>(value));
333 return *this;
334 }
336
338
341 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
342 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
343 template <typename CreatedByT = Aws::String>
344 void SetCreatedBy(CreatedByT&& value) {
345 m_createdByHasBeenSet = true;
346 m_createdBy = std::forward<CreatedByT>(value);
347 }
348 template <typename CreatedByT = Aws::String>
349 Recommendation& WithCreatedBy(CreatedByT&& value) {
350 SetCreatedBy(std::forward<CreatedByT>(value));
351 return *this;
352 }
354
356
362 inline const Aws::String& GetUpdatedOnBehalfOf() const { return m_updatedOnBehalfOf; }
363 inline bool UpdatedOnBehalfOfHasBeenSet() const { return m_updatedOnBehalfOfHasBeenSet; }
364 template <typename UpdatedOnBehalfOfT = Aws::String>
365 void SetUpdatedOnBehalfOf(UpdatedOnBehalfOfT&& value) {
366 m_updatedOnBehalfOfHasBeenSet = true;
367 m_updatedOnBehalfOf = std::forward<UpdatedOnBehalfOfT>(value);
368 }
369 template <typename UpdatedOnBehalfOfT = Aws::String>
370 Recommendation& WithUpdatedOnBehalfOf(UpdatedOnBehalfOfT&& value) {
371 SetUpdatedOnBehalfOf(std::forward<UpdatedOnBehalfOfT>(value));
372 return *this;
373 }
375
377
383 inline const Aws::String& GetUpdatedOnBehalfOfJobTitle() const { return m_updatedOnBehalfOfJobTitle; }
384 inline bool UpdatedOnBehalfOfJobTitleHasBeenSet() const { return m_updatedOnBehalfOfJobTitleHasBeenSet; }
385 template <typename UpdatedOnBehalfOfJobTitleT = Aws::String>
386 void SetUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) {
387 m_updatedOnBehalfOfJobTitleHasBeenSet = true;
388 m_updatedOnBehalfOfJobTitle = std::forward<UpdatedOnBehalfOfJobTitleT>(value);
389 }
390 template <typename UpdatedOnBehalfOfJobTitleT = Aws::String>
391 Recommendation& WithUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) {
392 SetUpdatedOnBehalfOfJobTitle(std::forward<UpdatedOnBehalfOfJobTitleT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::String& GetUpdateReason() const { return m_updateReason; }
402 inline bool UpdateReasonHasBeenSet() const { return m_updateReasonHasBeenSet; }
403 template <typename UpdateReasonT = Aws::String>
404 void SetUpdateReason(UpdateReasonT&& value) {
405 m_updateReasonHasBeenSet = true;
406 m_updateReason = std::forward<UpdateReasonT>(value);
407 }
408 template <typename UpdateReasonT = Aws::String>
409 Recommendation& WithUpdateReason(UpdateReasonT&& value) {
410 SetUpdateReason(std::forward<UpdateReasonT>(value));
411 return *this;
412 }
414
416
419 inline UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const { return m_updateReasonCode; }
420 inline bool UpdateReasonCodeHasBeenSet() const { return m_updateReasonCodeHasBeenSet; }
422 m_updateReasonCodeHasBeenSet = true;
423 m_updateReasonCode = value;
424 }
430
432
435 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
436 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
437 template <typename ResolvedAtT = Aws::Utils::DateTime>
438 void SetResolvedAt(ResolvedAtT&& value) {
439 m_resolvedAtHasBeenSet = true;
440 m_resolvedAt = std::forward<ResolvedAtT>(value);
441 }
442 template <typename ResolvedAtT = Aws::Utils::DateTime>
443 Recommendation& WithResolvedAt(ResolvedAtT&& value) {
444 SetResolvedAt(std::forward<ResolvedAtT>(value));
445 return *this;
446 }
448 private:
449 Aws::String m_id;
450
452
453 Aws::String m_checkArn;
454
456
458
460
462
463 Aws::Vector<Aws::String> m_awsServices;
464
465 Aws::String m_name;
466
467 RecommendationResourcesAggregates m_resourcesAggregates;
468
469 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
470
471 Aws::Utils::DateTime m_createdAt{};
472
473 Aws::Utils::DateTime m_lastUpdatedAt{};
474
475 Aws::String m_arn;
476
477 StatusReason m_statusReason{StatusReason::NOT_SET};
478
479 Aws::String m_description;
480
481 Aws::String m_createdBy;
482
483 Aws::String m_updatedOnBehalfOf;
484
485 Aws::String m_updatedOnBehalfOfJobTitle;
486
487 Aws::String m_updateReason;
488
490
491 Aws::Utils::DateTime m_resolvedAt{};
492 bool m_idHasBeenSet = false;
493 bool m_typeHasBeenSet = false;
494 bool m_checkArnHasBeenSet = false;
495 bool m_statusHasBeenSet = false;
496 bool m_lifecycleStageHasBeenSet = false;
497 bool m_pillarsHasBeenSet = false;
498 bool m_sourceHasBeenSet = false;
499 bool m_awsServicesHasBeenSet = false;
500 bool m_nameHasBeenSet = false;
501 bool m_resourcesAggregatesHasBeenSet = false;
502 bool m_pillarSpecificAggregatesHasBeenSet = false;
503 bool m_createdAtHasBeenSet = false;
504 bool m_lastUpdatedAtHasBeenSet = false;
505 bool m_arnHasBeenSet = false;
506 bool m_statusReasonHasBeenSet = false;
507 bool m_descriptionHasBeenSet = false;
508 bool m_createdByHasBeenSet = false;
509 bool m_updatedOnBehalfOfHasBeenSet = false;
510 bool m_updatedOnBehalfOfJobTitleHasBeenSet = false;
511 bool m_updateReasonHasBeenSet = false;
512 bool m_updateReasonCodeHasBeenSet = false;
513 bool m_resolvedAtHasBeenSet = false;
514};
515
516} // namespace Model
517} // namespace TrustedAdvisor
518} // namespace Aws
Recommendation & WithSource(RecommendationSource value)
Recommendation & WithStatus(RecommendationStatus value)
const Aws::Vector< Aws::String > & GetAwsServices() const
AWS_TRUSTEDADVISOR_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
const RecommendationResourcesAggregates & GetResourcesAggregates() const
void SetPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
Recommendation & WithLifecycleStage(RecommendationLifecycleStage value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Recommendation & WithUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT &&value)
AWS_TRUSTEDADVISOR_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationStatus GetStatus() const
Recommendation & WithCheckArn(CheckArnT &&value)
Recommendation & WithUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
RecommendationSource GetSource() const
const Aws::String & GetUpdateReason() const
void SetResourcesAggregates(ResourcesAggregatesT &&value)
void SetUpdateReason(UpdateReasonT &&value)
void SetDescription(DescriptionT &&value)
void SetType(RecommendationType value)
void SetLifecycleStage(RecommendationLifecycleStage value)
UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const
const Aws::String & GetUpdatedOnBehalfOfJobTitle() const
RecommendationLifecycleStage GetLifecycleStage() const
Recommendation & WithCreatedAt(CreatedAtT &&value)
Recommendation & WithPillars(PillarsT &&value)
const Aws::Utils::DateTime & GetResolvedAt() const
Recommendation & WithDescription(DescriptionT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(RecommendationStatus value)
const Aws::String & GetCheckArn() const
Recommendation & WithUpdateReason(UpdateReasonT &&value)
Recommendation & WithResolvedAt(ResolvedAtT &&value)
Recommendation & WithPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
Recommendation & WithId(IdT &&value)
Recommendation & WithName(NameT &&value)
Recommendation & WithUpdatedOnBehalfOf(UpdatedOnBehalfOfT &&value)
const RecommendationPillarSpecificAggregates & GetPillarSpecificAggregates() const
Recommendation & WithStatusReason(StatusReason value)
AWS_TRUSTEDADVISOR_API Recommendation()=default
void SetUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
const Aws::String & GetCreatedBy() const
Recommendation & WithType(RecommendationType value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< RecommendationPillar > & GetPillars() const
Recommendation & WithCreatedBy(CreatedByT &&value)
Recommendation & WithArn(ArnT &&value)
void SetAwsServices(AwsServicesT &&value)
Recommendation & WithAwsServices(AwsServicesT &&value)
void SetUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT &&value)
Recommendation & WithLastUpdatedAt(LastUpdatedAtT &&value)
Recommendation & WithResourcesAggregates(ResourcesAggregatesT &&value)
Recommendation & AddAwsServices(AwsServicesT &&value)
Recommendation & AddPillars(RecommendationPillar value)
const Aws::String & GetUpdatedOnBehalfOf() const
void SetSource(RecommendationSource value)
void SetUpdatedOnBehalfOf(UpdatedOnBehalfOfT &&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