AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecommendationSummary.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/RecommendationPillar.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace TrustedAdvisor
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_TRUSTEDADVISOR_API RecommendationSummary() = default;
44 AWS_TRUSTEDADVISOR_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
46 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 RecommendationSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
66 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
67 template<typename AwsServicesT = Aws::Vector<Aws::String>>
68 void SetAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices = std::forward<AwsServicesT>(value); }
69 template<typename AwsServicesT = Aws::Vector<Aws::String>>
70 RecommendationSummary& WithAwsServices(AwsServicesT&& value) { SetAwsServices(std::forward<AwsServicesT>(value)); return *this;}
71 template<typename AwsServicesT = Aws::String>
72 RecommendationSummary& AddAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices.emplace_back(std::forward<AwsServicesT>(value)); return *this; }
74
76
79 inline const Aws::String& GetCheckArn() const { return m_checkArn; }
80 inline bool CheckArnHasBeenSet() const { return m_checkArnHasBeenSet; }
81 template<typename CheckArnT = Aws::String>
82 void SetCheckArn(CheckArnT&& value) { m_checkArnHasBeenSet = true; m_checkArn = std::forward<CheckArnT>(value); }
83 template<typename CheckArnT = Aws::String>
84 RecommendationSummary& WithCheckArn(CheckArnT&& value) { SetCheckArn(std::forward<CheckArnT>(value)); return *this;}
86
88
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 RecommendationSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
99
101
104 inline const Aws::String& GetId() const { return m_id; }
105 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
106 template<typename IdT = Aws::String>
107 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
108 template<typename IdT = Aws::String>
109 RecommendationSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
117 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
118 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
119 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
120 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
121 RecommendationSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
123
125
128 inline RecommendationLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
129 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
130 inline void SetLifecycleStage(RecommendationLifecycleStage value) { m_lifecycleStageHasBeenSet = true; m_lifecycleStage = value; }
133
135
138 inline const Aws::String& GetName() const { return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 template<typename NameT = Aws::String>
141 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
142 template<typename NameT = Aws::String>
143 RecommendationSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
145
147
150 inline const RecommendationPillarSpecificAggregates& GetPillarSpecificAggregates() const { return m_pillarSpecificAggregates; }
151 inline bool PillarSpecificAggregatesHasBeenSet() const { return m_pillarSpecificAggregatesHasBeenSet; }
152 template<typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
153 void SetPillarSpecificAggregates(PillarSpecificAggregatesT&& value) { m_pillarSpecificAggregatesHasBeenSet = true; m_pillarSpecificAggregates = std::forward<PillarSpecificAggregatesT>(value); }
154 template<typename PillarSpecificAggregatesT = RecommendationPillarSpecificAggregates>
155 RecommendationSummary& WithPillarSpecificAggregates(PillarSpecificAggregatesT&& value) { SetPillarSpecificAggregates(std::forward<PillarSpecificAggregatesT>(value)); return *this;}
157
159
162 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
163 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
164 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
165 void SetPillars(PillarsT&& value) { m_pillarsHasBeenSet = true; m_pillars = std::forward<PillarsT>(value); }
166 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
167 RecommendationSummary& WithPillars(PillarsT&& value) { SetPillars(std::forward<PillarsT>(value)); return *this;}
168 inline RecommendationSummary& AddPillars(RecommendationPillar value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; }
170
172
175 inline const RecommendationResourcesAggregates& GetResourcesAggregates() const { return m_resourcesAggregates; }
176 inline bool ResourcesAggregatesHasBeenSet() const { return m_resourcesAggregatesHasBeenSet; }
177 template<typename ResourcesAggregatesT = RecommendationResourcesAggregates>
178 void SetResourcesAggregates(ResourcesAggregatesT&& value) { m_resourcesAggregatesHasBeenSet = true; m_resourcesAggregates = std::forward<ResourcesAggregatesT>(value); }
179 template<typename ResourcesAggregatesT = RecommendationResourcesAggregates>
180 RecommendationSummary& WithResourcesAggregates(ResourcesAggregatesT&& value) { SetResourcesAggregates(std::forward<ResourcesAggregatesT>(value)); return *this;}
182
184
187 inline RecommendationSource GetSource() const { return m_source; }
188 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
189 inline void SetSource(RecommendationSource value) { m_sourceHasBeenSet = true; m_source = value; }
190 inline RecommendationSummary& WithSource(RecommendationSource value) { SetSource(value); return *this;}
192
194
197 inline RecommendationStatus GetStatus() const { return m_status; }
198 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
199 inline void SetStatus(RecommendationStatus value) { m_statusHasBeenSet = true; m_status = value; }
200 inline RecommendationSummary& WithStatus(RecommendationStatus value) { SetStatus(value); return *this;}
202
204
208 inline RecommendationType GetType() const { return m_type; }
209 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
210 inline void SetType(RecommendationType value) { m_typeHasBeenSet = true; m_type = value; }
211 inline RecommendationSummary& WithType(RecommendationType value) { SetType(value); return *this;}
213 private:
214
215 Aws::String m_arn;
216 bool m_arnHasBeenSet = false;
217
218 Aws::Vector<Aws::String> m_awsServices;
219 bool m_awsServicesHasBeenSet = false;
220
221 Aws::String m_checkArn;
222 bool m_checkArnHasBeenSet = false;
223
224 Aws::Utils::DateTime m_createdAt{};
225 bool m_createdAtHasBeenSet = false;
226
227 Aws::String m_id;
228 bool m_idHasBeenSet = false;
229
230 Aws::Utils::DateTime m_lastUpdatedAt{};
231 bool m_lastUpdatedAtHasBeenSet = false;
232
234 bool m_lifecycleStageHasBeenSet = false;
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
240 bool m_pillarSpecificAggregatesHasBeenSet = false;
241
243 bool m_pillarsHasBeenSet = false;
244
245 RecommendationResourcesAggregates m_resourcesAggregates;
246 bool m_resourcesAggregatesHasBeenSet = false;
247
249 bool m_sourceHasBeenSet = false;
250
252 bool m_statusHasBeenSet = false;
253
255 bool m_typeHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace TrustedAdvisor
260} // 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 & WithArn(ArnT &&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
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