Interface CanaryLastRun.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CanaryLastRun.Builder,,CanaryLastRun> SdkBuilder<CanaryLastRun.Builder,,CanaryLastRun> SdkPojo
- Enclosing class:
CanaryLastRun
@Mutable
@NotThreadSafe
public static interface CanaryLastRun.Builder
extends SdkPojo, CopyableBuilder<CanaryLastRun.Builder,CanaryLastRun>
-
Method Summary
Modifier and TypeMethodDescriptioncanaryName(String canaryName) The name of the canary.default CanaryLastRun.BuilderlastRun(Consumer<CanaryRun.Builder> lastRun) The results from this canary's most recent run.The results from this canary's most recent run.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
-
canaryName
The name of the canary.
- Parameters:
canaryName- The name of the canary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRun
The results from this canary's most recent run.
- Parameters:
lastRun- The results from this canary's most recent run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRun
The results from this canary's most recent run.
This is a convenience method that creates an instance of theCanaryRun.Builderavoiding the need to create one manually viaCanaryRun.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastRun(CanaryRun).- Parameters:
lastRun- a consumer that will call methods onCanaryRun.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-