AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBRecommendation.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rds/model/IssueDetails.h>
13#include <aws/rds/model/RecommendedAction.h>
14#include <aws/rds/model/DocLink.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace RDS
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_RDS_API DBRecommendation() = default;
41 AWS_RDS_API DBRecommendation(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
53 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
54 template<typename RecommendationIdT = Aws::String>
55 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
56 template<typename RecommendationIdT = Aws::String>
57 DBRecommendation& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
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) { m_typeIdHasBeenSet = true; m_typeId = std::forward<TypeIdT>(value); }
69 template<typename TypeIdT = Aws::String>
70 DBRecommendation& WithTypeId(TypeIdT&& value) { SetTypeId(std::forward<TypeIdT>(value)); return *this;}
72
74
81 inline const Aws::String& GetSeverity() const { return m_severity; }
82 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
83 template<typename SeverityT = Aws::String>
84 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
85 template<typename SeverityT = Aws::String>
86 DBRecommendation& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
88
90
94 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
95 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
96 template<typename ResourceArnT = Aws::String>
97 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
98 template<typename ResourceArnT = Aws::String>
99 DBRecommendation& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
101
103
111 inline const Aws::String& GetStatus() const { return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 template<typename StatusT = Aws::String>
114 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
115 template<typename StatusT = Aws::String>
116 DBRecommendation& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
118
120
124 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
125 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
126 template<typename CreatedTimeT = Aws::Utils::DateTime>
127 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
128 template<typename CreatedTimeT = Aws::Utils::DateTime>
129 DBRecommendation& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetUpdatedTime() const { return m_updatedTime; }
137 inline bool UpdatedTimeHasBeenSet() const { return m_updatedTimeHasBeenSet; }
138 template<typename UpdatedTimeT = Aws::Utils::DateTime>
139 void SetUpdatedTime(UpdatedTimeT&& value) { m_updatedTimeHasBeenSet = true; m_updatedTime = std::forward<UpdatedTimeT>(value); }
140 template<typename UpdatedTimeT = Aws::Utils::DateTime>
141 DBRecommendation& WithUpdatedTime(UpdatedTimeT&& value) { SetUpdatedTime(std::forward<UpdatedTimeT>(value)); return *this;}
143
145
149 inline const Aws::String& GetDetection() const { return m_detection; }
150 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
151 template<typename DetectionT = Aws::String>
152 void SetDetection(DetectionT&& value) { m_detectionHasBeenSet = true; m_detection = std::forward<DetectionT>(value); }
153 template<typename DetectionT = Aws::String>
154 DBRecommendation& WithDetection(DetectionT&& value) { SetDetection(std::forward<DetectionT>(value)); return *this;}
156
158
162 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
163 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
164 template<typename RecommendationT = Aws::String>
165 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
166 template<typename RecommendationT = Aws::String>
167 DBRecommendation& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
169
171
175 inline const Aws::String& GetDescription() const { return m_description; }
176 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
177 template<typename DescriptionT = Aws::String>
178 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
179 template<typename DescriptionT = Aws::String>
180 DBRecommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
182
184
188 inline const Aws::String& GetReason() const { return m_reason; }
189 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
190 template<typename ReasonT = Aws::String>
191 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
192 template<typename ReasonT = Aws::String>
193 DBRecommendation& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
195
197
200 inline const Aws::Vector<RecommendedAction>& GetRecommendedActions() const { return m_recommendedActions; }
201 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
202 template<typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
203 void SetRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = std::forward<RecommendedActionsT>(value); }
204 template<typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
205 DBRecommendation& WithRecommendedActions(RecommendedActionsT&& value) { SetRecommendedActions(std::forward<RecommendedActionsT>(value)); return *this;}
206 template<typename RecommendedActionsT = RecommendedAction>
207 DBRecommendation& AddRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value)); return *this; }
209
211
218 inline const Aws::String& GetCategory() const { return m_category; }
219 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
220 template<typename CategoryT = Aws::String>
221 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
222 template<typename CategoryT = Aws::String>
223 DBRecommendation& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
225
227
230 inline const Aws::String& GetSource() const { return m_source; }
231 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
232 template<typename SourceT = Aws::String>
233 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
234 template<typename SourceT = Aws::String>
235 DBRecommendation& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
237
239
243 inline const Aws::String& GetTypeDetection() const { return m_typeDetection; }
244 inline bool TypeDetectionHasBeenSet() const { return m_typeDetectionHasBeenSet; }
245 template<typename TypeDetectionT = Aws::String>
246 void SetTypeDetection(TypeDetectionT&& value) { m_typeDetectionHasBeenSet = true; m_typeDetection = std::forward<TypeDetectionT>(value); }
247 template<typename TypeDetectionT = Aws::String>
248 DBRecommendation& WithTypeDetection(TypeDetectionT&& value) { SetTypeDetection(std::forward<TypeDetectionT>(value)); return *this;}
250
252
256 inline const Aws::String& GetTypeRecommendation() const { return m_typeRecommendation; }
257 inline bool TypeRecommendationHasBeenSet() const { return m_typeRecommendationHasBeenSet; }
258 template<typename TypeRecommendationT = Aws::String>
259 void SetTypeRecommendation(TypeRecommendationT&& value) { m_typeRecommendationHasBeenSet = true; m_typeRecommendation = std::forward<TypeRecommendationT>(value); }
260 template<typename TypeRecommendationT = Aws::String>
261 DBRecommendation& WithTypeRecommendation(TypeRecommendationT&& value) { SetTypeRecommendation(std::forward<TypeRecommendationT>(value)); return *this;}
263
265
268 inline const Aws::String& GetImpact() const { return m_impact; }
269 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
270 template<typename ImpactT = Aws::String>
271 void SetImpact(ImpactT&& value) { m_impactHasBeenSet = true; m_impact = std::forward<ImpactT>(value); }
272 template<typename ImpactT = Aws::String>
273 DBRecommendation& WithImpact(ImpactT&& value) { SetImpact(std::forward<ImpactT>(value)); return *this;}
275
277
281 inline const Aws::String& GetAdditionalInfo() const { return m_additionalInfo; }
282 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
283 template<typename AdditionalInfoT = Aws::String>
284 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
285 template<typename AdditionalInfoT = Aws::String>
286 DBRecommendation& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
288
290
294 inline const Aws::Vector<DocLink>& GetLinks() const { return m_links; }
295 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
296 template<typename LinksT = Aws::Vector<DocLink>>
297 void SetLinks(LinksT&& value) { m_linksHasBeenSet = true; m_links = std::forward<LinksT>(value); }
298 template<typename LinksT = Aws::Vector<DocLink>>
299 DBRecommendation& WithLinks(LinksT&& value) { SetLinks(std::forward<LinksT>(value)); return *this;}
300 template<typename LinksT = DocLink>
301 DBRecommendation& AddLinks(LinksT&& value) { m_linksHasBeenSet = true; m_links.emplace_back(std::forward<LinksT>(value)); return *this; }
303
305
308 inline const IssueDetails& GetIssueDetails() const { return m_issueDetails; }
309 inline bool IssueDetailsHasBeenSet() const { return m_issueDetailsHasBeenSet; }
310 template<typename IssueDetailsT = IssueDetails>
311 void SetIssueDetails(IssueDetailsT&& value) { m_issueDetailsHasBeenSet = true; m_issueDetails = std::forward<IssueDetailsT>(value); }
312 template<typename IssueDetailsT = IssueDetails>
313 DBRecommendation& WithIssueDetails(IssueDetailsT&& value) { SetIssueDetails(std::forward<IssueDetailsT>(value)); return *this;}
315 private:
316
317 Aws::String m_recommendationId;
318 bool m_recommendationIdHasBeenSet = false;
319
320 Aws::String m_typeId;
321 bool m_typeIdHasBeenSet = false;
322
323 Aws::String m_severity;
324 bool m_severityHasBeenSet = false;
325
326 Aws::String m_resourceArn;
327 bool m_resourceArnHasBeenSet = false;
328
329 Aws::String m_status;
330 bool m_statusHasBeenSet = false;
331
332 Aws::Utils::DateTime m_createdTime{};
333 bool m_createdTimeHasBeenSet = false;
334
335 Aws::Utils::DateTime m_updatedTime{};
336 bool m_updatedTimeHasBeenSet = false;
337
338 Aws::String m_detection;
339 bool m_detectionHasBeenSet = false;
340
341 Aws::String m_recommendation;
342 bool m_recommendationHasBeenSet = false;
343
344 Aws::String m_description;
345 bool m_descriptionHasBeenSet = false;
346
347 Aws::String m_reason;
348 bool m_reasonHasBeenSet = false;
349
350 Aws::Vector<RecommendedAction> m_recommendedActions;
351 bool m_recommendedActionsHasBeenSet = false;
352
353 Aws::String m_category;
354 bool m_categoryHasBeenSet = false;
355
356 Aws::String m_source;
357 bool m_sourceHasBeenSet = false;
358
359 Aws::String m_typeDetection;
360 bool m_typeDetectionHasBeenSet = false;
361
362 Aws::String m_typeRecommendation;
363 bool m_typeRecommendationHasBeenSet = false;
364
365 Aws::String m_impact;
366 bool m_impactHasBeenSet = false;
367
368 Aws::String m_additionalInfo;
369 bool m_additionalInfoHasBeenSet = false;
370
371 Aws::Vector<DocLink> m_links;
372 bool m_linksHasBeenSet = false;
373
374 IssueDetails m_issueDetails;
375 bool m_issueDetailsHasBeenSet = false;
376 };
377
378} // namespace Model
379} // namespace RDS
380} // 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