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/AccountTargeting.h>
13#include <aws/resiliencehubv2/model/ExperimentDetails.h>
14#include <aws/resiliencehubv2/model/LoggingConfiguration.h>
15#include <aws/resiliencehubv2/model/PermissionModel.h>
16#include <aws/resiliencehubv2/model/ReportGenerationResult.h>
17#include <aws/resiliencehubv2/model/StopCondition.h>
18#include <aws/resiliencehubv2/model/TestRunPolicySnapshot.h>
19#include <aws/resiliencehubv2/model/TestRunReportConfiguration.h>
20#include <aws/resiliencehubv2/model/TestRunStatus.h>
31namespace resiliencehubv2 {
42 AWS_RESILIENCEHUBV2_API
TestRun() =
default;
53 template <
typename TestRunIdT = Aws::String>
55 m_testRunIdHasBeenSet =
true;
56 m_testRunId = std::forward<TestRunIdT>(value);
58 template <
typename TestRunIdT = Aws::String>
71 template <
typename TestIdT = Aws::String>
73 m_testIdHasBeenSet =
true;
74 m_testId = std::forward<TestIdT>(value);
76 template <
typename TestIdT = Aws::String>
90 m_statusHasBeenSet =
true;
105 template <
typename ServiceArnT = Aws::String>
107 m_serviceArnHasBeenSet =
true;
108 m_serviceArn = std::forward<ServiceArnT>(value);
110 template <
typename ServiceArnT = Aws::String>
123 template <
typename StartedAtT = Aws::Utils::DateTime>
125 m_startedAtHasBeenSet =
true;
126 m_startedAt = std::forward<StartedAtT>(value);
128 template <
typename StartedAtT = Aws::Utils::DateTime>
141 template <
typename EndedAtT = Aws::Utils::DateTime>
143 m_endedAtHasBeenSet =
true;
144 m_endedAt = std::forward<EndedAtT>(value);
146 template <
typename EndedAtT = Aws::Utils::DateTime>
160 template <
typename ExperimentsT = Aws::Vector<ExperimentDetails>>
162 m_experimentsHasBeenSet =
true;
163 m_experiments = std::forward<ExperimentsT>(value);
165 template <
typename ExperimentsT = Aws::Vector<ExperimentDetails>>
170 template <
typename ExperimentsT = ExperimentDetails>
172 m_experimentsHasBeenSet =
true;
173 m_experiments.emplace_back(std::forward<ExperimentsT>(value));
186 m_eventCountHasBeenSet =
true;
187 m_eventCount = value;
201 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
203 m_parametersHasBeenSet =
true;
204 m_parameters = std::forward<ParametersT>(value);
206 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
211 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
213 m_parametersHasBeenSet =
true;
214 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
226 template <
typename ErrorMessageT = Aws::String>
228 m_errorMessageHasBeenSet =
true;
229 m_errorMessage = std::forward<ErrorMessageT>(value);
231 template <
typename ErrorMessageT = Aws::String>
244 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
246 m_stopConditionsHasBeenSet =
true;
247 m_stopConditions = std::forward<StopConditionsT>(value);
249 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
254 template <
typename StopConditionsT = StopCondition>
256 m_stopConditionsHasBeenSet =
true;
257 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
269 template <
typename LoggingConfigurationT = LoggingConfiguration>
271 m_loggingConfigurationHasBeenSet =
true;
272 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
274 template <
typename LoggingConfigurationT = LoggingConfiguration>
288 template <
typename RoleNameT = Aws::String>
290 m_roleNameHasBeenSet =
true;
291 m_roleName = std::forward<RoleNameT>(value);
293 template <
typename RoleNameT = Aws::String>
307 template <
typename TestTemplateArnT = Aws::String>
309 m_testTemplateArnHasBeenSet =
true;
310 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
312 template <
typename TestTemplateArnT = Aws::String>
326 template <
typename ReportConfigurationT = TestRunReportConfiguration>
328 m_reportConfigurationHasBeenSet =
true;
329 m_reportConfiguration = std::forward<ReportConfigurationT>(value);
331 template <
typename ReportConfigurationT = TestRunReportConfiguration>
345 template <
typename PolicyT = TestRunPolicySnapshot>
347 m_policyHasBeenSet =
true;
348 m_policy = std::forward<PolicyT>(value);
350 template <
typename PolicyT = TestRunPolicySnapshot>
364 template <
typename ReportOutputT = ReportGenerationResult>
366 m_reportOutputHasBeenSet =
true;
367 m_reportOutput = std::forward<ReportOutputT>(value);
369 template <
typename ReportOutputT = ReportGenerationResult>
382 template <
typename RegionSwitchPlanArnT = Aws::String>
384 m_regionSwitchPlanArnHasBeenSet =
true;
385 m_regionSwitchPlanArn = std::forward<RegionSwitchPlanArnT>(value);
387 template <
typename RegionSwitchPlanArnT = Aws::String>
401 template <
typename RegionSwitchExecutionIdT = Aws::String>
403 m_regionSwitchExecutionIdHasBeenSet =
true;
404 m_regionSwitchExecutionId = std::forward<RegionSwitchExecutionIdT>(value);
406 template <
typename RegionSwitchExecutionIdT = Aws::String>
420 template <
typename PermissionModelT = PermissionModel>
422 m_permissionModelHasBeenSet =
true;
423 m_permissionModel = std::forward<PermissionModelT>(value);
425 template <
typename PermissionModelT = PermissionModel>
438 template <
typename RegionsT = Aws::Vector<Aws::String>>
440 m_regionsHasBeenSet =
true;
441 m_regions = std::forward<RegionsT>(value);
443 template <
typename RegionsT = Aws::Vector<Aws::String>>
448 template <
typename RegionsT = Aws::String>
450 m_regionsHasBeenSet =
true;
451 m_regions.emplace_back(std::forward<RegionsT>(value));
464 m_accountTargetingHasBeenSet =
true;
465 m_accountTargeting = value;
495 LoggingConfiguration m_loggingConfiguration;
501 TestRunReportConfiguration m_reportConfiguration;
503 TestRunPolicySnapshot m_policy;
505 ReportGenerationResult m_reportOutput;
511 PermissionModel m_permissionModel;
516 bool m_testRunIdHasBeenSet =
false;
517 bool m_testIdHasBeenSet =
false;
518 bool m_statusHasBeenSet =
false;
519 bool m_serviceArnHasBeenSet =
false;
520 bool m_startedAtHasBeenSet =
false;
521 bool m_endedAtHasBeenSet =
false;
522 bool m_experimentsHasBeenSet =
false;
523 bool m_eventCountHasBeenSet =
false;
524 bool m_parametersHasBeenSet =
false;
525 bool m_errorMessageHasBeenSet =
false;
526 bool m_stopConditionsHasBeenSet =
false;
527 bool m_loggingConfigurationHasBeenSet =
false;
528 bool m_roleNameHasBeenSet =
false;
529 bool m_testTemplateArnHasBeenSet =
false;
530 bool m_reportConfigurationHasBeenSet =
false;
531 bool m_policyHasBeenSet =
false;
532 bool m_reportOutputHasBeenSet =
false;
533 bool m_regionSwitchPlanArnHasBeenSet =
false;
534 bool m_regionSwitchExecutionIdHasBeenSet =
false;
535 bool m_permissionModelHasBeenSet =
false;
536 bool m_regionsHasBeenSet =
false;
537 bool m_accountTargetingHasBeenSet =
false;
const TestRunReportConfiguration & GetReportConfiguration() const
AccountTargeting GetAccountTargeting() const
bool TestRunIdHasBeenSet() const
void SetPolicy(PolicyT &&value)
TestRun & AddExperiments(ExperimentsT &&value)
TestRun & WithAccountTargeting(AccountTargeting value)
TestRun & AddRegions(RegionsT &&value)
bool ParametersHasBeenSet() const
bool RoleNameHasBeenSet() const
void SetTestId(TestIdT &&value)
const PermissionModel & GetPermissionModel() const
const Aws::String & GetRegionSwitchExecutionId() const
const Aws::String & GetErrorMessage() const
void SetRegionSwitchExecutionId(RegionSwitchExecutionIdT &&value)
TestRun & WithRegionSwitchExecutionId(RegionSwitchExecutionIdT &&value)
bool PermissionModelHasBeenSet() const
bool ErrorMessageHasBeenSet() const
void SetExperiments(ExperimentsT &&value)
bool ReportOutputHasBeenSet() const
bool RegionsHasBeenSet() const
TestRun & WithEndedAt(EndedAtT &&value)
TestRun & WithRegions(RegionsT &&value)
bool EventCountHasBeenSet() const
bool StopConditionsHasBeenSet() const
void SetEventCount(int value)
const Aws::Vector< StopCondition > & GetStopConditions() const
TestRun & WithParameters(ParametersT &&value)
TestRun & WithErrorMessage(ErrorMessageT &&value)
AWS_RESILIENCEHUBV2_API TestRun & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunStatus GetStatus() const
void SetReportOutput(ReportOutputT &&value)
bool StartedAtHasBeenSet() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
AWS_RESILIENCEHUBV2_API TestRun(Aws::Utils::Json::JsonView jsonValue)
void SetReportConfiguration(ReportConfigurationT &&value)
bool StatusHasBeenSet() const
TestRun & WithRegionSwitchPlanArn(RegionSwitchPlanArnT &&value)
TestRun & WithServiceArn(ServiceArnT &&value)
bool ServiceArnHasBeenSet() const
const Aws::String & GetRegionSwitchPlanArn() const
bool ReportConfigurationHasBeenSet() const
TestRun & WithStopConditions(StopConditionsT &&value)
void SetTestRunId(TestRunIdT &&value)
TestRun & WithRoleName(RoleNameT &&value)
const Aws::String & GetServiceArn() const
bool LoggingConfigurationHasBeenSet() const
TestRun & WithStartedAt(StartedAtT &&value)
bool AccountTargetingHasBeenSet() const
void SetErrorMessage(ErrorMessageT &&value)
void SetStartedAt(StartedAtT &&value)
void SetRegions(RegionsT &&value)
const TestRunPolicySnapshot & GetPolicy() const
void SetPermissionModel(PermissionModelT &&value)
TestRun & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
void SetRoleName(RoleNameT &&value)
void SetTestTemplateArn(TestTemplateArnT &&value)
TestRun & WithReportConfiguration(ReportConfigurationT &&value)
bool PolicyHasBeenSet() const
const ReportGenerationResult & GetReportOutput() const
TestRun & WithStatus(TestRunStatus value)
bool TestTemplateArnHasBeenSet() const
const Aws::String & GetTestId() const
TestRun & WithTestRunId(TestRunIdT &&value)
TestRun & WithTestTemplateArn(TestTemplateArnT &&value)
TestRun & WithPolicy(PolicyT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetRoleName() const
const Aws::String & GetTestTemplateArn() const
bool RegionSwitchExecutionIdHasBeenSet() const
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Vector< ExperimentDetails > & GetExperiments() const
AWS_RESILIENCEHUBV2_API TestRun()=default
TestRun & WithLoggingConfiguration(LoggingConfigurationT &&value)
TestRun & WithPermissionModel(PermissionModelT &&value)
void SetStopConditions(StopConditionsT &&value)
int GetEventCount() const
void SetRegionSwitchPlanArn(RegionSwitchPlanArnT &&value)
TestRun & WithEventCount(int value)
bool TestIdHasBeenSet() const
TestRun & WithTestId(TestIdT &&value)
bool ExperimentsHasBeenSet() const
const Aws::String & GetTestRunId() const
bool EndedAtHasBeenSet() const
bool RegionSwitchPlanArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetRegions() const
void SetServiceArn(ServiceArnT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
TestRun & WithReportOutput(ReportOutputT &&value)
void SetEndedAt(EndedAtT &&value)
void SetStatus(TestRunStatus value)
TestRun & WithExperiments(ExperimentsT &&value)
void SetAccountTargeting(AccountTargeting value)
void SetParameters(ParametersT &&value)
TestRun & AddStopConditions(StopConditionsT &&value)
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