AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 Recommendation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
69 template<typename ClusterIdentifierT = Aws::String>
70 Recommendation& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
72
74
78 inline const Aws::String& GetNamespaceArn() const { return m_namespaceArn; }
79 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
80 template<typename NamespaceArnT = Aws::String>
81 void SetNamespaceArn(NamespaceArnT&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::forward<NamespaceArnT>(value); }
82 template<typename NamespaceArnT = Aws::String>
83 Recommendation& WithNamespaceArn(NamespaceArnT&& value) { SetNamespaceArn(std::forward<NamespaceArnT>(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 Recommendation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
97
99
102 inline const Aws::String& GetRecommendationType() const { return m_recommendationType; }
103 inline bool RecommendationTypeHasBeenSet() const { return m_recommendationTypeHasBeenSet; }
104 template<typename RecommendationTypeT = Aws::String>
105 void SetRecommendationType(RecommendationTypeT&& value) { m_recommendationTypeHasBeenSet = true; m_recommendationType = std::forward<RecommendationTypeT>(value); }
106 template<typename RecommendationTypeT = Aws::String>
107 Recommendation& WithRecommendationType(RecommendationTypeT&& value) { SetRecommendationType(std::forward<RecommendationTypeT>(value)); return *this;}
109
111
114 inline const Aws::String& GetTitle() const { return m_title; }
115 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
116 template<typename TitleT = Aws::String>
117 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
118 template<typename TitleT = Aws::String>
119 Recommendation& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template<typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
130 template<typename DescriptionT = Aws::String>
131 Recommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
133
135
138 inline const Aws::String& GetObservation() const { return m_observation; }
139 inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; }
140 template<typename ObservationT = Aws::String>
141 void SetObservation(ObservationT&& value) { m_observationHasBeenSet = true; m_observation = std::forward<ObservationT>(value); }
142 template<typename ObservationT = Aws::String>
143 Recommendation& WithObservation(ObservationT&& value) { SetObservation(std::forward<ObservationT>(value)); return *this;}
145
147
151 inline ImpactRankingType GetImpactRanking() const { return m_impactRanking; }
152 inline bool ImpactRankingHasBeenSet() const { return m_impactRankingHasBeenSet; }
153 inline void SetImpactRanking(ImpactRankingType value) { m_impactRankingHasBeenSet = true; m_impactRanking = value; }
156
158
161 inline const Aws::String& GetRecommendationText() const { return m_recommendationText; }
162 inline bool RecommendationTextHasBeenSet() const { return m_recommendationTextHasBeenSet; }
163 template<typename RecommendationTextT = Aws::String>
164 void SetRecommendationText(RecommendationTextT&& value) { m_recommendationTextHasBeenSet = true; m_recommendationText = std::forward<RecommendationTextT>(value); }
165 template<typename RecommendationTextT = Aws::String>
166 Recommendation& WithRecommendationText(RecommendationTextT&& value) { SetRecommendationText(std::forward<RecommendationTextT>(value)); return *this;}
168
170
173 inline const Aws::Vector<RecommendedAction>& GetRecommendedActions() const { return m_recommendedActions; }
174 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
175 template<typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
176 void SetRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = std::forward<RecommendedActionsT>(value); }
177 template<typename RecommendedActionsT = Aws::Vector<RecommendedAction>>
178 Recommendation& WithRecommendedActions(RecommendedActionsT&& value) { SetRecommendedActions(std::forward<RecommendedActionsT>(value)); return *this;}
179 template<typename RecommendedActionsT = RecommendedAction>
180 Recommendation& AddRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value)); return *this; }
182
184
188 inline const Aws::Vector<ReferenceLink>& GetReferenceLinks() const { return m_referenceLinks; }
189 inline bool ReferenceLinksHasBeenSet() const { return m_referenceLinksHasBeenSet; }
190 template<typename ReferenceLinksT = Aws::Vector<ReferenceLink>>
191 void SetReferenceLinks(ReferenceLinksT&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks = std::forward<ReferenceLinksT>(value); }
192 template<typename ReferenceLinksT = Aws::Vector<ReferenceLink>>
193 Recommendation& WithReferenceLinks(ReferenceLinksT&& value) { SetReferenceLinks(std::forward<ReferenceLinksT>(value)); return *this;}
194 template<typename ReferenceLinksT = ReferenceLink>
195 Recommendation& AddReferenceLinks(ReferenceLinksT&& value) { m_referenceLinksHasBeenSet = true; m_referenceLinks.emplace_back(std::forward<ReferenceLinksT>(value)); return *this; }
197 private:
198
199 Aws::String m_id;
200 bool m_idHasBeenSet = false;
201
202 Aws::String m_clusterIdentifier;
203 bool m_clusterIdentifierHasBeenSet = false;
204
205 Aws::String m_namespaceArn;
206 bool m_namespaceArnHasBeenSet = false;
207
208 Aws::Utils::DateTime m_createdAt{};
209 bool m_createdAtHasBeenSet = false;
210
211 Aws::String m_recommendationType;
212 bool m_recommendationTypeHasBeenSet = false;
213
214 Aws::String m_title;
215 bool m_titleHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 Aws::String m_observation;
221 bool m_observationHasBeenSet = false;
222
224 bool m_impactRankingHasBeenSet = false;
225
226 Aws::String m_recommendationText;
227 bool m_recommendationTextHasBeenSet = false;
228
229 Aws::Vector<RecommendedAction> m_recommendedActions;
230 bool m_recommendedActionsHasBeenSet = false;
231
232 Aws::Vector<ReferenceLink> m_referenceLinks;
233 bool m_referenceLinksHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace Redshift
238} // 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