AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
Test.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
12#include <aws/resiliencehubv2/model/LoggingConfiguration.h>
13#include <aws/resiliencehubv2/model/StopCondition.h>
14#include <aws/resiliencehubv2/model/TestAction.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace resiliencehubv2 {
26namespace Model {
27
34class Test {
35 public:
36 AWS_RESILIENCEHUBV2_API Test() = default;
37 AWS_RESILIENCEHUBV2_API Test(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUBV2_API Test& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetTestId() const { return m_testId; }
46 inline bool TestIdHasBeenSet() const { return m_testIdHasBeenSet; }
47 template <typename TestIdT = Aws::String>
48 void SetTestId(TestIdT&& value) {
49 m_testIdHasBeenSet = true;
50 m_testId = std::forward<TestIdT>(value);
51 }
52 template <typename TestIdT = Aws::String>
53 Test& WithTestId(TestIdT&& value) {
54 SetTestId(std::forward<TestIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTestTemplateArn() const { return m_testTemplateArn; }
64 inline bool TestTemplateArnHasBeenSet() const { return m_testTemplateArnHasBeenSet; }
65 template <typename TestTemplateArnT = Aws::String>
66 void SetTestTemplateArn(TestTemplateArnT&& value) {
67 m_testTemplateArnHasBeenSet = true;
68 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
69 }
70 template <typename TestTemplateArnT = Aws::String>
71 Test& WithTestTemplateArn(TestTemplateArnT&& value) {
72 SetTestTemplateArn(std::forward<TestTemplateArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
82 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
83 template <typename ServiceArnT = Aws::String>
84 void SetServiceArn(ServiceArnT&& value) {
85 m_serviceArnHasBeenSet = true;
86 m_serviceArn = std::forward<ServiceArnT>(value);
87 }
88 template <typename ServiceArnT = Aws::String>
89 Test& WithServiceArn(ServiceArnT&& value) {
90 SetServiceArn(std::forward<ServiceArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template <typename NameT = Aws::String>
102 void SetName(NameT&& value) {
103 m_nameHasBeenSet = true;
104 m_name = std::forward<NameT>(value);
105 }
106 template <typename NameT = Aws::String>
107 Test& WithName(NameT&& value) {
108 SetName(std::forward<NameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<TestAction>& GetActions() const { return m_actions; }
118 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
119 template <typename ActionsT = Aws::Vector<TestAction>>
120 void SetActions(ActionsT&& value) {
121 m_actionsHasBeenSet = true;
122 m_actions = std::forward<ActionsT>(value);
123 }
124 template <typename ActionsT = Aws::Vector<TestAction>>
125 Test& WithActions(ActionsT&& value) {
126 SetActions(std::forward<ActionsT>(value));
127 return *this;
128 }
129 template <typename ActionsT = TestAction>
130 Test& AddActions(ActionsT&& value) {
131 m_actionsHasBeenSet = true;
132 m_actions.emplace_back(std::forward<ActionsT>(value));
133 return *this;
134 }
136
138
141 inline const LoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
142 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
143 template <typename LoggingConfigurationT = LoggingConfiguration>
144 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
145 m_loggingConfigurationHasBeenSet = true;
146 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
147 }
148 template <typename LoggingConfigurationT = LoggingConfiguration>
149 Test& WithLoggingConfiguration(LoggingConfigurationT&& value) {
150 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Vector<StopCondition>& GetStopConditions() const { return m_stopConditions; }
160 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
161 template <typename StopConditionsT = Aws::Vector<StopCondition>>
162 void SetStopConditions(StopConditionsT&& value) {
163 m_stopConditionsHasBeenSet = true;
164 m_stopConditions = std::forward<StopConditionsT>(value);
165 }
166 template <typename StopConditionsT = Aws::Vector<StopCondition>>
167 Test& WithStopConditions(StopConditionsT&& value) {
168 SetStopConditions(std::forward<StopConditionsT>(value));
169 return *this;
170 }
171 template <typename StopConditionsT = StopCondition>
172 Test& AddStopConditions(StopConditionsT&& value) {
173 m_stopConditionsHasBeenSet = true;
174 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetRoleName() const { return m_roleName; }
184 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
185 template <typename RoleNameT = Aws::String>
186 void SetRoleName(RoleNameT&& value) {
187 m_roleNameHasBeenSet = true;
188 m_roleName = std::forward<RoleNameT>(value);
189 }
190 template <typename RoleNameT = Aws::String>
191 Test& WithRoleName(RoleNameT&& value) {
192 SetRoleName(std::forward<RoleNameT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
202 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
203 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
204 void SetParameters(ParametersT&& value) {
205 m_parametersHasBeenSet = true;
206 m_parameters = std::forward<ParametersT>(value);
207 }
208 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
209 Test& WithParameters(ParametersT&& value) {
210 SetParameters(std::forward<ParametersT>(value));
211 return *this;
212 }
213 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
214 Test& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
215 m_parametersHasBeenSet = true;
216 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
217 return *this;
218 }
220
222
225 inline int GetTotalTestRuns() const { return m_totalTestRuns; }
226 inline bool TotalTestRunsHasBeenSet() const { return m_totalTestRunsHasBeenSet; }
227 inline void SetTotalTestRuns(int value) {
228 m_totalTestRunsHasBeenSet = true;
229 m_totalTestRuns = value;
230 }
231 inline Test& WithTotalTestRuns(int value) {
232 SetTotalTestRuns(value);
233 return *this;
234 }
236
238
241 inline int GetSuccessfulTestRuns() const { return m_successfulTestRuns; }
242 inline bool SuccessfulTestRunsHasBeenSet() const { return m_successfulTestRunsHasBeenSet; }
243 inline void SetSuccessfulTestRuns(int value) {
244 m_successfulTestRunsHasBeenSet = true;
245 m_successfulTestRuns = value;
246 }
247 inline Test& WithSuccessfulTestRuns(int value) {
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
258 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
259 template <typename CreationTimeT = Aws::Utils::DateTime>
260 void SetCreationTime(CreationTimeT&& value) {
261 m_creationTimeHasBeenSet = true;
262 m_creationTime = std::forward<CreationTimeT>(value);
263 }
264 template <typename CreationTimeT = Aws::Utils::DateTime>
265 Test& WithCreationTime(CreationTimeT&& value) {
266 SetCreationTime(std::forward<CreationTimeT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_testId;
272
273 Aws::String m_testTemplateArn;
274
275 Aws::String m_serviceArn;
276
277 Aws::String m_name;
278
279 Aws::Vector<TestAction> m_actions;
280
281 LoggingConfiguration m_loggingConfiguration;
282
283 Aws::Vector<StopCondition> m_stopConditions;
284
285 Aws::String m_roleName;
286
288
289 int m_totalTestRuns{0};
290
291 int m_successfulTestRuns{0};
292
293 Aws::Utils::DateTime m_creationTime{};
294 bool m_testIdHasBeenSet = false;
295 bool m_testTemplateArnHasBeenSet = false;
296 bool m_serviceArnHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_actionsHasBeenSet = false;
299 bool m_loggingConfigurationHasBeenSet = false;
300 bool m_stopConditionsHasBeenSet = false;
301 bool m_roleNameHasBeenSet = false;
302 bool m_parametersHasBeenSet = false;
303 bool m_totalTestRunsHasBeenSet = false;
304 bool m_successfulTestRunsHasBeenSet = false;
305 bool m_creationTimeHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace resiliencehubv2
310} // namespace Aws
bool TotalTestRunsHasBeenSet() const
Definition Test.h:226
bool LoggingConfigurationHasBeenSet() const
Definition Test.h:142
void SetSuccessfulTestRuns(int value)
Definition Test.h:243
Test & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Test.h:214
const Aws::String & GetServiceArn() const
Definition Test.h:81
AWS_RESILIENCEHUBV2_API Test(Aws::Utils::Json::JsonView jsonValue)
Test & WithTotalTestRuns(int value)
Definition Test.h:231
const Aws::Utils::DateTime & GetCreationTime() const
Definition Test.h:257
Test & WithActions(ActionsT &&value)
Definition Test.h:125
bool TestIdHasBeenSet() const
Definition Test.h:46
const Aws::String & GetName() const
Definition Test.h:99
Test & WithName(NameT &&value)
Definition Test.h:107
Test & WithStopConditions(StopConditionsT &&value)
Definition Test.h:167
bool StopConditionsHasBeenSet() const
Definition Test.h:160
void SetActions(ActionsT &&value)
Definition Test.h:120
Test & WithSuccessfulTestRuns(int value)
Definition Test.h:247
void SetTotalTestRuns(int value)
Definition Test.h:227
void SetLoggingConfiguration(LoggingConfigurationT &&value)
Definition Test.h:144
const Aws::String & GetTestTemplateArn() const
Definition Test.h:63
bool CreationTimeHasBeenSet() const
Definition Test.h:258
Test & WithTestTemplateArn(TestTemplateArnT &&value)
Definition Test.h:71
AWS_RESILIENCEHUBV2_API Test & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetSuccessfulTestRuns() const
Definition Test.h:241
bool ServiceArnHasBeenSet() const
Definition Test.h:82
void SetParameters(ParametersT &&value)
Definition Test.h:204
void SetName(NameT &&value)
Definition Test.h:102
const LoggingConfiguration & GetLoggingConfiguration() const
Definition Test.h:141
void SetRoleName(RoleNameT &&value)
Definition Test.h:186
const Aws::String & GetRoleName() const
Definition Test.h:183
Test & WithServiceArn(ServiceArnT &&value)
Definition Test.h:89
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopConditions(StopConditionsT &&value)
Definition Test.h:162
const Aws::String & GetTestId() const
Definition Test.h:45
bool RoleNameHasBeenSet() const
Definition Test.h:184
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Test.h:201
void SetTestId(TestIdT &&value)
Definition Test.h:48
Test & WithLoggingConfiguration(LoggingConfigurationT &&value)
Definition Test.h:149
Test & AddActions(ActionsT &&value)
Definition Test.h:130
void SetCreationTime(CreationTimeT &&value)
Definition Test.h:260
bool SuccessfulTestRunsHasBeenSet() const
Definition Test.h:242
Test & WithRoleName(RoleNameT &&value)
Definition Test.h:191
bool TestTemplateArnHasBeenSet() const
Definition Test.h:64
void SetTestTemplateArn(TestTemplateArnT &&value)
Definition Test.h:66
Test & WithParameters(ParametersT &&value)
Definition Test.h:209
Test & WithCreationTime(CreationTimeT &&value)
Definition Test.h:265
Test & WithTestId(TestIdT &&value)
Definition Test.h:53
Test & AddStopConditions(StopConditionsT &&value)
Definition Test.h:172
void SetServiceArn(ServiceArnT &&value)
Definition Test.h:84
const Aws::Vector< TestAction > & GetActions() const
Definition Test.h:117
const Aws::Vector< StopCondition > & GetStopConditions() const
Definition Test.h:159
bool ParametersHasBeenSet() const
Definition Test.h:202
AWS_RESILIENCEHUBV2_API Test()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue