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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CanaryRun.BuilderartifactS3Location(String artifactS3Location)The location where the canary stored artifacts from the run.CanaryRun.Builderid(String id)A unique ID that identifies this canary run.CanaryRun.Buildername(String name)The name of the canary.default CanaryRun.Builderstatus(Consumer<CanaryRunStatus.Builder> status)The status of this run.CanaryRun.Builderstatus(CanaryRunStatus status)The status of this run.default CanaryRun.Buildertimeline(Consumer<CanaryRunTimeline.Builder> timeline)A structure that contains the start and end times of this run.CanaryRun.Buildertimeline(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 Detail
-
id
CanaryRun.Builder id(String 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
CanaryRun.Builder name(String 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
CanaryRun.Builder status(CanaryRunStatus 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
default CanaryRun.Builder status(Consumer<CanaryRunStatus.Builder> status)
The status of this run.
This is a convenience method that creates an instance of theCanaryRunStatus.Builderavoiding the need to create one manually viaCanaryRunStatus.builder().When the
Consumercompletes,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:
status(CanaryRunStatus)
-
timeline
CanaryRun.Builder timeline(CanaryRunTimeline 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
default CanaryRun.Builder timeline(Consumer<CanaryRunTimeline.Builder> timeline)
A structure that contains the start and end times of this run.
This is a convenience method that creates an instance of theCanaryRunTimeline.Builderavoiding the need to create one manually viaCanaryRunTimeline.builder().When the
Consumercompletes,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:
timeline(CanaryRunTimeline)
-
artifactS3Location
CanaryRun.Builder artifactS3Location(String 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.
-
-