AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestRecommendation.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/model/RecommendationStatus.h>
11#include <aws/resiliencehub/model/TestRisk.h>
12#include <aws/resiliencehub/model/TestType.h>
13#include <aws/resiliencehub/model/RecommendationItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ResilienceHub
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_RESILIENCEHUB_API TestRecommendation();
40 AWS_RESILIENCEHUB_API TestRecommendation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API TestRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAppComponentName() const{ return m_appComponentName; }
50 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
51 inline void SetAppComponentName(const Aws::String& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = value; }
52 inline void SetAppComponentName(Aws::String&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::move(value); }
53 inline void SetAppComponentName(const char* value) { m_appComponentNameHasBeenSet = true; m_appComponentName.assign(value); }
54 inline TestRecommendation& WithAppComponentName(const Aws::String& value) { SetAppComponentName(value); return *this;}
55 inline TestRecommendation& WithAppComponentName(Aws::String&& value) { SetAppComponentName(std::move(value)); return *this;}
56 inline TestRecommendation& WithAppComponentName(const char* value) { SetAppComponentName(value); return *this;}
58
60
64 inline const Aws::Vector<Aws::String>& GetDependsOnAlarms() const{ return m_dependsOnAlarms; }
65 inline bool DependsOnAlarmsHasBeenSet() const { return m_dependsOnAlarmsHasBeenSet; }
66 inline void SetDependsOnAlarms(const Aws::Vector<Aws::String>& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms = value; }
67 inline void SetDependsOnAlarms(Aws::Vector<Aws::String>&& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms = std::move(value); }
69 inline TestRecommendation& WithDependsOnAlarms(Aws::Vector<Aws::String>&& value) { SetDependsOnAlarms(std::move(value)); return *this;}
70 inline TestRecommendation& AddDependsOnAlarms(const Aws::String& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms.push_back(value); return *this; }
71 inline TestRecommendation& AddDependsOnAlarms(Aws::String&& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms.push_back(std::move(value)); return *this; }
72 inline TestRecommendation& AddDependsOnAlarms(const char* value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms.push_back(value); return *this; }
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline TestRecommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline TestRecommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline TestRecommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::String& GetIntent() const{ return m_intent; }
94 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
95 inline void SetIntent(const Aws::String& value) { m_intentHasBeenSet = true; m_intent = value; }
96 inline void SetIntent(Aws::String&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); }
97 inline void SetIntent(const char* value) { m_intentHasBeenSet = true; m_intent.assign(value); }
98 inline TestRecommendation& WithIntent(const Aws::String& value) { SetIntent(value); return *this;}
99 inline TestRecommendation& WithIntent(Aws::String&& value) { SetIntent(std::move(value)); return *this;}
100 inline TestRecommendation& WithIntent(const char* value) { SetIntent(value); return *this;}
102
104
107 inline const Aws::Vector<RecommendationItem>& GetItems() const{ return m_items; }
108 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
109 inline void SetItems(const Aws::Vector<RecommendationItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
110 inline void SetItems(Aws::Vector<RecommendationItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
111 inline TestRecommendation& WithItems(const Aws::Vector<RecommendationItem>& value) { SetItems(value); return *this;}
112 inline TestRecommendation& WithItems(Aws::Vector<RecommendationItem>&& value) { SetItems(std::move(value)); return *this;}
113 inline TestRecommendation& AddItems(const RecommendationItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
114 inline TestRecommendation& AddItems(RecommendationItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
116
118
121 inline const Aws::String& GetName() const{ return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
124 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
125 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
126 inline TestRecommendation& WithName(const Aws::String& value) { SetName(value); return *this;}
127 inline TestRecommendation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 inline TestRecommendation& WithName(const char* value) { SetName(value); return *this;}
130
132
135 inline const Aws::String& GetPrerequisite() const{ return m_prerequisite; }
136 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
137 inline void SetPrerequisite(const Aws::String& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = value; }
138 inline void SetPrerequisite(Aws::String&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::move(value); }
139 inline void SetPrerequisite(const char* value) { m_prerequisiteHasBeenSet = true; m_prerequisite.assign(value); }
140 inline TestRecommendation& WithPrerequisite(const Aws::String& value) { SetPrerequisite(value); return *this;}
141 inline TestRecommendation& WithPrerequisite(Aws::String&& value) { SetPrerequisite(std::move(value)); return *this;}
142 inline TestRecommendation& WithPrerequisite(const char* value) { SetPrerequisite(value); return *this;}
144
146
149 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
150 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
151 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
152 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
153 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
154 inline TestRecommendation& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
155 inline TestRecommendation& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
156 inline TestRecommendation& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
158
160
163 inline const RecommendationStatus& GetRecommendationStatus() const{ return m_recommendationStatus; }
164 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
165 inline void SetRecommendationStatus(const RecommendationStatus& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
166 inline void SetRecommendationStatus(RecommendationStatus&& value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = std::move(value); }
170
172
175 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
176 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
177 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
178 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
179 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
180 inline TestRecommendation& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
181 inline TestRecommendation& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
182 inline TestRecommendation& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
184
186
189 inline const TestRisk& GetRisk() const{ return m_risk; }
190 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
191 inline void SetRisk(const TestRisk& value) { m_riskHasBeenSet = true; m_risk = value; }
192 inline void SetRisk(TestRisk&& value) { m_riskHasBeenSet = true; m_risk = std::move(value); }
193 inline TestRecommendation& WithRisk(const TestRisk& value) { SetRisk(value); return *this;}
194 inline TestRecommendation& WithRisk(TestRisk&& value) { SetRisk(std::move(value)); return *this;}
196
198
201 inline const TestType& GetType() const{ return m_type; }
202 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
203 inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
204 inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
205 inline TestRecommendation& WithType(const TestType& value) { SetType(value); return *this;}
206 inline TestRecommendation& WithType(TestType&& value) { SetType(std::move(value)); return *this;}
208 private:
209
210 Aws::String m_appComponentName;
211 bool m_appComponentNameHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_dependsOnAlarms;
214 bool m_dependsOnAlarmsHasBeenSet = false;
215
216 Aws::String m_description;
217 bool m_descriptionHasBeenSet = false;
218
219 Aws::String m_intent;
220 bool m_intentHasBeenSet = false;
221
223 bool m_itemsHasBeenSet = false;
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
228 Aws::String m_prerequisite;
229 bool m_prerequisiteHasBeenSet = false;
230
231 Aws::String m_recommendationId;
232 bool m_recommendationIdHasBeenSet = false;
233
234 RecommendationStatus m_recommendationStatus;
235 bool m_recommendationStatusHasBeenSet = false;
236
237 Aws::String m_referenceId;
238 bool m_referenceIdHasBeenSet = false;
239
240 TestRisk m_risk;
241 bool m_riskHasBeenSet = false;
242
243 TestType m_type;
244 bool m_typeHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace ResilienceHub
249} // namespace Aws
TestRecommendation & WithPrerequisite(const Aws::String &value)
TestRecommendation & WithIntent(const char *value)
TestRecommendation & AddItems(RecommendationItem &&value)
void SetDescription(const Aws::String &value)
void SetItems(Aws::Vector< RecommendationItem > &&value)
TestRecommendation & WithItems(const Aws::Vector< RecommendationItem > &value)
TestRecommendation & WithIntent(const Aws::String &value)
TestRecommendation & WithRisk(const TestRisk &value)
TestRecommendation & WithRisk(TestRisk &&value)
void SetRecommendationStatus(RecommendationStatus &&value)
TestRecommendation & WithDependsOnAlarms(const Aws::Vector< Aws::String > &value)
AWS_RESILIENCEHUB_API TestRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDependsOnAlarms(const Aws::Vector< Aws::String > &value)
TestRecommendation & WithRecommendationId(Aws::String &&value)
TestRecommendation & WithReferenceId(const char *value)
TestRecommendation & WithIntent(Aws::String &&value)
TestRecommendation & WithName(const Aws::String &value)
AWS_RESILIENCEHUB_API TestRecommendation(Aws::Utils::Json::JsonView jsonValue)
TestRecommendation & WithItems(Aws::Vector< RecommendationItem > &&value)
TestRecommendation & WithDescription(const char *value)
TestRecommendation & WithRecommendationStatus(RecommendationStatus &&value)
void SetItems(const Aws::Vector< RecommendationItem > &value)
void SetRecommendationId(const Aws::String &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
TestRecommendation & AddItems(const RecommendationItem &value)
TestRecommendation & WithRecommendationStatus(const RecommendationStatus &value)
TestRecommendation & WithDependsOnAlarms(Aws::Vector< Aws::String > &&value)
TestRecommendation & WithName(const char *value)
TestRecommendation & WithAppComponentName(const char *value)
TestRecommendation & WithName(Aws::String &&value)
TestRecommendation & WithAppComponentName(Aws::String &&value)
const RecommendationStatus & GetRecommendationStatus() const
const Aws::Vector< RecommendationItem > & GetItems() const
TestRecommendation & AddDependsOnAlarms(const char *value)
TestRecommendation & WithAppComponentName(const Aws::String &value)
TestRecommendation & WithPrerequisite(Aws::String &&value)
void SetRecommendationStatus(const RecommendationStatus &value)
void SetAppComponentName(const Aws::String &value)
void SetDependsOnAlarms(Aws::Vector< Aws::String > &&value)
TestRecommendation & WithDescription(Aws::String &&value)
TestRecommendation & WithReferenceId(Aws::String &&value)
TestRecommendation & WithType(const TestType &value)
TestRecommendation & WithPrerequisite(const char *value)
TestRecommendation & WithReferenceId(const Aws::String &value)
TestRecommendation & AddDependsOnAlarms(const Aws::String &value)
TestRecommendation & WithDescription(const Aws::String &value)
TestRecommendation & WithRecommendationId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDependsOnAlarms() const
TestRecommendation & WithType(TestType &&value)
TestRecommendation & WithRecommendationId(const char *value)
TestRecommendation & AddDependsOnAlarms(Aws::String &&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