AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBRecommendation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/RDS_EXPORTS.h>
12#include <aws/rds/model/DocLink.h>
13#include <aws/rds/model/IssueDetails.h>
14#include <aws/rds/model/RecommendedAction.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS {
25namespace Model {
26
34 public:
35 AWS_RDS_API DBRecommendation() = default;
36 AWS_RDS_API DBRecommendation(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
47 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
48 template <typename RecommendationIdT = Aws::String>
49 void SetRecommendationId(RecommendationIdT&& value) {
50 m_recommendationIdHasBeenSet = true;
51 m_recommendationId = std::forward<RecommendationIdT>(value);
52 }
53 template <typename RecommendationIdT = Aws::String>
54 DBRecommendation& WithRecommendationId(RecommendationIdT&& value) {
55 SetRecommendationId(std::forward<RecommendationIdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetTypeId() const { return m_typeId; }
66 inline bool TypeIdHasBeenSet() const { return m_typeIdHasBeenSet; }
67 template <typename TypeIdT = Aws::String>
68 void SetTypeId(TypeIdT&& value) {
69 m_typeIdHasBeenSet = true;
70 m_typeId = std::forward<TypeIdT>(value);
71 }
72 template <typename TypeIdT = Aws::String>
73 DBRecommendation& WithTypeId(TypeIdT&& value) {
74 SetTypeId(std::forward<TypeIdT>(value));
75 return *this;
76 }
78
80
87 inline const Aws::String& GetSeverity() const { return m_severity; }
88 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
89 template <typename SeverityT = Aws::String>
90 void SetSeverity(SeverityT&& value) {
91 m_severityHasBeenSet = true;
92 m_severity = std::forward<SeverityT>(value);
93 }
94 template <typename SeverityT = Aws::String>
95 DBRecommendation& WithSeverity(SeverityT&& value) {
96 SetSeverity(std::forward<SeverityT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
107 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
108 template <typename ResourceArnT = Aws::String>
109 void SetResourceArn(ResourceArnT&& value) {
110 m_resourceArnHasBeenSet = true;
111 m_resourceArn = std::forward<ResourceArnT>(value);
112 }
113 template <typename ResourceArnT = Aws::String>
114 DBRecommendation& WithResourceArn(ResourceArnT&& value) {
115 SetResourceArn(std::forward<ResourceArnT>(value));
116 return *this;
117 }
119
121
129 inline const Aws::String& GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 template <typename StatusT = Aws::String>
132 void SetStatus(StatusT&& value) {
133 m_statusHasBeenSet = true;
134 m_status = std::forward<StatusT>(value);
135 }
136 template <typename StatusT = Aws::String>
137 DBRecommendation& WithStatus(StatusT&& value) {
138 SetStatus(std::forward<StatusT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
149 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
150 template <typename CreatedTimeT = Aws::Utils::DateTime>
151 void SetCreatedTime(CreatedTimeT&& value) {
152 m_createdTimeHasBeenSet = true;
153 m_createdTime = std::forward<CreatedTimeT>(value);
154 }
155 template <typename CreatedTimeT = Aws::Utils::DateTime>
156 DBRecommendation& WithCreatedTime(CreatedTimeT&& value) {
157 SetCreatedTime(std::forward<CreatedTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdatedTime() const { return m_updatedTime; }
167 inline bool UpdatedTimeHasBeenSet() const { return m_updatedTimeHasBeenSet; }
168 template <typename UpdatedTimeT = Aws::Utils::DateTime>
169 void SetUpdatedTime(UpdatedTimeT&& value) {
170 m_updatedTimeHasBeenSet = true;
171 m_updatedTime = std::forward<UpdatedTimeT>(value);
172 }
173 template <typename UpdatedTimeT = Aws::Utils::DateTime>
174 DBRecommendation& WithUpdatedTime(UpdatedTimeT&& value) {
175 SetUpdatedTime(std::forward<UpdatedTimeT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetDetection() const { return m_detection; }
186 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
187 template <typename DetectionT = Aws::String>
188 void SetDetection(DetectionT&& value) {
189 m_detectionHasBeenSet = true;
190 m_detection = std::forward<DetectionT>(value);
191 }
192 template <typename DetectionT = Aws::String>
193 DBRecommendation& WithDetection(DetectionT&& value) {
194 SetDetection(std::forward<DetectionT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
205 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
206 template <typename RecommendationT = Aws::String>
207 void SetRecommendation(RecommendationT&& value) {
208 m_recommendationHasBeenSet = true;
209 m_recommendation = std::forward<RecommendationT>(value);
210 }
211 template <typename RecommendationT = Aws::String>
212 DBRecommendation& WithRecommendation(RecommendationT&& value) {
213 SetRecommendation(std::forward<RecommendationT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::String& GetDescription() const { return m_description; }
224 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
225 template <typename DescriptionT = Aws::String>
226 void SetDescription(DescriptionT&& value) {
227 m_descriptionHasBeenSet = true;
228 m_description = std::forward<DescriptionT>(value);
229 }
230 template <typename DescriptionT = Aws::String>
231 DBRecommendation& WithDescription(DescriptionT&& value) {
232 SetDescription(std::forward<DescriptionT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::String& GetReason() const { return m_reason; }
243 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
244 template <typename ReasonT = Aws::String>
245 void SetReason(ReasonT&& value) {
246 m_reasonHasBeenSet = true;
247 m_reason = std::forward<ReasonT>(value);
248 }
249 template <typename ReasonT = Aws::String>
250 DBRecommendation& WithReason(ReasonT&& value) {
251 SetReason(std::forward<ReasonT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<RecommendedAction>& GetRecommendedActions() const { return m_recommendedActions; }
261 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
262 template <typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
263 void SetRecommendedActions(RecommendedActionsT&& value) {
264 m_recommendedActionsHasBeenSet = true;
265 m_recommendedActions = std::forward<RecommendedActionsT>(value);
266 }
267 template <typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
268 DBRecommendation& WithRecommendedActions(RecommendedActionsT&& value) {
269 SetRecommendedActions(std::forward<RecommendedActionsT>(value));
270 return *this;
271 }
272 template <typename RecommendedActionsT = RecommendedAction>
273 DBRecommendation& AddRecommendedActions(RecommendedActionsT&& value) {
274 m_recommendedActionsHasBeenSet = true;
275 m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value));
276 return *this;
277 }
279
281
288 inline const Aws::String& GetCategory() const { return m_category; }
289 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
290 template <typename CategoryT = Aws::String>
291 void SetCategory(CategoryT&& value) {
292 m_categoryHasBeenSet = true;
293 m_category = std::forward<CategoryT>(value);
294 }
295 template <typename CategoryT = Aws::String>
296 DBRecommendation& WithCategory(CategoryT&& value) {
297 SetCategory(std::forward<CategoryT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetSource() const { return m_source; }
307 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
308 template <typename SourceT = Aws::String>
309 void SetSource(SourceT&& value) {
310 m_sourceHasBeenSet = true;
311 m_source = std::forward<SourceT>(value);
312 }
313 template <typename SourceT = Aws::String>
314 DBRecommendation& WithSource(SourceT&& value) {
315 SetSource(std::forward<SourceT>(value));
316 return *this;
317 }
319
321
325 inline const Aws::String& GetTypeDetection() const { return m_typeDetection; }
326 inline bool TypeDetectionHasBeenSet() const { return m_typeDetectionHasBeenSet; }
327 template <typename TypeDetectionT = Aws::String>
328 void SetTypeDetection(TypeDetectionT&& value) {
329 m_typeDetectionHasBeenSet = true;
330 m_typeDetection = std::forward<TypeDetectionT>(value);
331 }
332 template <typename TypeDetectionT = Aws::String>
333 DBRecommendation& WithTypeDetection(TypeDetectionT&& value) {
334 SetTypeDetection(std::forward<TypeDetectionT>(value));
335 return *this;
336 }
338
340
344 inline const Aws::String& GetTypeRecommendation() const { return m_typeRecommendation; }
345 inline bool TypeRecommendationHasBeenSet() const { return m_typeRecommendationHasBeenSet; }
346 template <typename TypeRecommendationT = Aws::String>
347 void SetTypeRecommendation(TypeRecommendationT&& value) {
348 m_typeRecommendationHasBeenSet = true;
349 m_typeRecommendation = std::forward<TypeRecommendationT>(value);
350 }
351 template <typename TypeRecommendationT = Aws::String>
352 DBRecommendation& WithTypeRecommendation(TypeRecommendationT&& value) {
353 SetTypeRecommendation(std::forward<TypeRecommendationT>(value));
354 return *this;
355 }
357
359
362 inline const Aws::String& GetImpact() const { return m_impact; }
363 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
364 template <typename ImpactT = Aws::String>
365 void SetImpact(ImpactT&& value) {
366 m_impactHasBeenSet = true;
367 m_impact = std::forward<ImpactT>(value);
368 }
369 template <typename ImpactT = Aws::String>
370 DBRecommendation& WithImpact(ImpactT&& value) {
371 SetImpact(std::forward<ImpactT>(value));
372 return *this;
373 }
375
377
381 inline const Aws::String& GetAdditionalInfo() const { return m_additionalInfo; }
382 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
383 template <typename AdditionalInfoT = Aws::String>
384 void SetAdditionalInfo(AdditionalInfoT&& value) {
385 m_additionalInfoHasBeenSet = true;
386 m_additionalInfo = std::forward<AdditionalInfoT>(value);
387 }
388 template <typename AdditionalInfoT = Aws::String>
389 DBRecommendation& WithAdditionalInfo(AdditionalInfoT&& value) {
390 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
391 return *this;
392 }
394
396
400 inline const Aws::Vector<DocLink>& GetLinks() const { return m_links; }
401 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
402 template <typename LinksT = Aws::Vector<DocLink>>
403 void SetLinks(LinksT&& value) {
404 m_linksHasBeenSet = true;
405 m_links = std::forward<LinksT>(value);
406 }
407 template <typename LinksT = Aws::Vector<DocLink>>
408 DBRecommendation& WithLinks(LinksT&& value) {
409 SetLinks(std::forward<LinksT>(value));
410 return *this;
411 }
412 template <typename LinksT = DocLink>
413 DBRecommendation& AddLinks(LinksT&& value) {
414 m_linksHasBeenSet = true;
415 m_links.emplace_back(std::forward<LinksT>(value));
416 return *this;
417 }
419
421
424 inline const IssueDetails& GetIssueDetails() const { return m_issueDetails; }
425 inline bool IssueDetailsHasBeenSet() const { return m_issueDetailsHasBeenSet; }
426 template <typename IssueDetailsT = IssueDetails>
427 void SetIssueDetails(IssueDetailsT&& value) {
428 m_issueDetailsHasBeenSet = true;
429 m_issueDetails = std::forward<IssueDetailsT>(value);
430 }
431 template <typename IssueDetailsT = IssueDetails>
432 DBRecommendation& WithIssueDetails(IssueDetailsT&& value) {
433 SetIssueDetails(std::forward<IssueDetailsT>(value));
434 return *this;
435 }
437 private:
438 Aws::String m_recommendationId;
439
440 Aws::String m_typeId;
441
442 Aws::String m_severity;
443
444 Aws::String m_resourceArn;
445
446 Aws::String m_status;
447
448 Aws::Utils::DateTime m_createdTime{};
449
450 Aws::Utils::DateTime m_updatedTime{};
451
452 Aws::String m_detection;
453
454 Aws::String m_recommendation;
455
456 Aws::String m_description;
457
458 Aws::String m_reason;
459
460 Aws::Vector<RecommendedAction> m_recommendedActions;
461
462 Aws::String m_category;
463
464 Aws::String m_source;
465
466 Aws::String m_typeDetection;
467
468 Aws::String m_typeRecommendation;
469
470 Aws::String m_impact;
471
472 Aws::String m_additionalInfo;
473
474 Aws::Vector<DocLink> m_links;
475
476 IssueDetails m_issueDetails;
477 bool m_recommendationIdHasBeenSet = false;
478 bool m_typeIdHasBeenSet = false;
479 bool m_severityHasBeenSet = false;
480 bool m_resourceArnHasBeenSet = false;
481 bool m_statusHasBeenSet = false;
482 bool m_createdTimeHasBeenSet = false;
483 bool m_updatedTimeHasBeenSet = false;
484 bool m_detectionHasBeenSet = false;
485 bool m_recommendationHasBeenSet = false;
486 bool m_descriptionHasBeenSet = false;
487 bool m_reasonHasBeenSet = false;
488 bool m_recommendedActionsHasBeenSet = false;
489 bool m_categoryHasBeenSet = false;
490 bool m_sourceHasBeenSet = false;
491 bool m_typeDetectionHasBeenSet = false;
492 bool m_typeRecommendationHasBeenSet = false;
493 bool m_impactHasBeenSet = false;
494 bool m_additionalInfoHasBeenSet = false;
495 bool m_linksHasBeenSet = false;
496 bool m_issueDetailsHasBeenSet = false;
497};
498
499} // namespace Model
500} // namespace RDS
501} // namespace Aws
const Aws::String & GetDescription() const
DBRecommendation & WithDetection(DetectionT &&value)
void SetRecommendation(RecommendationT &&value)
const Aws::String & GetTypeRecommendation() const
DBRecommendation & WithRecommendedActions(RecommendedActionsT &&value)
const Aws::String & GetAdditionalInfo() const
const Aws::String & GetSeverity() const
DBRecommendation & WithIssueDetails(IssueDetailsT &&value)
const IssueDetails & GetIssueDetails() const
void SetUpdatedTime(UpdatedTimeT &&value)
const Aws::String & GetTypeDetection() const
DBRecommendation & WithImpact(ImpactT &&value)
DBRecommendation & WithTypeDetection(TypeDetectionT &&value)
const Aws::String & GetImpact() const
DBRecommendation & WithAdditionalInfo(AdditionalInfoT &&value)
DBRecommendation & WithCreatedTime(CreatedTimeT &&value)
const Aws::String & GetResourceArn() const
void SetTypeRecommendation(TypeRecommendationT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAdditionalInfo(AdditionalInfoT &&value)
const Aws::String & GetDetection() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceArn(ResourceArnT &&value)
void SetSeverity(SeverityT &&value)
void SetDetection(DetectionT &&value)
DBRecommendation & WithLinks(LinksT &&value)
void SetCreatedTime(CreatedTimeT &&value)
AWS_RDS_API DBRecommendation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBRecommendation & WithStatus(StatusT &&value)
const Aws::String & GetRecommendationId() const
void SetTypeDetection(TypeDetectionT &&value)
DBRecommendation & WithCategory(CategoryT &&value)
DBRecommendation & WithRecommendationId(RecommendationIdT &&value)
AWS_RDS_API DBRecommendation(const Aws::Utils::Xml::XmlNode &xmlNode)
DBRecommendation & WithUpdatedTime(UpdatedTimeT &&value)
DBRecommendation & AddRecommendedActions(RecommendedActionsT &&value)
const Aws::Vector< RecommendedAction > & GetRecommendedActions() const
void SetDescription(DescriptionT &&value)
AWS_RDS_API DBRecommendation()=default
void SetCategory(CategoryT &&value)
void SetRecommendedActions(RecommendedActionsT &&value)
DBRecommendation & WithRecommendation(RecommendationT &&value)
const Aws::String & GetStatus() const
void SetRecommendationId(RecommendationIdT &&value)
const Aws::String & GetRecommendation() const
const Aws::String & GetTypeId() const
DBRecommendation & WithSeverity(SeverityT &&value)
DBRecommendation & WithResourceArn(ResourceArnT &&value)
const Aws::String & GetCategory() const
DBRecommendation & WithSource(SourceT &&value)
const Aws::Utils::DateTime & GetUpdatedTime() const
DBRecommendation & WithTypeId(TypeIdT &&value)
const Aws::Vector< DocLink > & GetLinks() const
DBRecommendation & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
DBRecommendation & WithTypeRecommendation(TypeRecommendationT &&value)
DBRecommendation & AddLinks(LinksT &&value)
const Aws::String & GetSource() const
DBRecommendation & WithReason(ReasonT &&value)
void SetIssueDetails(IssueDetailsT &&value)
const Aws::String & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream