Interface TargetAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetAction.Builder,TargetAction>,SdkBuilder<TargetAction.Builder,TargetAction>,SdkPojo
- Enclosing class:
- TargetAction
public static interface TargetAction.Builder extends SdkPojo, CopyableBuilder<TargetAction.Builder,TargetAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TargetAction.BuildercreateSnapshot(Consumer<CreateSnapshotScheduleActionParameters.Builder> createSnapshot)Sets the value of the CreateSnapshot property for this object.TargetAction.BuildercreateSnapshot(CreateSnapshotScheduleActionParameters createSnapshot)Sets the value of the CreateSnapshot property for this object.-
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
-
createSnapshot
TargetAction.Builder createSnapshot(CreateSnapshotScheduleActionParameters createSnapshot)
Sets the value of the CreateSnapshot property for this object.- Parameters:
createSnapshot- The new value for the CreateSnapshot property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createSnapshot
default TargetAction.Builder createSnapshot(Consumer<CreateSnapshotScheduleActionParameters.Builder> createSnapshot)
Sets the value of the CreateSnapshot property for this object. This is a convenience method that creates an instance of theCreateSnapshotScheduleActionParameters.Builderavoiding the need to create one manually viaCreateSnapshotScheduleActionParameters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreateSnapshot(CreateSnapshotScheduleActionParameters).- Parameters:
createSnapshot- a consumer that will call methods onCreateSnapshotScheduleActionParameters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
createSnapshot(CreateSnapshotScheduleActionParameters)
-
-