AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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& GetAppComponentId() const { return m_appComponentId; }
50 inline bool AppComponentIdHasBeenSet() const { return m_appComponentIdHasBeenSet; }
51 template<typename AppComponentIdT = Aws::String>
52 void SetAppComponentId(AppComponentIdT&& value) { m_appComponentIdHasBeenSet = true; m_appComponentId = std::forward<AppComponentIdT>(value); }
53 template<typename AppComponentIdT = Aws::String>
54 TestRecommendation& WithAppComponentId(AppComponentIdT&& value) { SetAppComponentId(std::forward<AppComponentIdT>(value)); return *this;}
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) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::forward<AppComponentNameT>(value); }
65 template<typename AppComponentNameT = Aws::String>
66 TestRecommendation& WithAppComponentName(AppComponentNameT&& value) { SetAppComponentName(std::forward<AppComponentNameT>(value)); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetDependsOnAlarms() const { return m_dependsOnAlarms; }
75 inline bool DependsOnAlarmsHasBeenSet() const { return m_dependsOnAlarmsHasBeenSet; }
76 template<typename DependsOnAlarmsT = Aws::Vector<Aws::String>>
77 void SetDependsOnAlarms(DependsOnAlarmsT&& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms = std::forward<DependsOnAlarmsT>(value); }
78 template<typename DependsOnAlarmsT = Aws::Vector<Aws::String>>
79 TestRecommendation& WithDependsOnAlarms(DependsOnAlarmsT&& value) { SetDependsOnAlarms(std::forward<DependsOnAlarmsT>(value)); return *this;}
80 template<typename DependsOnAlarmsT = Aws::String>
81 TestRecommendation& AddDependsOnAlarms(DependsOnAlarmsT&& value) { m_dependsOnAlarmsHasBeenSet = true; m_dependsOnAlarms.emplace_back(std::forward<DependsOnAlarmsT>(value)); return *this; }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 TestRecommendation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
100 inline const Aws::String& GetIntent() const { return m_intent; }
101 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
102 template<typename IntentT = Aws::String>
103 void SetIntent(IntentT&& value) { m_intentHasBeenSet = true; m_intent = std::forward<IntentT>(value); }
104 template<typename IntentT = Aws::String>
105 TestRecommendation& WithIntent(IntentT&& value) { SetIntent(std::forward<IntentT>(value)); return *this;}
107
109
112 inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
113 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
114 template<typename ItemsT = Aws::Vector<RecommendationItem>>
115 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
116 template<typename ItemsT = Aws::Vector<RecommendationItem>>
117 TestRecommendation& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
118 template<typename ItemsT = RecommendationItem>
119 TestRecommendation& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
121
123
126 inline const Aws::String& GetName() const { return m_name; }
127 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 template<typename NameT = Aws::String>
129 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
130 template<typename NameT = Aws::String>
131 TestRecommendation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
133
135
138 inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
139 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
140 template<typename PrerequisiteT = Aws::String>
141 void SetPrerequisite(PrerequisiteT&& value) { m_prerequisiteHasBeenSet = true; m_prerequisite = std::forward<PrerequisiteT>(value); }
142 template<typename PrerequisiteT = Aws::String>
143 TestRecommendation& WithPrerequisite(PrerequisiteT&& value) { SetPrerequisite(std::forward<PrerequisiteT>(value)); return *this;}
145
147
150 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
151 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
152 template<typename RecommendationIdT = Aws::String>
153 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
154 template<typename RecommendationIdT = Aws::String>
155 TestRecommendation& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
157
159
162 inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
163 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
164 inline void SetRecommendationStatus(RecommendationStatus value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
167
169
172 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
173 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
174 template<typename ReferenceIdT = Aws::String>
175 void SetReferenceId(ReferenceIdT&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::forward<ReferenceIdT>(value); }
176 template<typename ReferenceIdT = Aws::String>
177 TestRecommendation& WithReferenceId(ReferenceIdT&& value) { SetReferenceId(std::forward<ReferenceIdT>(value)); return *this;}
179
181
184 inline TestRisk GetRisk() const { return m_risk; }
185 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
186 inline void SetRisk(TestRisk value) { m_riskHasBeenSet = true; m_risk = value; }
187 inline TestRecommendation& WithRisk(TestRisk value) { SetRisk(value); return *this;}
189
191
194 inline TestType GetType() const { return m_type; }
195 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
196 inline void SetType(TestType value) { m_typeHasBeenSet = true; m_type = value; }
197 inline TestRecommendation& WithType(TestType value) { SetType(value); return *this;}
199 private:
200
201 Aws::String m_appComponentId;
202 bool m_appComponentIdHasBeenSet = false;
203
204 Aws::String m_appComponentName;
205 bool m_appComponentNameHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_dependsOnAlarms;
208 bool m_dependsOnAlarmsHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 Aws::String m_intent;
214 bool m_intentHasBeenSet = false;
215
217 bool m_itemsHasBeenSet = false;
218
219 Aws::String m_name;
220 bool m_nameHasBeenSet = false;
221
222 Aws::String m_prerequisite;
223 bool m_prerequisiteHasBeenSet = false;
224
225 Aws::String m_recommendationId;
226 bool m_recommendationIdHasBeenSet = false;
227
229 bool m_recommendationStatusHasBeenSet = false;
230
231 Aws::String m_referenceId;
232 bool m_referenceIdHasBeenSet = false;
233
235 bool m_riskHasBeenSet = false;
236
238 bool m_typeHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace ResilienceHub
243} // 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