AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Recommendation.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/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ImpactRankingType.h>
13#include <aws/redshift/model/RecommendedAction.h>
14#include <aws/redshift/model/ReferenceLink.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift {
25namespace Model {
26
34 public:
35 AWS_REDSHIFT_API Recommendation() = default;
36 AWS_REDSHIFT_API Recommendation(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API Recommendation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 Recommendation& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
66 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
67 template <typename ClusterIdentifierT = Aws::String>
68 void SetClusterIdentifier(ClusterIdentifierT&& value) {
69 m_clusterIdentifierHasBeenSet = true;
70 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
71 }
72 template <typename ClusterIdentifierT = Aws::String>
73 Recommendation& WithClusterIdentifier(ClusterIdentifierT&& value) {
74 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetNamespaceArn() const { return m_namespaceArn; }
85 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
86 template <typename NamespaceArnT = Aws::String>
87 void SetNamespaceArn(NamespaceArnT&& value) {
88 m_namespaceArnHasBeenSet = true;
89 m_namespaceArn = std::forward<NamespaceArnT>(value);
90 }
91 template <typename NamespaceArnT = Aws::String>
92 Recommendation& WithNamespaceArn(NamespaceArnT&& value) {
93 SetNamespaceArn(std::forward<NamespaceArnT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 void SetCreatedAt(CreatedAtT&& value) {
106 m_createdAtHasBeenSet = true;
107 m_createdAt = std::forward<CreatedAtT>(value);
108 }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 Recommendation& WithCreatedAt(CreatedAtT&& value) {
111 SetCreatedAt(std::forward<CreatedAtT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetRecommendationType() const { return m_recommendationType; }
121 inline bool RecommendationTypeHasBeenSet() const { return m_recommendationTypeHasBeenSet; }
122 template <typename RecommendationTypeT = Aws::String>
123 void SetRecommendationType(RecommendationTypeT&& value) {
124 m_recommendationTypeHasBeenSet = true;
125 m_recommendationType = std::forward<RecommendationTypeT>(value);
126 }
127 template <typename RecommendationTypeT = Aws::String>
128 Recommendation& WithRecommendationType(RecommendationTypeT&& value) {
129 SetRecommendationType(std::forward<RecommendationTypeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetTitle() const { return m_title; }
139 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
140 template <typename TitleT = Aws::String>
141 void SetTitle(TitleT&& value) {
142 m_titleHasBeenSet = true;
143 m_title = std::forward<TitleT>(value);
144 }
145 template <typename TitleT = Aws::String>
146 Recommendation& WithTitle(TitleT&& value) {
147 SetTitle(std::forward<TitleT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDescription() const { return m_description; }
157 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
158 template <typename DescriptionT = Aws::String>
159 void SetDescription(DescriptionT&& value) {
160 m_descriptionHasBeenSet = true;
161 m_description = std::forward<DescriptionT>(value);
162 }
163 template <typename DescriptionT = Aws::String>
164 Recommendation& WithDescription(DescriptionT&& value) {
165 SetDescription(std::forward<DescriptionT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetObservation() const { return m_observation; }
175 inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; }
176 template <typename ObservationT = Aws::String>
177 void SetObservation(ObservationT&& value) {
178 m_observationHasBeenSet = true;
179 m_observation = std::forward<ObservationT>(value);
180 }
181 template <typename ObservationT = Aws::String>
182 Recommendation& WithObservation(ObservationT&& value) {
183 SetObservation(std::forward<ObservationT>(value));
184 return *this;
185 }
187
189
193 inline ImpactRankingType GetImpactRanking() const { return m_impactRanking; }
194 inline bool ImpactRankingHasBeenSet() const { return m_impactRankingHasBeenSet; }
196 m_impactRankingHasBeenSet = true;
197 m_impactRanking = value;
198 }
200 SetImpactRanking(value);
201 return *this;
202 }
204
206
209 inline const Aws::String& GetRecommendationText() const { return m_recommendationText; }
210 inline bool RecommendationTextHasBeenSet() const { return m_recommendationTextHasBeenSet; }
211 template <typename RecommendationTextT = Aws::String>
212 void SetRecommendationText(RecommendationTextT&& value) {
213 m_recommendationTextHasBeenSet = true;
214 m_recommendationText = std::forward<RecommendationTextT>(value);
215 }
216 template <typename RecommendationTextT = Aws::String>
217 Recommendation& WithRecommendationText(RecommendationTextT&& value) {
218 SetRecommendationText(std::forward<RecommendationTextT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::Vector<RecommendedAction>& GetRecommendedActions() const { return m_recommendedActions; }
228 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
229 template <typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
230 void SetRecommendedActions(RecommendedActionsT&& value) {
231 m_recommendedActionsHasBeenSet = true;
232 m_recommendedActions = std::forward<RecommendedActionsT>(value);
233 }
234 template <typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
235 Recommendation& WithRecommendedActions(RecommendedActionsT&& value) {
236 SetRecommendedActions(std::forward<RecommendedActionsT>(value));
237 return *this;
238 }
239 template <typename RecommendedActionsT = RecommendedAction>
240 Recommendation& AddRecommendedActions(RecommendedActionsT&& value) {
241 m_recommendedActionsHasBeenSet = true;
242 m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Vector<ReferenceLink>& GetReferenceLinks() const { return m_referenceLinks; }
253 inline bool ReferenceLinksHasBeenSet() const { return m_referenceLinksHasBeenSet; }
254 template <typename ReferenceLinksT = Aws::Vector<ReferenceLink>>
255 void SetReferenceLinks(ReferenceLinksT&& value) {
256 m_referenceLinksHasBeenSet = true;
257 m_referenceLinks = std::forward<ReferenceLinksT>(value);
258 }
259 template <typename ReferenceLinksT = Aws::Vector<ReferenceLink>>
260 Recommendation& WithReferenceLinks(ReferenceLinksT&& value) {
261 SetReferenceLinks(std::forward<ReferenceLinksT>(value));
262 return *this;
263 }
264 template <typename ReferenceLinksT = ReferenceLink>
265 Recommendation& AddReferenceLinks(ReferenceLinksT&& value) {
266 m_referenceLinksHasBeenSet = true;
267 m_referenceLinks.emplace_back(std::forward<ReferenceLinksT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_id;
273
274 Aws::String m_clusterIdentifier;
275
276 Aws::String m_namespaceArn;
277
278 Aws::Utils::DateTime m_createdAt{};
279
280 Aws::String m_recommendationType;
281
282 Aws::String m_title;
283
284 Aws::String m_description;
285
286 Aws::String m_observation;
287
289
290 Aws::String m_recommendationText;
291
292 Aws::Vector<RecommendedAction> m_recommendedActions;
293
294 Aws::Vector<ReferenceLink> m_referenceLinks;
295 bool m_idHasBeenSet = false;
296 bool m_clusterIdentifierHasBeenSet = false;
297 bool m_namespaceArnHasBeenSet = false;
298 bool m_createdAtHasBeenSet = false;
299 bool m_recommendationTypeHasBeenSet = false;
300 bool m_titleHasBeenSet = false;
301 bool m_descriptionHasBeenSet = false;
302 bool m_observationHasBeenSet = false;
303 bool m_impactRankingHasBeenSet = false;
304 bool m_recommendationTextHasBeenSet = false;
305 bool m_recommendedActionsHasBeenSet = false;
306 bool m_referenceLinksHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace Redshift
311} // namespace Aws
Recommendation & WithRecommendedActions(RecommendedActionsT &&value)
AWS_REDSHIFT_API Recommendation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Recommendation & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetNamespaceArn() const
void SetRecommendationText(RecommendationTextT &&value)
void SetNamespaceArn(NamespaceArnT &&value)
const Aws::Vector< RecommendedAction > & GetRecommendedActions() const
void SetClusterIdentifier(ClusterIdentifierT &&value)
void SetDescription(DescriptionT &&value)
Recommendation & AddRecommendedActions(RecommendedActionsT &&value)
Recommendation & WithRecommendationType(RecommendationTypeT &&value)
const Aws::String & GetClusterIdentifier() const
const Aws::String & GetId() const
Recommendation & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Recommendation & WithNamespaceArn(NamespaceArnT &&value)
const Aws::String & GetRecommendationText() const
void SetReferenceLinks(ReferenceLinksT &&value)
const Aws::String & GetDescription() const
void SetImpactRanking(ImpactRankingType value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< ReferenceLink > & GetReferenceLinks() const
Recommendation & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Recommendation & WithReferenceLinks(ReferenceLinksT &&value)
void SetRecommendationType(RecommendationTypeT &&value)
Recommendation & AddReferenceLinks(ReferenceLinksT &&value)
Recommendation & WithDescription(DescriptionT &&value)
Recommendation & WithObservation(ObservationT &&value)
AWS_REDSHIFT_API Recommendation(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRecommendationType() const
void SetCreatedAt(CreatedAtT &&value)
Recommendation & WithTitle(TitleT &&value)
Recommendation & WithImpactRanking(ImpactRankingType value)
AWS_REDSHIFT_API Recommendation()=default
const Aws::String & GetObservation() const
ImpactRankingType GetImpactRanking() const
void SetObservation(ObservationT &&value)
Recommendation & WithRecommendationText(RecommendationTextT &&value)
void SetRecommendedActions(RecommendedActionsT &&value)
const Aws::String & GetTitle() 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