AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
OrganizationRecommendation.h
1
6#pragma once
7#include <aws/trustedadvisor/TrustedAdvisor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/trustedadvisor/model/RecommendationLifecycleStage.h>
12#include <aws/trustedadvisor/model/RecommendationPillarSpecificAggregates.h>
13#include <aws/trustedadvisor/model/RecommendationResourcesAggregates.h>
14#include <aws/trustedadvisor/model/RecommendationSource.h>
15#include <aws/trustedadvisor/model/RecommendationStatus.h>
16#include <aws/trustedadvisor/model/RecommendationType.h>
17#include <aws/trustedadvisor/model/UpdateRecommendationLifecycleStageReasonCode.h>
18#include <aws/trustedadvisor/model/RecommendationPillar.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace TrustedAdvisor
32{
33namespace Model
34{
35
43 {
44 public:
45 AWS_TRUSTEDADVISOR_API OrganizationRecommendation() = default;
46 AWS_TRUSTEDADVISOR_API OrganizationRecommendation(Aws::Utils::Json::JsonView jsonValue);
48 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 template<typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
59 template<typename ArnT = Aws::String>
60 OrganizationRecommendation& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
68 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
69 template<typename AwsServicesT = Aws::Vector<Aws::String>>
70 void SetAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices = std::forward<AwsServicesT>(value); }
71 template<typename AwsServicesT = Aws::Vector<Aws::String>>
72 OrganizationRecommendation& WithAwsServices(AwsServicesT&& value) { SetAwsServices(std::forward<AwsServicesT>(value)); return *this;}
73 template<typename AwsServicesT = Aws::String>
74 OrganizationRecommendation& AddAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices.emplace_back(std::forward<AwsServicesT>(value)); return *this; }
76
78
81 inline const Aws::String& GetCheckArn() const { return m_checkArn; }
82 inline bool CheckArnHasBeenSet() const { return m_checkArnHasBeenSet; }
83 template<typename CheckArnT = Aws::String>
84 void SetCheckArn(CheckArnT&& value) { m_checkArnHasBeenSet = true; m_checkArn = std::forward<CheckArnT>(value); }
85 template<typename CheckArnT = Aws::String>
86 OrganizationRecommendation& WithCheckArn(CheckArnT&& value) { SetCheckArn(std::forward<CheckArnT>(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
95 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 OrganizationRecommendation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
101
103
106 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
107 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
108 template<typename CreatedByT = Aws::String>
109 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
110 template<typename CreatedByT = Aws::String>
111 OrganizationRecommendation& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template<typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
122 template<typename DescriptionT = Aws::String>
123 OrganizationRecommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
125
127
130 inline const Aws::String& GetId() const { return m_id; }
131 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
132 template<typename IdT = Aws::String>
133 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
134 template<typename IdT = Aws::String>
135 OrganizationRecommendation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
143 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
144 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
145 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
146 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
147 OrganizationRecommendation& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
149
151
154 inline RecommendationLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
155 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
156 inline void SetLifecycleStage(RecommendationLifecycleStage value) { m_lifecycleStageHasBeenSet = true; m_lifecycleStage = value; }
159
161
164 inline const Aws::String& GetName() const { return m_name; }
165 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
166 template<typename NameT = Aws::String>
167 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
168 template<typename NameT = Aws::String>
169 OrganizationRecommendation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
171
173
176 inline const RecommendationPillarSpecificAggregates& GetPillarSpecificAggregates() const { return m_pillarSpecificAggregates; }
177 inline bool PillarSpecificAggregatesHasBeenSet() const { return m_pillarSpecificAggregatesHasBeenSet; }
178 template<typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
179 void SetPillarSpecificAggregates(PillarSpecificAggregatesT&& value) { m_pillarSpecificAggregatesHasBeenSet = true; m_pillarSpecificAggregates = std::forward<PillarSpecificAggregatesT>(value); }
180 template<typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
181 OrganizationRecommendation& WithPillarSpecificAggregates(PillarSpecificAggregatesT&& value) { SetPillarSpecificAggregates(std::forward<PillarSpecificAggregatesT>(value)); return *this;}
183
185
188 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
189 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
190 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
191 void SetPillars(PillarsT&& value) { m_pillarsHasBeenSet = true; m_pillars = std::forward<PillarsT>(value); }
192 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
193 OrganizationRecommendation& WithPillars(PillarsT&& value) { SetPillars(std::forward<PillarsT>(value)); return *this;}
194 inline OrganizationRecommendation& AddPillars(RecommendationPillar value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; }
196
198
201 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
202 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
203 template<typename ResolvedAtT = Aws::Utils::DateTime>
204 void SetResolvedAt(ResolvedAtT&& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = std::forward<ResolvedAtT>(value); }
205 template<typename ResolvedAtT = Aws::Utils::DateTime>
206 OrganizationRecommendation& WithResolvedAt(ResolvedAtT&& value) { SetResolvedAt(std::forward<ResolvedAtT>(value)); return *this;}
208
210
213 inline const RecommendationResourcesAggregates& GetResourcesAggregates() const { return m_resourcesAggregates; }
214 inline bool ResourcesAggregatesHasBeenSet() const { return m_resourcesAggregatesHasBeenSet; }
215 template<typename ResourcesAggregatesT = RecommendationResourcesAggregates>
216 void SetResourcesAggregates(ResourcesAggregatesT&& value) { m_resourcesAggregatesHasBeenSet = true; m_resourcesAggregates = std::forward<ResourcesAggregatesT>(value); }
217 template<typename ResourcesAggregatesT = RecommendationResourcesAggregates>
218 OrganizationRecommendation& WithResourcesAggregates(ResourcesAggregatesT&& value) { SetResourcesAggregates(std::forward<ResourcesAggregatesT>(value)); return *this;}
220
222
225 inline RecommendationSource GetSource() const { return m_source; }
226 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
227 inline void SetSource(RecommendationSource value) { m_sourceHasBeenSet = true; m_source = value; }
230
232
235 inline RecommendationStatus GetStatus() const { return m_status; }
236 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
237 inline void SetStatus(RecommendationStatus value) { m_statusHasBeenSet = true; m_status = value; }
240
242
246 inline RecommendationType GetType() const { return m_type; }
247 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
248 inline void SetType(RecommendationType value) { m_typeHasBeenSet = true; m_type = value; }
249 inline OrganizationRecommendation& WithType(RecommendationType value) { SetType(value); return *this;}
251
253
256 inline const Aws::String& GetUpdateReason() const { return m_updateReason; }
257 inline bool UpdateReasonHasBeenSet() const { return m_updateReasonHasBeenSet; }
258 template<typename UpdateReasonT = Aws::String>
259 void SetUpdateReason(UpdateReasonT&& value) { m_updateReasonHasBeenSet = true; m_updateReason = std::forward<UpdateReasonT>(value); }
260 template<typename UpdateReasonT = Aws::String>
261 OrganizationRecommendation& WithUpdateReason(UpdateReasonT&& value) { SetUpdateReason(std::forward<UpdateReasonT>(value)); return *this;}
263
265
268 inline UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const { return m_updateReasonCode; }
269 inline bool UpdateReasonCodeHasBeenSet() const { return m_updateReasonCodeHasBeenSet; }
270 inline void SetUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value) { m_updateReasonCodeHasBeenSet = true; m_updateReasonCode = value; }
273
275
281 inline const Aws::String& GetUpdatedOnBehalfOf() const { return m_updatedOnBehalfOf; }
282 inline bool UpdatedOnBehalfOfHasBeenSet() const { return m_updatedOnBehalfOfHasBeenSet; }
283 template<typename UpdatedOnBehalfOfT = Aws::String>
284 void SetUpdatedOnBehalfOf(UpdatedOnBehalfOfT&& value) { m_updatedOnBehalfOfHasBeenSet = true; m_updatedOnBehalfOf = std::forward<UpdatedOnBehalfOfT>(value); }
285 template<typename UpdatedOnBehalfOfT = Aws::String>
286 OrganizationRecommendation& WithUpdatedOnBehalfOf(UpdatedOnBehalfOfT&& value) { SetUpdatedOnBehalfOf(std::forward<UpdatedOnBehalfOfT>(value)); return *this;}
288
290
296 inline const Aws::String& GetUpdatedOnBehalfOfJobTitle() const { return m_updatedOnBehalfOfJobTitle; }
297 inline bool UpdatedOnBehalfOfJobTitleHasBeenSet() const { return m_updatedOnBehalfOfJobTitleHasBeenSet; }
298 template<typename UpdatedOnBehalfOfJobTitleT = Aws::String>
299 void SetUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) { m_updatedOnBehalfOfJobTitleHasBeenSet = true; m_updatedOnBehalfOfJobTitle = std::forward<UpdatedOnBehalfOfJobTitleT>(value); }
300 template<typename UpdatedOnBehalfOfJobTitleT = Aws::String>
301 OrganizationRecommendation& WithUpdatedOnBehalfOfJobTitle(UpdatedOnBehalfOfJobTitleT&& value) { SetUpdatedOnBehalfOfJobTitle(std::forward<UpdatedOnBehalfOfJobTitleT>(value)); return *this;}
303 private:
304
305 Aws::String m_arn;
306 bool m_arnHasBeenSet = false;
307
308 Aws::Vector<Aws::String> m_awsServices;
309 bool m_awsServicesHasBeenSet = false;
310
311 Aws::String m_checkArn;
312 bool m_checkArnHasBeenSet = false;
313
314 Aws::Utils::DateTime m_createdAt{};
315 bool m_createdAtHasBeenSet = false;
316
317 Aws::String m_createdBy;
318 bool m_createdByHasBeenSet = false;
319
320 Aws::String m_description;
321 bool m_descriptionHasBeenSet = false;
322
323 Aws::String m_id;
324 bool m_idHasBeenSet = false;
325
326 Aws::Utils::DateTime m_lastUpdatedAt{};
327 bool m_lastUpdatedAtHasBeenSet = false;
328
330 bool m_lifecycleStageHasBeenSet = false;
331
332 Aws::String m_name;
333 bool m_nameHasBeenSet = false;
334
335 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
336 bool m_pillarSpecificAggregatesHasBeenSet = false;
337
339 bool m_pillarsHasBeenSet = false;
340
341 Aws::Utils::DateTime m_resolvedAt{};
342 bool m_resolvedAtHasBeenSet = false;
343
344 RecommendationResourcesAggregates m_resourcesAggregates;
345 bool m_resourcesAggregatesHasBeenSet = false;
346
348 bool m_sourceHasBeenSet = false;
349
351 bool m_statusHasBeenSet = false;
352
354 bool m_typeHasBeenSet = false;
355
356 Aws::String m_updateReason;
357 bool m_updateReasonHasBeenSet = false;
358
360 bool m_updateReasonCodeHasBeenSet = false;
361
362 Aws::String m_updatedOnBehalfOf;
363 bool m_updatedOnBehalfOfHasBeenSet = false;
364
365 Aws::String m_updatedOnBehalfOfJobTitle;
366 bool m_updatedOnBehalfOfJobTitleHasBeenSet = false;
367 };
368
369} // namespace Model
370} // namespace TrustedAdvisor
371} // 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