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/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/RecommendationRelatedAnomaly.h>
11#include <aws/devops-guru/model/RecommendationRelatedEvent.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru {
23namespace Model {
24
32 public:
33 AWS_DEVOPSGURU_API Recommendation() = default;
34 AWS_DEVOPSGURU_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSGURU_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 Recommendation& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetLink() const { return m_link; }
61 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
62 template <typename LinkT = Aws::String>
63 void SetLink(LinkT&& value) {
64 m_linkHasBeenSet = true;
65 m_link = std::forward<LinkT>(value);
66 }
67 template <typename LinkT = Aws::String>
68 Recommendation& WithLink(LinkT&& value) {
69 SetLink(std::forward<LinkT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 Recommendation& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetReason() const { return m_reason; }
97 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
98 template <typename ReasonT = Aws::String>
99 void SetReason(ReasonT&& value) {
100 m_reasonHasBeenSet = true;
101 m_reason = std::forward<ReasonT>(value);
102 }
103 template <typename ReasonT = Aws::String>
104 Recommendation& WithReason(ReasonT&& value) {
105 SetReason(std::forward<ReasonT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<RecommendationRelatedEvent>& GetRelatedEvents() const { return m_relatedEvents; }
116 inline bool RelatedEventsHasBeenSet() const { return m_relatedEventsHasBeenSet; }
117 template <typename RelatedEventsT = Aws::Vector<RecommendationRelatedEvent>>
118 void SetRelatedEvents(RelatedEventsT&& value) {
119 m_relatedEventsHasBeenSet = true;
120 m_relatedEvents = std::forward<RelatedEventsT>(value);
121 }
122 template <typename RelatedEventsT = Aws::Vector<RecommendationRelatedEvent>>
123 Recommendation& WithRelatedEvents(RelatedEventsT&& value) {
124 SetRelatedEvents(std::forward<RelatedEventsT>(value));
125 return *this;
126 }
127 template <typename RelatedEventsT = RecommendationRelatedEvent>
128 Recommendation& AddRelatedEvents(RelatedEventsT&& value) {
129 m_relatedEventsHasBeenSet = true;
130 m_relatedEvents.emplace_back(std::forward<RelatedEventsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<RecommendationRelatedAnomaly>& GetRelatedAnomalies() const { return m_relatedAnomalies; }
141 inline bool RelatedAnomaliesHasBeenSet() const { return m_relatedAnomaliesHasBeenSet; }
142 template <typename RelatedAnomaliesT = Aws::Vector<RecommendationRelatedAnomaly>>
143 void SetRelatedAnomalies(RelatedAnomaliesT&& value) {
144 m_relatedAnomaliesHasBeenSet = true;
145 m_relatedAnomalies = std::forward<RelatedAnomaliesT>(value);
146 }
147 template <typename RelatedAnomaliesT = Aws::Vector<RecommendationRelatedAnomaly>>
148 Recommendation& WithRelatedAnomalies(RelatedAnomaliesT&& value) {
149 SetRelatedAnomalies(std::forward<RelatedAnomaliesT>(value));
150 return *this;
151 }
152 template <typename RelatedAnomaliesT = RecommendationRelatedAnomaly>
153 Recommendation& AddRelatedAnomalies(RelatedAnomaliesT&& value) {
154 m_relatedAnomaliesHasBeenSet = true;
155 m_relatedAnomalies.emplace_back(std::forward<RelatedAnomaliesT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetCategory() const { return m_category; }
165 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
166 template <typename CategoryT = Aws::String>
167 void SetCategory(CategoryT&& value) {
168 m_categoryHasBeenSet = true;
169 m_category = std::forward<CategoryT>(value);
170 }
171 template <typename CategoryT = Aws::String>
172 Recommendation& WithCategory(CategoryT&& value) {
173 SetCategory(std::forward<CategoryT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_description;
179
180 Aws::String m_link;
181
182 Aws::String m_name;
183
184 Aws::String m_reason;
185
187
189
190 Aws::String m_category;
191 bool m_descriptionHasBeenSet = false;
192 bool m_linkHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_reasonHasBeenSet = false;
195 bool m_relatedEventsHasBeenSet = false;
196 bool m_relatedAnomaliesHasBeenSet = false;
197 bool m_categoryHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace DevOpsGuru
202} // namespace Aws
AWS_DEVOPSGURU_API Recommendation()=default
const Aws::String & GetLink() const
const Aws::String & GetCategory() const
const Aws::Vector< RecommendationRelatedEvent > & GetRelatedEvents() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
Recommendation & WithDescription(DescriptionT &&value)
Recommendation & AddRelatedEvents(RelatedEventsT &&value)
Recommendation & WithLink(LinkT &&value)
Recommendation & WithReason(ReasonT &&value)
AWS_DEVOPSGURU_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReason() const
Recommendation & WithRelatedEvents(RelatedEventsT &&value)
void SetRelatedAnomalies(RelatedAnomaliesT &&value)
Recommendation & WithRelatedAnomalies(RelatedAnomaliesT &&value)
void SetRelatedEvents(RelatedEventsT &&value)
Recommendation & WithCategory(CategoryT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< RecommendationRelatedAnomaly > & GetRelatedAnomalies() const
Recommendation & WithName(NameT &&value)
AWS_DEVOPSGURU_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
Recommendation & AddRelatedAnomalies(RelatedAnomaliesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue