AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
TestRecommendation.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/resiliencehub/ResilienceHub_EXPORTS.h>
10#include <aws/resiliencehub/model/RecommendationItem.h>
11#include <aws/resiliencehub/model/RecommendationStatus.h>
12#include <aws/resiliencehub/model/TestRisk.h>
13#include <aws/resiliencehub/model/TestType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub {
25namespace Model {
26
33 public:
34 AWS_RESILIENCEHUB_API TestRecommendation() = default;
35 AWS_RESILIENCEHUB_API TestRecommendation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUB_API TestRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAppComponentId() const { return m_appComponentId; }
44 inline bool AppComponentIdHasBeenSet() const { return m_appComponentIdHasBeenSet; }
45 template <typename AppComponentIdT = Aws::String>
46 void SetAppComponentId(AppComponentIdT&& value) {
47 m_appComponentIdHasBeenSet = true;
48 m_appComponentId = std::forward<AppComponentIdT>(value);
49 }
50 template <typename AppComponentIdT = Aws::String>
51 TestRecommendation& WithAppComponentId(AppComponentIdT&& value) {
52 SetAppComponentId(std::forward<AppComponentIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAppComponentName() const { return m_appComponentName; }
62 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
63 template <typename AppComponentNameT = Aws::String>
64 void SetAppComponentName(AppComponentNameT&& value) {
65 m_appComponentNameHasBeenSet = true;
66 m_appComponentName = std::forward<AppComponentNameT>(value);
67 }
68 template <typename AppComponentNameT = Aws::String>
69 TestRecommendation& WithAppComponentName(AppComponentNameT&& value) {
70 SetAppComponentName(std::forward<AppComponentNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetDependsOnAlarms() const { return m_dependsOnAlarms; }
81 inline bool DependsOnAlarmsHasBeenSet() const { return m_dependsOnAlarmsHasBeenSet; }
82 template <typename DependsOnAlarmsT = Aws::Vector<Aws::String>>
83 void SetDependsOnAlarms(DependsOnAlarmsT&& value) {
84 m_dependsOnAlarmsHasBeenSet = true;
85 m_dependsOnAlarms = std::forward<DependsOnAlarmsT>(value);
86 }
87 template <typename DependsOnAlarmsT = Aws::Vector<Aws::String>>
88 TestRecommendation& WithDependsOnAlarms(DependsOnAlarmsT&& value) {
89 SetDependsOnAlarms(std::forward<DependsOnAlarmsT>(value));
90 return *this;
91 }
92 template <typename DependsOnAlarmsT = Aws::String>
93 TestRecommendation& AddDependsOnAlarms(DependsOnAlarmsT&& value) {
94 m_dependsOnAlarmsHasBeenSet = true;
95 m_dependsOnAlarms.emplace_back(std::forward<DependsOnAlarmsT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 TestRecommendation& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetIntent() const { return m_intent; }
123 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
124 template <typename IntentT = Aws::String>
125 void SetIntent(IntentT&& value) {
126 m_intentHasBeenSet = true;
127 m_intent = std::forward<IntentT>(value);
128 }
129 template <typename IntentT = Aws::String>
130 TestRecommendation& WithIntent(IntentT&& value) {
131 SetIntent(std::forward<IntentT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
141 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
142 template <typename ItemsT = Aws::Vector<RecommendationItem>>
143 void SetItems(ItemsT&& value) {
144 m_itemsHasBeenSet = true;
145 m_items = std::forward<ItemsT>(value);
146 }
147 template <typename ItemsT = Aws::Vector<RecommendationItem>>
148 TestRecommendation& WithItems(ItemsT&& value) {
149 SetItems(std::forward<ItemsT>(value));
150 return *this;
151 }
152 template <typename ItemsT = RecommendationItem>
153 TestRecommendation& AddItems(ItemsT&& value) {
154 m_itemsHasBeenSet = true;
155 m_items.emplace_back(std::forward<ItemsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetName() const { return m_name; }
165 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
166 template <typename NameT = Aws::String>
167 void SetName(NameT&& value) {
168 m_nameHasBeenSet = true;
169 m_name = std::forward<NameT>(value);
170 }
171 template <typename NameT = Aws::String>
172 TestRecommendation& WithName(NameT&& value) {
173 SetName(std::forward<NameT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
183 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
184 template <typename PrerequisiteT = Aws::String>
185 void SetPrerequisite(PrerequisiteT&& value) {
186 m_prerequisiteHasBeenSet = true;
187 m_prerequisite = std::forward<PrerequisiteT>(value);
188 }
189 template <typename PrerequisiteT = Aws::String>
190 TestRecommendation& WithPrerequisite(PrerequisiteT&& value) {
191 SetPrerequisite(std::forward<PrerequisiteT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
201 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
202 template <typename RecommendationIdT = Aws::String>
203 void SetRecommendationId(RecommendationIdT&& value) {
204 m_recommendationIdHasBeenSet = true;
205 m_recommendationId = std::forward<RecommendationIdT>(value);
206 }
207 template <typename RecommendationIdT = Aws::String>
208 TestRecommendation& WithRecommendationId(RecommendationIdT&& value) {
209 SetRecommendationId(std::forward<RecommendationIdT>(value));
210 return *this;
211 }
213
215
218 inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
219 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
221 m_recommendationStatusHasBeenSet = true;
222 m_recommendationStatus = value;
223 }
226 return *this;
227 }
229
231
234 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
235 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
236 template <typename ReferenceIdT = Aws::String>
237 void SetReferenceId(ReferenceIdT&& value) {
238 m_referenceIdHasBeenSet = true;
239 m_referenceId = std::forward<ReferenceIdT>(value);
240 }
241 template <typename ReferenceIdT = Aws::String>
242 TestRecommendation& WithReferenceId(ReferenceIdT&& value) {
243 SetReferenceId(std::forward<ReferenceIdT>(value));
244 return *this;
245 }
247
249
252 inline TestRisk GetRisk() const { return m_risk; }
253 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
254 inline void SetRisk(TestRisk value) {
255 m_riskHasBeenSet = true;
256 m_risk = value;
257 }
259 SetRisk(value);
260 return *this;
261 }
263
265
268 inline TestType GetType() const { return m_type; }
269 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
270 inline void SetType(TestType value) {
271 m_typeHasBeenSet = true;
272 m_type = value;
273 }
275 SetType(value);
276 return *this;
277 }
279 private:
280 Aws::String m_appComponentId;
281
282 Aws::String m_appComponentName;
283
284 Aws::Vector<Aws::String> m_dependsOnAlarms;
285
286 Aws::String m_description;
287
288 Aws::String m_intent;
289
291
292 Aws::String m_name;
293
294 Aws::String m_prerequisite;
295
296 Aws::String m_recommendationId;
297
299
300 Aws::String m_referenceId;
301
303
305 bool m_appComponentIdHasBeenSet = false;
306 bool m_appComponentNameHasBeenSet = false;
307 bool m_dependsOnAlarmsHasBeenSet = false;
308 bool m_descriptionHasBeenSet = false;
309 bool m_intentHasBeenSet = false;
310 bool m_itemsHasBeenSet = false;
311 bool m_nameHasBeenSet = false;
312 bool m_prerequisiteHasBeenSet = false;
313 bool m_recommendationIdHasBeenSet = false;
314 bool m_recommendationStatusHasBeenSet = false;
315 bool m_referenceIdHasBeenSet = false;
316 bool m_riskHasBeenSet = false;
317 bool m_typeHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace ResilienceHub
322} // namespace Aws
TestRecommendation & WithPrerequisite(PrerequisiteT &&value)
RecommendationStatus GetRecommendationStatus() const
TestRecommendation & WithDependsOnAlarms(DependsOnAlarmsT &&value)
TestRecommendation & WithItems(ItemsT &&value)
void SetRecommendationId(RecommendationIdT &&value)
TestRecommendation & WithRecommendationId(RecommendationIdT &&value)
AWS_RESILIENCEHUB_API TestRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API TestRecommendation(Aws::Utils::Json::JsonView jsonValue)
TestRecommendation & WithAppComponentName(AppComponentNameT &&value)
TestRecommendation & WithReferenceId(ReferenceIdT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
TestRecommendation & WithRecommendationStatus(RecommendationStatus value)
TestRecommendation & AddDependsOnAlarms(DependsOnAlarmsT &&value)
TestRecommendation & WithName(NameT &&value)
TestRecommendation & WithAppComponentId(AppComponentIdT &&value)
const Aws::Vector< RecommendationItem > & GetItems() const
AWS_RESILIENCEHUB_API TestRecommendation()=default
void SetDependsOnAlarms(DependsOnAlarmsT &&value)
TestRecommendation & WithType(TestType value)
void SetAppComponentName(AppComponentNameT &&value)
void SetRecommendationStatus(RecommendationStatus value)
TestRecommendation & WithIntent(IntentT &&value)
TestRecommendation & WithRisk(TestRisk value)
TestRecommendation & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetDependsOnAlarms() const
TestRecommendation & AddItems(ItemsT &&value)
void SetAppComponentId(AppComponentIdT &&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