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/DevOpsAgentInvestigation.h>
14#include <aws/resiliencehubv2/model/ExperimentDetails.h>
15#include <aws/resiliencehubv2/model/LoggingConfiguration.h>
16#include <aws/resiliencehubv2/model/PermissionModel.h>
17#include <aws/resiliencehubv2/model/ReportGenerationResult.h>
18#include <aws/resiliencehubv2/model/StopCondition.h>
19#include <aws/resiliencehubv2/model/TestRunPolicySnapshot.h>
20#include <aws/resiliencehubv2/model/TestRunReportConfiguration.h>
21#include <aws/resiliencehubv2/model/TestRunStatus.h>
32namespace resiliencehubv2 {
43 AWS_RESILIENCEHUBV2_API
TestRun() =
default;
54 template <
typename TestRunIdT = Aws::String>
56 m_testRunIdHasBeenSet =
true;
57 m_testRunId = std::forward<TestRunIdT>(value);
59 template <
typename TestRunIdT = Aws::String>
72 template <
typename TestIdT = Aws::String>
74 m_testIdHasBeenSet =
true;
75 m_testId = std::forward<TestIdT>(value);
77 template <
typename TestIdT = Aws::String>
91 m_statusHasBeenSet =
true;
106 template <
typename ServiceArnT = Aws::String>
108 m_serviceArnHasBeenSet =
true;
109 m_serviceArn = std::forward<ServiceArnT>(value);
111 template <
typename ServiceArnT = Aws::String>
124 template <
typename StartedAtT = Aws::Utils::DateTime>
126 m_startedAtHasBeenSet =
true;
127 m_startedAt = std::forward<StartedAtT>(value);
129 template <
typename StartedAtT = Aws::Utils::DateTime>
142 template <
typename EndedAtT = Aws::Utils::DateTime>
144 m_endedAtHasBeenSet =
true;
145 m_endedAt = std::forward<EndedAtT>(value);
147 template <
typename EndedAtT = Aws::Utils::DateTime>
161 template <
typename ExperimentsT = Aws::Vector<ExperimentDetails>>
163 m_experimentsHasBeenSet =
true;
164 m_experiments = std::forward<ExperimentsT>(value);
166 template <
typename ExperimentsT = Aws::Vector<ExperimentDetails>>
171 template <
typename ExperimentsT = ExperimentDetails>
173 m_experimentsHasBeenSet =
true;
174 m_experiments.emplace_back(std::forward<ExperimentsT>(value));
187 m_eventCountHasBeenSet =
true;
188 m_eventCount = value;
202 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
204 m_parametersHasBeenSet =
true;
205 m_parameters = std::forward<ParametersT>(value);
207 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
212 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
214 m_parametersHasBeenSet =
true;
215 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
227 template <
typename ErrorMessageT = Aws::String>
229 m_errorMessageHasBeenSet =
true;
230 m_errorMessage = std::forward<ErrorMessageT>(value);
232 template <
typename ErrorMessageT = Aws::String>
245 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
247 m_stopConditionsHasBeenSet =
true;
248 m_stopConditions = std::forward<StopConditionsT>(value);
250 template <
typename StopConditionsT = Aws::Vector<StopCondition>>
255 template <
typename StopConditionsT = StopCondition>
257 m_stopConditionsHasBeenSet =
true;
258 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
270 template <
typename LoggingConfigurationT = LoggingConfiguration>
272 m_loggingConfigurationHasBeenSet =
true;
273 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
275 template <
typename LoggingConfigurationT = LoggingConfiguration>
289 template <
typename RoleNameT = Aws::String>
291 m_roleNameHasBeenSet =
true;
292 m_roleName = std::forward<RoleNameT>(value);
294 template <
typename RoleNameT = Aws::String>
308 template <
typename TestTemplateArnT = Aws::String>
310 m_testTemplateArnHasBeenSet =
true;
311 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
313 template <
typename TestTemplateArnT = Aws::String>
327 template <
typename ReportConfigurationT = TestRunReportConfiguration>
329 m_reportConfigurationHasBeenSet =
true;
330 m_reportConfiguration = std::forward<ReportConfigurationT>(value);
332 template <
typename ReportConfigurationT = TestRunReportConfiguration>
346 template <
typename PolicyT = TestRunPolicySnapshot>
348 m_policyHasBeenSet =
true;
349 m_policy = std::forward<PolicyT>(value);
351 template <
typename PolicyT = TestRunPolicySnapshot>
365 template <
typename ReportOutputT = ReportGenerationResult>
367 m_reportOutputHasBeenSet =
true;
368 m_reportOutput = std::forward<ReportOutputT>(value);
370 template <
typename ReportOutputT = ReportGenerationResult>
383 template <
typename RegionSwitchPlanArnT = Aws::String>
385 m_regionSwitchPlanArnHasBeenSet =
true;
386 m_regionSwitchPlanArn = std::forward<RegionSwitchPlanArnT>(value);
388 template <
typename RegionSwitchPlanArnT = Aws::String>
402 template <
typename RegionSwitchExecutionIdT = Aws::String>
404 m_regionSwitchExecutionIdHasBeenSet =
true;
405 m_regionSwitchExecutionId = std::forward<RegionSwitchExecutionIdT>(value);
407 template <
typename RegionSwitchExecutionIdT = Aws::String>
421 template <
typename PermissionModelT = PermissionModel>
423 m_permissionModelHasBeenSet =
true;
424 m_permissionModel = std::forward<PermissionModelT>(value);
426 template <
typename PermissionModelT = PermissionModel>
439 template <
typename RegionsT = Aws::Vector<Aws::String>>
441 m_regionsHasBeenSet =
true;
442 m_regions = std::forward<RegionsT>(value);
444 template <
typename RegionsT = Aws::Vector<Aws::String>>
449 template <
typename RegionsT = Aws::String>
451 m_regionsHasBeenSet =
true;
452 m_regions.emplace_back(std::forward<RegionsT>(value));
465 m_accountTargetingHasBeenSet =
true;
466 m_accountTargeting = value;
481 template <
typename DevOpsAgentInvestigationT = DevOpsAgentInvestigation>
483 m_devOpsAgentInvestigationHasBeenSet =
true;
484 m_devOpsAgentInvestigation = std::forward<DevOpsAgentInvestigationT>(value);
486 template <
typename DevOpsAgentInvestigationT = DevOpsAgentInvestigation>
515 LoggingConfiguration m_loggingConfiguration;
521 TestRunReportConfiguration m_reportConfiguration;
523 TestRunPolicySnapshot m_policy;
525 ReportGenerationResult m_reportOutput;
531 PermissionModel m_permissionModel;
537 DevOpsAgentInvestigation m_devOpsAgentInvestigation;
538 bool m_testRunIdHasBeenSet =
false;
539 bool m_testIdHasBeenSet =
false;
540 bool m_statusHasBeenSet =
false;
541 bool m_serviceArnHasBeenSet =
false;
542 bool m_startedAtHasBeenSet =
false;
543 bool m_endedAtHasBeenSet =
false;
544 bool m_experimentsHasBeenSet =
false;
545 bool m_eventCountHasBeenSet =
false;
546 bool m_parametersHasBeenSet =
false;
547 bool m_errorMessageHasBeenSet =
false;
548 bool m_stopConditionsHasBeenSet =
false;
549 bool m_loggingConfigurationHasBeenSet =
false;
550 bool m_roleNameHasBeenSet =
false;
551 bool m_testTemplateArnHasBeenSet =
false;
552 bool m_reportConfigurationHasBeenSet =
false;
553 bool m_policyHasBeenSet =
false;
554 bool m_reportOutputHasBeenSet =
false;
555 bool m_regionSwitchPlanArnHasBeenSet =
false;
556 bool m_regionSwitchExecutionIdHasBeenSet =
false;
557 bool m_permissionModelHasBeenSet =
false;
558 bool m_regionsHasBeenSet =
false;
559 bool m_accountTargetingHasBeenSet =
false;
560 bool m_devOpsAgentInvestigationHasBeenSet =
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)
void SetDevOpsAgentInvestigation(DevOpsAgentInvestigationT &&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)
bool DevOpsAgentInvestigationHasBeenSet() const
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 & WithDevOpsAgentInvestigation(DevOpsAgentInvestigationT &&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)
const DevOpsAgentInvestigation & GetDevOpsAgentInvestigation() const
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