Interface CanaryRun.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanaryRun.Builder,
,CanaryRun> SdkBuilder<CanaryRun.Builder,
,CanaryRun> SdkPojo
- Enclosing class:
CanaryRun
-
Method Summary
Modifier and TypeMethodDescriptionartifactS3Location
(String artifactS3Location) The location where the canary stored artifacts from the run.default CanaryRun.Builder
dryRunConfig
(Consumer<CanaryDryRunConfigOutput.Builder> dryRunConfig) Returns the dry run configurations for a canary.dryRunConfig
(CanaryDryRunConfigOutput dryRunConfig) Returns the dry run configurations for a canary.A unique ID that identifies this canary run.The name of the canary.retryAttempt
(Integer retryAttempt) The count in number of the retry attempt.scheduledRunId
(String scheduledRunId) The ID of the scheduled canary run.default CanaryRun.Builder
status
(Consumer<CanaryRunStatus.Builder> status) The status of this run.status
(CanaryRunStatus status) The status of this run.default CanaryRun.Builder
timeline
(Consumer<CanaryRunTimeline.Builder> timeline) A structure that contains the start and end times of this run.timeline
(CanaryRunTimeline timeline) A structure that contains the start and end times of this run.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
A unique ID that identifies this canary run.
- Parameters:
id
- A unique ID that identifies this canary run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledRunId
The ID of the scheduled canary run.
- Parameters:
scheduledRunId
- The ID of the scheduled canary run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryAttempt
The count in number of the retry attempt.
- Parameters:
retryAttempt
- The count in number of the retry attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the canary.
- Parameters:
name
- The name of the canary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of this run.
- Parameters:
status
- The status of this run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of this run.
This is a convenience method that creates an instance of theCanaryRunStatus.Builder
avoiding the need to create one manually viaCanaryRunStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(CanaryRunStatus)
.- Parameters:
status
- a consumer that will call methods onCanaryRunStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeline
A structure that contains the start and end times of this run.
- Parameters:
timeline
- A structure that contains the start and end times of this run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeline
A structure that contains the start and end times of this run.
This is a convenience method that creates an instance of theCanaryRunTimeline.Builder
avoiding the need to create one manually viaCanaryRunTimeline.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeline(CanaryRunTimeline)
.- Parameters:
timeline
- a consumer that will call methods onCanaryRunTimeline.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
artifactS3Location
The location where the canary stored artifacts from the run. Artifacts include the log file, screenshots, and HAR files.
- Parameters:
artifactS3Location
- The location where the canary stored artifacts from the run. Artifacts include the log file, screenshots, and HAR files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRunConfig
Returns the dry run configurations for a canary.
- Parameters:
dryRunConfig
- Returns the dry run configurations for a canary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRunConfig
Returns the dry run configurations for a canary.
This is a convenience method that creates an instance of theCanaryDryRunConfigOutput.Builder
avoiding the need to create one manually viaCanaryDryRunConfigOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todryRunConfig(CanaryDryRunConfigOutput)
.- Parameters:
dryRunConfig
- a consumer that will call methods onCanaryDryRunConfigOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-