AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CheckSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.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/RecommendationPillar.h>
12#include <aws/trustedadvisor/model/RecommendationSource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace TrustedAdvisor {
24namespace Model {
25
32 public:
33 AWS_TRUSTEDADVISOR_API CheckSummary() = default;
34 AWS_TRUSTEDADVISOR_API CheckSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRUSTEDADVISOR_API CheckSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 CheckSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 CheckSummary& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 CheckSummary& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 CheckSummary& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
115 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
116 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
117 void SetPillars(PillarsT&& value) {
118 m_pillarsHasBeenSet = true;
119 m_pillars = std::forward<PillarsT>(value);
120 }
121 template <typename PillarsT = Aws::Vector<RecommendationPillar>>
122 CheckSummary& WithPillars(PillarsT&& value) {
123 SetPillars(std::forward<PillarsT>(value));
124 return *this;
125 }
127 m_pillarsHasBeenSet = true;
128 m_pillars.push_back(value);
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
138 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
139 template <typename AwsServicesT = Aws::Vector<Aws::String>>
140 void SetAwsServices(AwsServicesT&& value) {
141 m_awsServicesHasBeenSet = true;
142 m_awsServices = std::forward<AwsServicesT>(value);
143 }
144 template <typename AwsServicesT = Aws::Vector<Aws::String>>
145 CheckSummary& WithAwsServices(AwsServicesT&& value) {
146 SetAwsServices(std::forward<AwsServicesT>(value));
147 return *this;
148 }
149 template <typename AwsServicesT = Aws::String>
150 CheckSummary& AddAwsServices(AwsServicesT&& value) {
151 m_awsServicesHasBeenSet = true;
152 m_awsServices.emplace_back(std::forward<AwsServicesT>(value));
153 return *this;
154 }
156
158
161 inline RecommendationSource GetSource() const { return m_source; }
162 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
163 inline void SetSource(RecommendationSource value) {
164 m_sourceHasBeenSet = true;
165 m_source = value;
166 }
168 SetSource(value);
169 return *this;
170 }
172
174
177 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
178 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
179 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
180 void SetMetadata(MetadataT&& value) {
181 m_metadataHasBeenSet = true;
182 m_metadata = std::forward<MetadataT>(value);
183 }
184 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
185 CheckSummary& WithMetadata(MetadataT&& value) {
186 SetMetadata(std::forward<MetadataT>(value));
187 return *this;
188 }
189 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
190 CheckSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
191 m_metadataHasBeenSet = true;
192 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
193 return *this;
194 }
196
198
202 inline bool GetResourceArnQueryable() const { return m_resourceArnQueryable; }
203 inline bool ResourceArnQueryableHasBeenSet() const { return m_resourceArnQueryableHasBeenSet; }
204 inline void SetResourceArnQueryable(bool value) {
205 m_resourceArnQueryableHasBeenSet = true;
206 m_resourceArnQueryable = value;
207 }
210 return *this;
211 }
213
215
219 inline const Aws::Vector<Aws::String>& GetAwsResourceTypes() const { return m_awsResourceTypes; }
220 inline bool AwsResourceTypesHasBeenSet() const { return m_awsResourceTypesHasBeenSet; }
221 template <typename AwsResourceTypesT = Aws::Vector<Aws::String>>
222 void SetAwsResourceTypes(AwsResourceTypesT&& value) {
223 m_awsResourceTypesHasBeenSet = true;
224 m_awsResourceTypes = std::forward<AwsResourceTypesT>(value);
225 }
226 template <typename AwsResourceTypesT = Aws::Vector<Aws::String>>
227 CheckSummary& WithAwsResourceTypes(AwsResourceTypesT&& value) {
228 SetAwsResourceTypes(std::forward<AwsResourceTypesT>(value));
229 return *this;
230 }
231 template <typename AwsResourceTypesT = Aws::String>
232 CheckSummary& AddAwsResourceTypes(AwsResourceTypesT&& value) {
233 m_awsResourceTypesHasBeenSet = true;
234 m_awsResourceTypes.emplace_back(std::forward<AwsResourceTypesT>(value));
235 return *this;
236 }
238
240
244 inline const Aws::String& GetCheckGranularity() const { return m_checkGranularity; }
245 inline bool CheckGranularityHasBeenSet() const { return m_checkGranularityHasBeenSet; }
246 template <typename CheckGranularityT = Aws::String>
247 void SetCheckGranularity(CheckGranularityT&& value) {
248 m_checkGranularityHasBeenSet = true;
249 m_checkGranularity = std::forward<CheckGranularityT>(value);
250 }
251 template <typename CheckGranularityT = Aws::String>
252 CheckSummary& WithCheckGranularity(CheckGranularityT&& value) {
253 SetCheckGranularity(std::forward<CheckGranularityT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
263 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
264 template <typename RecommendationIdT = Aws::String>
265 void SetRecommendationId(RecommendationIdT&& value) {
266 m_recommendationIdHasBeenSet = true;
267 m_recommendationId = std::forward<RecommendationIdT>(value);
268 }
269 template <typename RecommendationIdT = Aws::String>
270 CheckSummary& WithRecommendationId(RecommendationIdT&& value) {
271 SetRecommendationId(std::forward<RecommendationIdT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_id;
277
278 Aws::String m_arn;
279
280 Aws::String m_name;
281
282 Aws::String m_description;
283
285
286 Aws::Vector<Aws::String> m_awsServices;
287
289
291
292 bool m_resourceArnQueryable{false};
293
294 Aws::Vector<Aws::String> m_awsResourceTypes;
295
296 Aws::String m_checkGranularity;
297
298 Aws::String m_recommendationId;
299 bool m_idHasBeenSet = false;
300 bool m_arnHasBeenSet = false;
301 bool m_nameHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_pillarsHasBeenSet = false;
304 bool m_awsServicesHasBeenSet = false;
305 bool m_sourceHasBeenSet = false;
306 bool m_metadataHasBeenSet = false;
307 bool m_resourceArnQueryableHasBeenSet = false;
308 bool m_awsResourceTypesHasBeenSet = false;
309 bool m_checkGranularityHasBeenSet = false;
310 bool m_recommendationIdHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace TrustedAdvisor
315} // namespace Aws
CheckSummary & WithAwsResourceTypes(AwsResourceTypesT &&value)
CheckSummary & AddAwsServices(AwsServicesT &&value)
const Aws::String & GetName() const
AWS_TRUSTEDADVISOR_API CheckSummary()=default
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
CheckSummary & WithResourceArnQueryable(bool value)
AWS_TRUSTEDADVISOR_API CheckSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RecommendationPillar > & GetPillars() const
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
CheckSummary & WithCheckGranularity(CheckGranularityT &&value)
CheckSummary & WithRecommendationId(RecommendationIdT &&value)
CheckSummary & AddAwsResourceTypes(AwsResourceTypesT &&value)
CheckSummary & WithDescription(DescriptionT &&value)
CheckSummary & WithPillars(PillarsT &&value)
const Aws::String & GetCheckGranularity() const
void SetDescription(DescriptionT &&value)
CheckSummary & WithId(IdT &&value)
CheckSummary & AddPillars(RecommendationPillar value)
void SetAwsResourceTypes(AwsResourceTypesT &&value)
CheckSummary & WithMetadata(MetadataT &&value)
const Aws::Vector< Aws::String > & GetAwsServices() const
const Aws::Vector< Aws::String > & GetAwsResourceTypes() const
void SetCheckGranularity(CheckGranularityT &&value)
CheckSummary & WithSource(RecommendationSource value)
CheckSummary & WithArn(ArnT &&value)
RecommendationSource GetSource() const
const Aws::String & GetRecommendationId() const
void SetRecommendationId(RecommendationIdT &&value)
const Aws::String & GetDescription() const
CheckSummary & WithAwsServices(AwsServicesT &&value)
AWS_TRUSTEDADVISOR_API CheckSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
void SetAwsServices(AwsServicesT &&value)
const Aws::String & GetId() const
void SetSource(RecommendationSource value)
CheckSummary & WithName(NameT &&value)
CheckSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue