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
Modifier and TypeMethodDescriptiondefault TargetAction.Builder
createSnapshot
(Consumer<CreateSnapshotScheduleActionParameters.Builder> createSnapshot) Sets the value of the CreateSnapshot property for this object.createSnapshot
(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 Details
-
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.Builder
avoiding the need to create one manually viaCreateSnapshotScheduleActionParameters.builder()
.When the
Consumer
completes,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:
-