AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/redshift/Redshift_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/redshift/model/ImpactRankingType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/redshift/model/RecommendedAction.h>
14#include <aws/redshift/model/ReferenceLink.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_REDSHIFT_API Recommendation();
41 AWS_REDSHIFT_API Recommendation(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_REDSHIFT_API Recommendation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline Recommendation& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Recommendation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Recommendation& WithId(const char* value) { SetId(value); return *this;}
61
63
67 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
68 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
69 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
70 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
71 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
72 inline Recommendation& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
73 inline Recommendation& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
74 inline Recommendation& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
76
78
82 inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; }
83 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
84 inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; }
85 inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); }
86 inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); }
87 inline Recommendation& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;}
88 inline Recommendation& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;}
89 inline Recommendation& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
99 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
100 inline Recommendation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
101 inline Recommendation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetRecommendationType() const{ return m_recommendationType; }
109 inline bool RecommendationTypeHasBeenSet() const { return m_recommendationTypeHasBeenSet; }
110 inline void SetRecommendationType(const Aws::String& value) { m_recommendationTypeHasBeenSet = true; m_recommendationType = value; }
111 inline void SetRecommendationType(Aws::String&& value) { m_recommendationTypeHasBeenSet = true; m_recommendationType = std::move(value); }
112 inline void SetRecommendationType(const char* value) { m_recommendationTypeHasBeenSet = true; m_recommendationType.assign(value); }
113 inline Recommendation& WithRecommendationType(const Aws::String& value) { SetRecommendationType(value); return *this;}
114 inline Recommendation& WithRecommendationType(Aws::String&& value) { SetRecommendationType(std::move(value)); return *this;}
115 inline Recommendation& WithRecommendationType(const char* value) { SetRecommendationType(value); return *this;}
117
119
122 inline const Aws::String& GetTitle() const{ return m_title; }
123 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
124 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
125 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
126 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
127 inline Recommendation& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
128 inline Recommendation& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
129 inline Recommendation& WithTitle(const char* value) { SetTitle(value); return *this;}
131
133
136 inline const Aws::String& GetDescription() const{ return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
140 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
141 inline Recommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
142 inline Recommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
143 inline Recommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
145
147
150 inline const Aws::String& GetObservation() const{ return m_observation; }
151 inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; }
152 inline void SetObservation(const Aws::String& value) { m_observationHasBeenSet = true; m_observation = value; }
153 inline void SetObservation(Aws::String&& value) { m_observationHasBeenSet = true; m_observation = std::move(value); }
154 inline void SetObservation(const char* value) { m_observationHasBeenSet = true; m_observation.assign(value); }
155 inline Recommendation& WithObservation(const Aws::String& value) { SetObservation(value); return *this;}
156 inline Recommendation& WithObservation(Aws::String&& value) { SetObservation(std::move(value)); return *this;}
157 inline Recommendation& WithObservation(const char* value) { SetObservation(value); return *this;}
159
161
165 inline const ImpactRankingType& GetImpactRanking() const{ return m_impactRanking; }
166 inline bool ImpactRankingHasBeenSet() const { return m_impactRankingHasBeenSet; }
167 inline void SetImpactRanking(const ImpactRankingType& value) { m_impactRankingHasBeenSet = true; m_impactRanking = value; }
168 inline void SetImpactRanking(ImpactRankingType&& value) { m_impactRankingHasBeenSet = true; m_impactRanking = std::move(value); }
169 inline Recommendation& WithImpactRanking(const ImpactRankingType& value) { SetImpactRanking(value); return *this;}
170 inline Recommendation& WithImpactRanking(ImpactRankingType&& value) { SetImpactRanking(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetRecommendationText() const{ return m_recommendationText; }
178 inline bool RecommendationTextHasBeenSet() const { return m_recommendationTextHasBeenSet; }
179 inline void SetRecommendationText(const Aws::String& value) { m_recommendationTextHasBeenSet = true; m_recommendationText = value; }
180 inline void SetRecommendationText(Aws::String&& value) { m_recommendationTextHasBeenSet = true; m_recommendationText = std::move(value); }
181 inline void SetRecommendationText(const char* value) { m_recommendationTextHasBeenSet = true; m_recommendationText.assign(value); }
182 inline Recommendation& WithRecommendationText(const Aws::String& value) { SetRecommendationText(value); return *this;}
183 inline Recommendation& WithRecommendationText(Aws::String&& value) { SetRecommendationText(std::move(value)); return *this;}
184 inline Recommendation& WithRecommendationText(const char* value) { SetRecommendationText(value); return *this;}
186
188
191 inline const Aws::Vector<RecommendedAction>& GetRecommendedActions() const{ return m_recommendedActions; }
192 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
193 inline void SetRecommendedActions(const Aws::Vector<RecommendedAction>& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = value; }
194 inline void SetRecommendedActions(Aws::Vector<RecommendedAction>&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = std::move(value); }
197 inline Recommendation& AddRecommendedActions(const RecommendedAction& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.push_back(value); return *this; }
198 inline Recommendation& AddRecommendedActions(RecommendedAction&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.push_back(std::move(value)); return *this; }
200
202
206 inline const Aws::Vector<ReferenceLink>& GetReferenceLinks() const{ return m_referenceLinks; }
207 inline bool ReferenceLinksHasBeenSet() const { return m_referenceLinksHasBeenSet; }
208 inline void SetReferenceLinks(const Aws::Vector<ReferenceLink>& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks = value; }
209 inline void SetReferenceLinks(Aws::Vector<ReferenceLink>&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks = std::move(value); }
211 inline Recommendation& WithReferenceLinks(Aws::Vector<ReferenceLink>&& value) { SetReferenceLinks(std::move(value)); return *this;}
212 inline Recommendation& AddReferenceLinks(const ReferenceLink& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks.push_back(value); return *this; }
213 inline Recommendation& AddReferenceLinks(ReferenceLink&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks.push_back(std::move(value)); return *this; }
215 private:
216
217 Aws::String m_id;
218 bool m_idHasBeenSet = false;
219
220 Aws::String m_clusterIdentifier;
221 bool m_clusterIdentifierHasBeenSet = false;
222
223 Aws::String m_namespaceArn;
224 bool m_namespaceArnHasBeenSet = false;
225
226 Aws::Utils::DateTime m_createdAt;
227 bool m_createdAtHasBeenSet = false;
228
229 Aws::String m_recommendationType;
230 bool m_recommendationTypeHasBeenSet = false;
231
232 Aws::String m_title;
233 bool m_titleHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::String m_observation;
239 bool m_observationHasBeenSet = false;
240
241 ImpactRankingType m_impactRanking;
242 bool m_impactRankingHasBeenSet = false;
243
244 Aws::String m_recommendationText;
245 bool m_recommendationTextHasBeenSet = false;
246
247 Aws::Vector<RecommendedAction> m_recommendedActions;
248 bool m_recommendedActionsHasBeenSet = false;
249
250 Aws::Vector<ReferenceLink> m_referenceLinks;
251 bool m_referenceLinksHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace Redshift
256} // namespace Aws
Recommendation & WithId(const Aws::String &value)
void SetRecommendationType(Aws::String &&value)
AWS_REDSHIFT_API Recommendation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Recommendation & WithRecommendationText(const char *value)
const Aws::String & GetNamespaceArn() const
Recommendation & WithTitle(const Aws::String &value)
Recommendation & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< RecommendedAction > & GetRecommendedActions() const
Recommendation & WithReferenceLinks(Aws::Vector< ReferenceLink > &&value)
Recommendation & WithClusterIdentifier(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Recommendation & WithObservation(Aws::String &&value)
Recommendation & WithTitle(const char *value)
void SetObservation(Aws::String &&value)
Recommendation & WithNamespaceArn(const char *value)
const Aws::String & GetClusterIdentifier() const
void SetObservation(const Aws::String &value)
const ImpactRankingType & GetImpactRanking() const
Recommendation & WithRecommendationText(const Aws::String &value)
const Aws::String & GetId() const
Recommendation & WithRecommendedActions(Aws::Vector< RecommendedAction > &&value)
Recommendation & WithNamespaceArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetRecommendedActions(Aws::Vector< RecommendedAction > &&value)
void SetClusterIdentifier(const Aws::String &value)
void SetObservation(const char *value)
Recommendation & WithObservation(const char *value)
const Aws::String & GetRecommendationText() const
void SetImpactRanking(ImpactRankingType &&value)
void SetRecommendationType(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
void SetReferenceLinks(const Aws::Vector< ReferenceLink > &value)
const Aws::String & GetDescription() const
void SetTitle(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRecommendedActions(const Aws::Vector< RecommendedAction > &value)
Recommendation & WithImpactRanking(const ImpactRankingType &value)
Recommendation & WithNamespaceArn(const Aws::String &value)
void SetTitle(Aws::String &&value)
void SetNamespaceArn(const char *value)
const Aws::Vector< ReferenceLink > & GetReferenceLinks() const
void SetReferenceLinks(Aws::Vector< ReferenceLink > &&value)
Recommendation & AddRecommendedActions(RecommendedAction &&value)
Recommendation & WithId(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Recommendation & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetDescription(Aws::String &&value)
Recommendation & WithRecommendationText(Aws::String &&value)
Recommendation & WithDescription(const char *value)
void SetId(const Aws::String &value)
void SetClusterIdentifier(const char *value)
Recommendation & WithRecommendedActions(const Aws::Vector< RecommendedAction > &value)
void SetRecommendationType(const char *value)
Recommendation & AddReferenceLinks(const ReferenceLink &value)
void SetRecommendationText(const Aws::String &value)
Recommendation & WithId(Aws::String &&value)
void SetClusterIdentifier(Aws::String &&value)
Recommendation & WithDescription(Aws::String &&value)
Recommendation & WithImpactRanking(ImpactRankingType &&value)
Recommendation & AddRecommendedActions(const RecommendedAction &value)
Recommendation & WithClusterIdentifier(Aws::String &&value)
AWS_REDSHIFT_API Recommendation(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRecommendationType() const
void SetImpactRanking(const ImpactRankingType &value)
const Aws::String & GetObservation() const
Recommendation & AddReferenceLinks(ReferenceLink &&value)
Recommendation & WithTitle(Aws::String &&value)
void SetNamespaceArn(const Aws::String &value)
void SetDescription(const char *value)
Recommendation & WithDescription(const Aws::String &value)
Recommendation & WithClusterIdentifier(const Aws::String &value)
Recommendation & WithReferenceLinks(const Aws::Vector< ReferenceLink > &value)
Recommendation & WithRecommendationType(const char *value)
Recommendation & WithRecommendationType(Aws::String &&value)
void SetRecommendationText(const char *value)
void SetNamespaceArn(Aws::String &&value)
Recommendation & WithRecommendationType(const Aws::String &value)
void SetRecommendationText(Aws::String &&value)
const Aws::String & GetTitle() const
Recommendation & WithObservation(const Aws::String &value)
void SetId(Aws::String &&value)
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