AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
57 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
58 inline RecommendationSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
59 inline RecommendationSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
60 inline RecommendationSummary& WithArn(const char* value) { SetArn(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 inline void SetAwsServices(const Aws::Vector<Aws::String>& value) { m_awsServicesHasBeenSet = true; m_awsServices = value; }
70 inline void SetAwsServices(Aws::Vector<Aws::String>&& value) { m_awsServicesHasBeenSet = true; m_awsServices = std::move(value); }
72 inline RecommendationSummary& WithAwsServices(Aws::Vector<Aws::String>&& value) { SetAwsServices(std::move(value)); return *this;}
73 inline RecommendationSummary& AddAwsServices(const Aws::String& value) { m_awsServicesHasBeenSet = true; m_awsServices.push_back(value); return *this; }
74 inline RecommendationSummary& AddAwsServices(Aws::String&& value) { m_awsServicesHasBeenSet = true; m_awsServices.push_back(std::move(value)); return *this; }
75 inline RecommendationSummary& AddAwsServices(const char* value) { m_awsServicesHasBeenSet = true; m_awsServices.push_back(value); return *this; }
77
79
82 inline const Aws::String& GetCheckArn() const{ return m_checkArn; }
83 inline bool CheckArnHasBeenSet() const { return m_checkArnHasBeenSet; }
84 inline void SetCheckArn(const Aws::String& value) { m_checkArnHasBeenSet = true; m_checkArn = value; }
85 inline void SetCheckArn(Aws::String&& value) { m_checkArnHasBeenSet = true; m_checkArn = std::move(value); }
86 inline void SetCheckArn(const char* value) { m_checkArnHasBeenSet = true; m_checkArn.assign(value); }
87 inline RecommendationSummary& WithCheckArn(const Aws::String& value) { SetCheckArn(value); return *this;}
88 inline RecommendationSummary& WithCheckArn(Aws::String&& value) { SetCheckArn(std::move(value)); return *this;}
89 inline RecommendationSummary& WithCheckArn(const char* value) { SetCheckArn(value); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
100 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
101 inline RecommendationSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
102 inline RecommendationSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetId() const{ return m_id; }
110 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
111 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
112 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
113 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
114 inline RecommendationSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
115 inline RecommendationSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
116 inline RecommendationSummary& WithId(const char* value) { SetId(value); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
124 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
125 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
126 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
128 inline RecommendationSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
130
132
135 inline const RecommendationLifecycleStage& GetLifecycleStage() const{ return m_lifecycleStage; }
136 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
137 inline void SetLifecycleStage(const RecommendationLifecycleStage& value) { m_lifecycleStageHasBeenSet = true; m_lifecycleStage = value; }
138 inline void SetLifecycleStage(RecommendationLifecycleStage&& value) { m_lifecycleStageHasBeenSet = true; m_lifecycleStage = std::move(value); }
142
144
147 inline const Aws::String& GetName() const{ return m_name; }
148 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
149 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
150 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
151 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
152 inline RecommendationSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
153 inline RecommendationSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
154 inline RecommendationSummary& WithName(const char* value) { SetName(value); return *this;}
156
158
161 inline const RecommendationPillarSpecificAggregates& GetPillarSpecificAggregates() const{ return m_pillarSpecificAggregates; }
162 inline bool PillarSpecificAggregatesHasBeenSet() const { return m_pillarSpecificAggregatesHasBeenSet; }
163 inline void SetPillarSpecificAggregates(const RecommendationPillarSpecificAggregates& value) { m_pillarSpecificAggregatesHasBeenSet = true; m_pillarSpecificAggregates = value; }
164 inline void SetPillarSpecificAggregates(RecommendationPillarSpecificAggregates&& value) { m_pillarSpecificAggregatesHasBeenSet = true; m_pillarSpecificAggregates = std::move(value); }
168
170
173 inline const Aws::Vector<RecommendationPillar>& GetPillars() const{ return m_pillars; }
174 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
175 inline void SetPillars(const Aws::Vector<RecommendationPillar>& value) { m_pillarsHasBeenSet = true; m_pillars = value; }
176 inline void SetPillars(Aws::Vector<RecommendationPillar>&& value) { m_pillarsHasBeenSet = true; m_pillars = std::move(value); }
178 inline RecommendationSummary& WithPillars(Aws::Vector<RecommendationPillar>&& value) { SetPillars(std::move(value)); return *this;}
179 inline RecommendationSummary& AddPillars(const RecommendationPillar& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; }
180 inline RecommendationSummary& AddPillars(RecommendationPillar&& value) { m_pillarsHasBeenSet = true; m_pillars.push_back(std::move(value)); return *this; }
182
184
187 inline const RecommendationResourcesAggregates& GetResourcesAggregates() const{ return m_resourcesAggregates; }
188 inline bool ResourcesAggregatesHasBeenSet() const { return m_resourcesAggregatesHasBeenSet; }
189 inline void SetResourcesAggregates(const RecommendationResourcesAggregates& value) { m_resourcesAggregatesHasBeenSet = true; m_resourcesAggregates = value; }
190 inline void SetResourcesAggregates(RecommendationResourcesAggregates&& value) { m_resourcesAggregatesHasBeenSet = true; m_resourcesAggregates = std::move(value); }
194
196
199 inline const RecommendationSource& GetSource() const{ return m_source; }
200 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
201 inline void SetSource(const RecommendationSource& value) { m_sourceHasBeenSet = true; m_source = value; }
202 inline void SetSource(RecommendationSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
203 inline RecommendationSummary& WithSource(const RecommendationSource& value) { SetSource(value); return *this;}
204 inline RecommendationSummary& WithSource(RecommendationSource&& value) { SetSource(std::move(value)); return *this;}
206
208
211 inline const RecommendationStatus& GetStatus() const{ return m_status; }
212 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
213 inline void SetStatus(const RecommendationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
214 inline void SetStatus(RecommendationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
215 inline RecommendationSummary& WithStatus(const RecommendationStatus& value) { SetStatus(value); return *this;}
216 inline RecommendationSummary& WithStatus(RecommendationStatus&& value) { SetStatus(std::move(value)); return *this;}
218
220
224 inline const RecommendationType& GetType() const{ return m_type; }
225 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
226 inline void SetType(const RecommendationType& value) { m_typeHasBeenSet = true; m_type = value; }
227 inline void SetType(RecommendationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
228 inline RecommendationSummary& WithType(const RecommendationType& value) { SetType(value); return *this;}
229 inline RecommendationSummary& WithType(RecommendationType&& value) { SetType(std::move(value)); return *this;}
231 private:
232
233 Aws::String m_arn;
234 bool m_arnHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_awsServices;
237 bool m_awsServicesHasBeenSet = false;
238
239 Aws::String m_checkArn;
240 bool m_checkArnHasBeenSet = false;
241
242 Aws::Utils::DateTime m_createdAt;
243 bool m_createdAtHasBeenSet = false;
244
245 Aws::String m_id;
246 bool m_idHasBeenSet = false;
247
248 Aws::Utils::DateTime m_lastUpdatedAt;
249 bool m_lastUpdatedAtHasBeenSet = false;
250
251 RecommendationLifecycleStage m_lifecycleStage;
252 bool m_lifecycleStageHasBeenSet = false;
253
254 Aws::String m_name;
255 bool m_nameHasBeenSet = false;
256
257 RecommendationPillarSpecificAggregates m_pillarSpecificAggregates;
258 bool m_pillarSpecificAggregatesHasBeenSet = false;
259
261 bool m_pillarsHasBeenSet = false;
262
263 RecommendationResourcesAggregates m_resourcesAggregates;
264 bool m_resourcesAggregatesHasBeenSet = false;
265
266 RecommendationSource m_source;
267 bool m_sourceHasBeenSet = false;
268
269 RecommendationStatus m_status;
270 bool m_statusHasBeenSet = false;
271
272 RecommendationType m_type;
273 bool m_typeHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace TrustedAdvisor
278} // namespace Aws
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
RecommendationSummary & WithPillars(Aws::Vector< RecommendationPillar > &&value)
RecommendationSummary & WithSource(RecommendationSource &&value)
void SetLifecycleStage(RecommendationLifecycleStage &&value)
RecommendationSummary & WithName(const char *value)
RecommendationSummary & WithType(RecommendationType &&value)
void SetPillarSpecificAggregates(const RecommendationPillarSpecificAggregates &value)
RecommendationSummary & WithArn(const char *value)
RecommendationSummary & AddPillars(const RecommendationPillar &value)
RecommendationSummary & WithId(const Aws::String &value)
RecommendationSummary & AddAwsServices(const char *value)
RecommendationSummary & WithResourcesAggregates(RecommendationResourcesAggregates &&value)
RecommendationSummary & WithPillarSpecificAggregates(const RecommendationPillarSpecificAggregates &value)
RecommendationSummary & WithCheckArn(const char *value)
AWS_TRUSTEDADVISOR_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
RecommendationSummary & WithId(Aws::String &&value)
void SetResourcesAggregates(const RecommendationResourcesAggregates &value)
RecommendationSummary & WithAwsServices(Aws::Vector< Aws::String > &&value)
const RecommendationPillarSpecificAggregates & GetPillarSpecificAggregates() const
RecommendationSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
RecommendationSummary & WithLifecycleStage(const RecommendationLifecycleStage &value)
RecommendationSummary & AddAwsServices(const Aws::String &value)
RecommendationSummary & WithCheckArn(const Aws::String &value)
RecommendationSummary & WithPillarSpecificAggregates(RecommendationPillarSpecificAggregates &&value)
void SetPillarSpecificAggregates(RecommendationPillarSpecificAggregates &&value)
RecommendationSummary & WithId(const char *value)
RecommendationSummary & WithArn(Aws::String &&value)
RecommendationSummary & WithName(Aws::String &&value)
RecommendationSummary & WithName(const Aws::String &value)
AWS_TRUSTEDADVISOR_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithResourcesAggregates(const RecommendationResourcesAggregates &value)
RecommendationSummary & AddAwsServices(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAwsServices() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetSource(const RecommendationSource &value)
void SetAwsServices(Aws::Vector< Aws::String > &&value)
void SetResourcesAggregates(RecommendationResourcesAggregates &&value)
void SetPillars(const Aws::Vector< RecommendationPillar > &value)
void SetStatus(const RecommendationStatus &value)
RecommendationSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
RecommendationSummary & WithStatus(RecommendationStatus &&value)
RecommendationSummary & WithCheckArn(Aws::String &&value)
void SetLifecycleStage(const RecommendationLifecycleStage &value)
RecommendationSummary & WithAwsServices(const Aws::Vector< Aws::String > &value)
RecommendationSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
const RecommendationLifecycleStage & GetLifecycleStage() const
void SetAwsServices(const Aws::Vector< Aws::String > &value)
RecommendationSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const RecommendationResourcesAggregates & GetResourcesAggregates() const
RecommendationSummary & WithPillars(const Aws::Vector< RecommendationPillar > &value)
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RecommendationPillar > & GetPillars() const
RecommendationSummary & WithArn(const Aws::String &value)
RecommendationSummary & WithStatus(const RecommendationStatus &value)
RecommendationSummary & WithLifecycleStage(RecommendationLifecycleStage &&value)
RecommendationSummary & WithSource(const RecommendationSource &value)
void SetPillars(Aws::Vector< RecommendationPillar > &&value)
RecommendationSummary & AddPillars(RecommendationPillar &&value)
RecommendationSummary & WithType(const RecommendationType &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