Interface TestRun.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TestRun.Builder,TestRun>, SdkBuilder<TestRun.Builder,TestRun>, SdkPojo
Enclosing class:
TestRun

@Mutable @NotThreadSafe public static interface TestRun.Builder extends SdkPojo, CopyableBuilder<TestRun.Builder,TestRun>
  • Method Details

    • testRunId

      TestRun.Builder testRunId(String 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

      TestRun.Builder testId(String 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

      TestRun.Builder status(String 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

      TestRun.Builder serviceArn(String 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

      TestRun.Builder startedAt(Instant 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

      TestRun.Builder endedAt(Instant 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

      TestRun.Builder experiments(Collection<ExperimentDetails> 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

      TestRun.Builder experiments(ExperimentDetails... 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

      TestRun.Builder experiments(Consumer<ExperimentDetails.Builder>... 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 the ExperimentDetails.Builder avoiding the need to create one manually via ExperimentDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to experiments(List<ExperimentDetails>).

      Parameters:
      experiments - a consumer that will call methods on ExperimentDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventCount

      TestRun.Builder eventCount(Integer 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

      TestRun.Builder parameters(Map<String,? extends Collection<String>> 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

      TestRun.Builder errorMessage(String 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

      TestRun.Builder stopConditions(Collection<StopCondition> 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

      TestRun.Builder stopConditions(StopCondition... 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

      TestRun.Builder stopConditions(Consumer<StopCondition.Builder>... stopConditions)

      The stop conditions snapshotted from the test when the run was started.

      This is a convenience method that creates an instance of the StopCondition.Builder avoiding the need to create one manually via StopCondition.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to stopConditions(List<StopCondition>).

      Parameters:
      stopConditions - a consumer that will call methods on StopCondition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • loggingConfiguration

      TestRun.Builder loggingConfiguration(LoggingConfiguration 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 the LoggingConfiguration.Builder avoiding the need to create one manually via LoggingConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to loggingConfiguration(LoggingConfiguration).

      Parameters:
      loggingConfiguration - a consumer that will call methods on LoggingConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • roleName

      TestRun.Builder roleName(String 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

      TestRun.Builder testTemplateArn(String 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

      TestRun.Builder reportConfiguration(TestRunReportConfiguration 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 the TestRunReportConfiguration.Builder avoiding the need to create one manually via TestRunReportConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to reportConfiguration(TestRunReportConfiguration).

      Parameters:
      reportConfiguration - a consumer that will call methods on TestRunReportConfiguration.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 the TestRunPolicySnapshot.Builder avoiding the need to create one manually via TestRunPolicySnapshot.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to policy(TestRunPolicySnapshot).

      Parameters:
      policy - a consumer that will call methods on TestRunPolicySnapshot.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reportOutput

      TestRun.Builder reportOutput(ReportGenerationResult 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

      default TestRun.Builder reportOutput(Consumer<ReportGenerationResult.Builder> 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 the ReportGenerationResult.Builder avoiding the need to create one manually via ReportGenerationResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to reportOutput(ReportGenerationResult).

      Parameters:
      reportOutput - a consumer that will call methods on ReportGenerationResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • regionSwitchPlanArn

      TestRun.Builder regionSwitchPlanArn(String 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

      TestRun.Builder regionSwitchExecutionId(String 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

      TestRun.Builder permissionModel(PermissionModel 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

      default TestRun.Builder permissionModel(Consumer<PermissionModel.Builder> permissionModel)

      The permission model snapshotted from the service when the run was started.

      This is a convenience method that creates an instance of the PermissionModel.Builder avoiding the need to create one manually via PermissionModel.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to permissionModel(PermissionModel).

      Parameters:
      permissionModel - a consumer that will call methods on PermissionModel.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • regions

      TestRun.Builder regions(Collection<String> 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

      TestRun.Builder regions(String... 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

      TestRun.Builder accountTargeting(String 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

      TestRun.Builder accountTargeting(AccountTargeting 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: