Interface TestRun.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TestRun.Builder,,TestRun> SdkBuilder<TestRun.Builder,,TestRun> SdkPojo
- Enclosing class:
TestRun
-
Method Summary
Modifier and TypeMethodDescriptionaccountTargeting(String accountTargeting) Indicates whether this test run targets a single account or multiple accounts.accountTargeting(AccountTargeting accountTargeting) Indicates whether this test run targets a single account or multiple accounts.The timestamp when the test run ended.errorMessage(String errorMessage) A human-readable reason for test run failure.eventCount(Integer eventCount) The number of events recorded for the test run.experiments(Collection<ExperimentDetails> experiments) The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.experiments(Consumer<ExperimentDetails.Builder>... experiments) The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.experiments(ExperimentDetails... experiments) The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.default TestRun.BuilderloggingConfiguration(Consumer<LoggingConfiguration.Builder> loggingConfiguration) The logging configuration snapshotted from the test when the run was started.loggingConfiguration(LoggingConfiguration loggingConfiguration) The logging configuration snapshotted from the test when the run was started.parameters(Map<String, ? extends Collection<String>> parameters) The parameter values used for the test run.default TestRun.BuilderpermissionModel(Consumer<PermissionModel.Builder> permissionModel) The permission model snapshotted from the service when the run was started.permissionModel(PermissionModel permissionModel) The permission model snapshotted from the service when the run was started.default TestRun.Builderpolicy(Consumer<TestRunPolicySnapshot.Builder> policy) The resilience policy snapshotted from the service when the run was started.policy(TestRunPolicySnapshot policy) The resilience policy snapshotted from the service when the run was started.The Regions snapshotted from the service when the run was started.regions(Collection<String> regions) The Regions snapshotted from the service when the run was started.regionSwitchExecutionId(String regionSwitchExecutionId) The identifier of the ARC Region switch execution detected during the test run.regionSwitchPlanArn(String regionSwitchPlanArn) The ARN of the ARC Region switch plan associated with the test run.default TestRun.BuilderreportConfiguration(Consumer<TestRunReportConfiguration.Builder> reportConfiguration) The report configuration snapshotted from the service when the run was started.reportConfiguration(TestRunReportConfiguration reportConfiguration) The report configuration snapshotted from the service when the run was started.default TestRun.BuilderreportOutput(Consumer<ReportGenerationResult.Builder> reportOutput) The report generation result for the test run.reportOutput(ReportGenerationResult reportOutput) The report generation result for the test run.The IAM execution role name snapshotted from the test when the run was started.serviceArn(String serviceArn) The ARN of the service the test run belongs to.The timestamp when the test run started.The current status of the test run.status(TestRunStatus status) The current status of the test run.stopConditions(Collection<StopCondition> stopConditions) The stop conditions snapshotted from the test when the run was started.stopConditions(Consumer<StopCondition.Builder>... stopConditions) The stop conditions snapshotted from the test when the run was started.stopConditions(StopCondition... stopConditions) The stop conditions snapshotted from the test when the run was started.The identifier of the test that was run.The unique identifier of the test run.testTemplateArn(String testTemplateArn) The ARN of the test template snapshotted from the test when the run was started.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
testRunId
The unique identifier of the test run.
- Parameters:
testRunId- The unique identifier of the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testId
The identifier of the test that was run.
- Parameters:
testId- The identifier of the test that was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the test run.
- Parameters:
status- The current status of the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the test run.
- Parameters:
status- The current status of the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceArn
The ARN of the service the test run belongs to.
- Parameters:
serviceArn- The ARN of the service the test run belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The timestamp when the test run started.
- Parameters:
startedAt- The timestamp when the test run started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
The timestamp when the test run ended.
- Parameters:
endedAt- The timestamp when the test run ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experiments
The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.
- Parameters:
experiments- The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experiments
The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.
- Parameters:
experiments- The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experiments
The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.
This is a convenience method that creates an instance of theExperimentDetails.Builderavoiding the need to create one manually viaExperimentDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexperiments(List<ExperimentDetails>).- Parameters:
experiments- a consumer that will call methods onExperimentDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventCount
The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.
- Parameters:
eventCount- The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameter values used for the test run.
- Parameters:
parameters- The parameter values used for the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.
- Parameters:
errorMessage- A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
The stop conditions snapshotted from the test when the run was started.
- Parameters:
stopConditions- The stop conditions snapshotted from the test when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
The stop conditions snapshotted from the test when the run was started.
- Parameters:
stopConditions- The stop conditions snapshotted from the test when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
The stop conditions snapshotted from the test when the run was started.
This is a convenience method that creates an instance of theStopCondition.Builderavoiding the need to create one manually viaStopCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostopConditions(List<StopCondition>).- Parameters:
stopConditions- a consumer that will call methods onStopCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
loggingConfiguration
The logging configuration snapshotted from the test when the run was started.
- Parameters:
loggingConfiguration- The logging configuration snapshotted from the test when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
default TestRun.Builder loggingConfiguration(Consumer<LoggingConfiguration.Builder> loggingConfiguration) The logging configuration snapshotted from the test when the run was started.
This is a convenience method that creates an instance of theLoggingConfiguration.Builderavoiding the need to create one manually viaLoggingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologgingConfiguration(LoggingConfiguration).- Parameters:
loggingConfiguration- a consumer that will call methods onLoggingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleName
The IAM execution role name snapshotted from the test when the run was started.
- Parameters:
roleName- The IAM execution role name snapshotted from the test when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testTemplateArn
The ARN of the test template snapshotted from the test when the run was started.
- Parameters:
testTemplateArn- The ARN of the test template snapshotted from the test when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportConfiguration
The report configuration snapshotted from the service when the run was started.
- Parameters:
reportConfiguration- The report configuration snapshotted from the service when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportConfiguration
default TestRun.Builder reportConfiguration(Consumer<TestRunReportConfiguration.Builder> reportConfiguration) The report configuration snapshotted from the service when the run was started.
This is a convenience method that creates an instance of theTestRunReportConfiguration.Builderavoiding the need to create one manually viaTestRunReportConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreportConfiguration(TestRunReportConfiguration).- Parameters:
reportConfiguration- a consumer that will call methods onTestRunReportConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policy
The resilience policy snapshotted from the service when the run was started.
- Parameters:
policy- The resilience policy snapshotted from the service when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The resilience policy snapshotted from the service when the run was started.
This is a convenience method that creates an instance of theTestRunPolicySnapshot.Builderavoiding the need to create one manually viaTestRunPolicySnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(TestRunPolicySnapshot).- Parameters:
policy- a consumer that will call methods onTestRunPolicySnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reportOutput
The report generation result for the test run. Present after report generation completes or fails.
- Parameters:
reportOutput- The report generation result for the test run. Present after report generation completes or fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportOutput
The report generation result for the test run. Present after report generation completes or fails.
This is a convenience method that creates an instance of theReportGenerationResult.Builderavoiding the need to create one manually viaReportGenerationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreportOutput(ReportGenerationResult).- Parameters:
reportOutput- a consumer that will call methods onReportGenerationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
regionSwitchPlanArn
The ARN of the ARC Region switch plan associated with the test run.
- Parameters:
regionSwitchPlanArn- The ARN of the ARC Region switch plan associated with the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regionSwitchExecutionId
The identifier of the ARC Region switch execution detected during the test run.
- Parameters:
regionSwitchExecutionId- The identifier of the ARC Region switch execution detected during the test run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionModel
The permission model snapshotted from the service when the run was started.
- Parameters:
permissionModel- The permission model snapshotted from the service when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionModel
The permission model snapshotted from the service when the run was started.
This is a convenience method that creates an instance of thePermissionModel.Builderavoiding the need to create one manually viaPermissionModel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissionModel(PermissionModel).- Parameters:
permissionModel- a consumer that will call methods onPermissionModel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
regions
The Regions snapshotted from the service when the run was started.
- Parameters:
regions- The Regions snapshotted from the service when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
The Regions snapshotted from the service when the run was started.
- Parameters:
regions- The Regions snapshotted from the service when the run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountTargeting
Indicates whether this test run targets a single account or multiple accounts.
- Parameters:
accountTargeting- Indicates whether this test run targets a single account or multiple accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountTargeting
Indicates whether this test run targets a single account or multiple accounts.
- Parameters:
accountTargeting- Indicates whether this test run targets a single account or multiple accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-