AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OrganizationRecommendation.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/UpdateRecommendationLifecycleStageReasonCode.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
39 public:
40 AWS_TRUSTEDADVISOR_API OrganizationRecommendation() = default;
41 AWS_TRUSTEDADVISOR_API OrganizationRecommendation(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>
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>
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 }
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>>
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>>
182 SetAwsServices(std::forward<AwsServicesT>(value));
183 return *this;
184 }
185 template <typename AwsServicesT = Aws::String>
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>
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>
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 OrganizationRecommendation& 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>
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>
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>
297 SetArn(std::forward<ArnT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetDescription() const { return m_description; }
307 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
308 template <typename DescriptionT = Aws::String>
309 void SetDescription(DescriptionT&& value) {
310 m_descriptionHasBeenSet = true;
311 m_description = std::forward<DescriptionT>(value);
312 }
313 template <typename DescriptionT = Aws::String>
315 SetDescription(std::forward<DescriptionT>(value));
316 return *this;
317 }
319
321
324 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
325 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
326 template <typename CreatedByT = Aws::String>
327 void SetCreatedBy(CreatedByT&& value) {
328 m_createdByHasBeenSet = true;
329 m_createdBy = std::forward<CreatedByT>(value);
330 }
331 template <typename CreatedByT = Aws::String>
333 SetCreatedBy(std::forward<CreatedByT>(value));
334 return *this;
335 }
337
339
345 inline const Aws::String& GetUpdatedOnBehalfOf() const { return m_updatedOnBehalfOf; }
346 inline bool UpdatedOnBehalfOfHasBeenSet() const { return m_updatedOnBehalfOfHasBeenSet; }
347 template <typename UpdatedOnBehalfOfT = Aws::String>
348 void SetUpdatedOnBehalfOf(UpdatedOnBehalfOfT&& value) {
349 m_updatedOnBehalfOfHasBeenSet = true;
350 m_updatedOnBehalfOf = std::forward<UpdatedOnBehalfOfT>(value);
351 }
352 template <typename UpdatedOnBehalfOfT = Aws::String>
354 SetUpdatedOnBehalfOf(std::forward<UpdatedOnBehalfOfT>(value));
355 return *this;
356 }
358
360
366 inline const Aws::String& GetUpdatedOnBehalfOfJobTitle() const { return m_updatedOnBehalfOfJobTitle; }
367 inline bool UpdatedOnBehalfOfJobTitleHasBeenSet() const { return m_updatedOnBehalfOfJobTitleHasBeenSet; }
368 template <typename UpdatedOnBehalfOfJobTitleT = Aws::String>
369 void SetUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) {
370 m_updatedOnBehalfOfJobTitleHasBeenSet = true;
371 m_updatedOnBehalfOfJobTitle = std::forward<UpdatedOnBehalfOfJobTitleT>(value);
372 }
373 template <typename UpdatedOnBehalfOfJobTitleT = Aws::String>
374 OrganizationRecommendation& WithUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) {
375 SetUpdatedOnBehalfOfJobTitle(std::forward<UpdatedOnBehalfOfJobTitleT>(value));
376 return *this;
377 }
379
381
384 inline const Aws::String& GetUpdateReason() const { return m_updateReason; }
385 inline bool UpdateReasonHasBeenSet() const { return m_updateReasonHasBeenSet; }
386 template <typename UpdateReasonT = Aws::String>
387 void SetUpdateReason(UpdateReasonT&& value) {
388 m_updateReasonHasBeenSet = true;
389 m_updateReason = std::forward<UpdateReasonT>(value);
390 }
391 template <typename UpdateReasonT = Aws::String>
393 SetUpdateReason(std::forward<UpdateReasonT>(value));
394 return *this;
395 }
397
399
402 inline UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const { return m_updateReasonCode; }
403 inline bool UpdateReasonCodeHasBeenSet() const { return m_updateReasonCodeHasBeenSet; }
405 m_updateReasonCodeHasBeenSet = true;
406 m_updateReasonCode = value;
407 }
413
415
418 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
419 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
420 template <typename ResolvedAtT = Aws::Utils::DateTime>
421 void SetResolvedAt(ResolvedAtT&& value) {
422 m_resolvedAtHasBeenSet = true;
423 m_resolvedAt = std::forward<ResolvedAtT>(value);
424 }
425 template <typename ResolvedAtT = Aws::Utils::DateTime>
427 SetResolvedAt(std::forward<ResolvedAtT>(value));
428 return *this;
429 }
431 private:
432 Aws::String m_id;
433
435
436 Aws::String m_checkArn;
437
439
441
443
445
446 Aws::Vector<Aws::String> m_awsServices;
447
448 Aws::String m_name;
449
450 RecommendationResourcesAggregates m_resourcesAggregates;
451
452 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
453
454 Aws::Utils::DateTime m_createdAt{};
455
456 Aws::Utils::DateTime m_lastUpdatedAt{};
457
458 Aws::String m_arn;
459
460 Aws::String m_description;
461
462 Aws::String m_createdBy;
463
464 Aws::String m_updatedOnBehalfOf;
465
466 Aws::String m_updatedOnBehalfOfJobTitle;
467
468 Aws::String m_updateReason;
469
471
472 Aws::Utils::DateTime m_resolvedAt{};
473 bool m_idHasBeenSet = false;
474 bool m_typeHasBeenSet = false;
475 bool m_checkArnHasBeenSet = false;
476 bool m_statusHasBeenSet = false;
477 bool m_lifecycleStageHasBeenSet = false;
478 bool m_pillarsHasBeenSet = false;
479 bool m_sourceHasBeenSet = false;
480 bool m_awsServicesHasBeenSet = false;
481 bool m_nameHasBeenSet = false;
482 bool m_resourcesAggregatesHasBeenSet = false;
483 bool m_pillarSpecificAggregatesHasBeenSet = false;
484 bool m_createdAtHasBeenSet = false;
485 bool m_lastUpdatedAtHasBeenSet = false;
486 bool m_arnHasBeenSet = false;
487 bool m_descriptionHasBeenSet = false;
488 bool m_createdByHasBeenSet = false;
489 bool m_updatedOnBehalfOfHasBeenSet = false;
490 bool m_updatedOnBehalfOfJobTitleHasBeenSet = false;
491 bool m_updateReasonHasBeenSet = false;
492 bool m_updateReasonCodeHasBeenSet = false;
493 bool m_resolvedAtHasBeenSet = false;
494};
495
496} // namespace Model
497} // namespace TrustedAdvisor
498} // namespace Aws
const RecommendationPillarSpecificAggregates & GetPillarSpecificAggregates() const
OrganizationRecommendation & AddPillars(RecommendationPillar value)
void SetUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT &&value)
OrganizationRecommendation & WithCreatedBy(CreatedByT &&value)
OrganizationRecommendation & WithPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
OrganizationRecommendation & WithUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT &&value)
AWS_TRUSTEDADVISOR_API OrganizationRecommendation()=default
OrganizationRecommendation & WithResourcesAggregates(ResourcesAggregatesT &&value)
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationRecommendation & WithPillars(PillarsT &&value)
OrganizationRecommendation & AddAwsServices(AwsServicesT &&value)
OrganizationRecommendation & WithUpdateReason(UpdateReasonT &&value)
UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const
void SetPillarSpecificAggregates(PillarSpecificAggregatesT &&value)
OrganizationRecommendation & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_TRUSTEDADVISOR_API OrganizationRecommendation(Aws::Utils::Json::JsonView jsonValue)
OrganizationRecommendation & WithResolvedAt(ResolvedAtT &&value)
OrganizationRecommendation & WithUpdatedOnBehalfOf(UpdatedOnBehalfOfT &&value)
AWS_TRUSTEDADVISOR_API OrganizationRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationRecommendation & WithType(RecommendationType value)
OrganizationRecommendation & WithLifecycleStage(RecommendationLifecycleStage value)
void SetUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
const RecommendationResourcesAggregates & GetResourcesAggregates() const
OrganizationRecommendation & WithDescription(DescriptionT &&value)
OrganizationRecommendation & WithUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
const Aws::Vector< RecommendationPillar > & GetPillars() const
OrganizationRecommendation & WithSource(RecommendationSource value)
OrganizationRecommendation & WithStatus(RecommendationStatus value)
OrganizationRecommendation & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetAwsServices() const
OrganizationRecommendation & WithCheckArn(CheckArnT &&value)
OrganizationRecommendation & WithAwsServices(AwsServicesT &&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