Interface CanaryRun.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanaryRun.Builder,
,CanaryRun> SdkBuilder<CanaryRun.Builder,
,CanaryRun> SdkPojo
- Enclosing class:
CanaryRun
public static interface CanaryRun.Builder
extends SdkPojo, CopyableBuilder<CanaryRun.Builder,CanaryRun>
-
Method Summary
Modifier and TypeMethodDescriptionartifactS3Location
(String artifactS3Location) The location where the canary stored artifacts from the run.A unique ID that identifies this canary run.The name of the canary.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, 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.
-
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.
-