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>
25namespace resiliencehubv2 {
36 AWS_RESILIENCEHUBV2_API
Test() =
default;
47 template <
typename TestIdT = Aws::String>
49 m_testIdHasBeenSet =
true;
50 m_testId = std::forward<TestIdT>(value);
52 template <
typename TestIdT = Aws::String>
65 template <
typename TestTemplateArnT = Aws::String>
67 m_testTemplateArnHasBeenSet =
true;
68 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
70 template <
typename TestTemplateArnT = Aws::String>
83 template <
typename ServiceArnT = Aws::String>
85 m_serviceArnHasBeenSet =
true;
86 m_serviceArn = std::forward<ServiceArnT>(value);
88 template <
typename ServiceArnT = Aws::String>
101 template <
typename NameT = Aws::String>
103 m_nameHasBeenSet =
true;
104 m_name = std::forward<NameT>(value);
106 template <
typename NameT = Aws::String>
108 SetName(std::forward<NameT>(value));
119 template <
typename ActionsT = Aws::Vector<TestAction>>
121 m_actionsHasBeenSet =
true;
122 m_actions = std::forward<ActionsT>(value);
124 template <
typename ActionsT = Aws::Vector<TestAction>>
129 template <
typename ActionsT = TestAction>
131 m_actionsHasBeenSet =
true;
132 m_actions.emplace_back(std::forward<ActionsT>(value));
143 template <
typename LoggingConfigurationT = LoggingConfiguration>
145 m_loggingConfigurationHasBeenSet =
true;
146 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
148 template <
typename LoggingConfigurationT = LoggingConfiguration>
161 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
163 m_stopConditionsHasBeenSet =
true;
164 m_stopConditions = std::forward<StopConditionsT>(value);
166 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
171 template <
typename StopConditionsT = StopCondition>
173 m_stopConditionsHasBeenSet =
true;
174 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
185 template <
typename RoleNameT = Aws::String>
187 m_roleNameHasBeenSet =
true;
188 m_roleName = std::forward<RoleNameT>(value);
190 template <
typename RoleNameT = Aws::String>
203 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
205 m_parametersHasBeenSet =
true;
206 m_parameters = std::forward<ParametersT>(value);
208 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
213 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
215 m_parametersHasBeenSet =
true;
216 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
228 m_totalTestRunsHasBeenSet =
true;
229 m_totalTestRuns = value;
244 m_successfulTestRunsHasBeenSet =
true;
245 m_successfulTestRuns = value;
259 template <
typename CreationTimeT = Aws::Utils::DateTime>
261 m_creationTimeHasBeenSet =
true;
262 m_creationTime = std::forward<CreationTimeT>(value);
264 template <
typename CreationTimeT = Aws::Utils::DateTime>
289 int m_totalTestRuns{0};
291 int m_successfulTestRuns{0};
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;
bool TotalTestRunsHasBeenSet() const
bool LoggingConfigurationHasBeenSet() const
void SetSuccessfulTestRuns(int value)
Test & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetServiceArn() const
AWS_RESILIENCEHUBV2_API Test(Aws::Utils::Json::JsonView jsonValue)
Test & WithTotalTestRuns(int value)
const Aws::Utils::DateTime & GetCreationTime() const
Test & WithActions(ActionsT &&value)
bool TestIdHasBeenSet() const
const Aws::String & GetName() const
Test & WithName(NameT &&value)
Test & WithStopConditions(StopConditionsT &&value)
bool StopConditionsHasBeenSet() const
void SetActions(ActionsT &&value)
Test & WithSuccessfulTestRuns(int value)
void SetTotalTestRuns(int value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
const Aws::String & GetTestTemplateArn() const
bool CreationTimeHasBeenSet() const
Test & WithTestTemplateArn(TestTemplateArnT &&value)
AWS_RESILIENCEHUBV2_API Test & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetTotalTestRuns() const
int GetSuccessfulTestRuns() const
bool ServiceArnHasBeenSet() const
void SetParameters(ParametersT &&value)
void SetName(NameT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
void SetRoleName(RoleNameT &&value)
bool ActionsHasBeenSet() const
const Aws::String & GetRoleName() const
Test & WithServiceArn(ServiceArnT &&value)
bool NameHasBeenSet() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopConditions(StopConditionsT &&value)
const Aws::String & GetTestId() const
bool RoleNameHasBeenSet() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
void SetTestId(TestIdT &&value)
Test & WithLoggingConfiguration(LoggingConfigurationT &&value)
Test & AddActions(ActionsT &&value)
void SetCreationTime(CreationTimeT &&value)
bool SuccessfulTestRunsHasBeenSet() const
Test & WithRoleName(RoleNameT &&value)
bool TestTemplateArnHasBeenSet() const
void SetTestTemplateArn(TestTemplateArnT &&value)
Test & WithParameters(ParametersT &&value)
Test & WithCreationTime(CreationTimeT &&value)
Test & WithTestId(TestIdT &&value)
Test & AddStopConditions(StopConditionsT &&value)
void SetServiceArn(ServiceArnT &&value)
const Aws::Vector< TestAction > & GetActions() const
const Aws::Vector< StopCondition > & GetStopConditions() const
bool ParametersHasBeenSet() const
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