Interface CreateSnapshotsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSnapshotsResponse.Builder,CreateSnapshotsResponse>,Ec2Response.Builder,SdkBuilder<CreateSnapshotsResponse.Builder,CreateSnapshotsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateSnapshotsResponse
public static interface CreateSnapshotsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateSnapshotsResponse.Builder,CreateSnapshotsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateSnapshotsResponse.Buildersnapshots(Collection<SnapshotInfo> snapshots)List of snapshots.CreateSnapshotsResponse.Buildersnapshots(Consumer<SnapshotInfo.Builder>... snapshots)List of snapshots.CreateSnapshotsResponse.Buildersnapshots(SnapshotInfo... snapshots)List of snapshots.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
snapshots
CreateSnapshotsResponse.Builder snapshots(Collection<SnapshotInfo> snapshots)
List of snapshots.
- Parameters:
snapshots- List of snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
CreateSnapshotsResponse.Builder snapshots(SnapshotInfo... snapshots)
List of snapshots.
- Parameters:
snapshots- List of snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
CreateSnapshotsResponse.Builder snapshots(Consumer<SnapshotInfo.Builder>... snapshots)
List of snapshots.
This is a convenience method that creates an instance of theSnapshotInfo.Builderavoiding the need to create one manually viaSnapshotInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#snapshots(List.) - Parameters:
snapshots- a consumer that will call methods onSnapshotInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#snapshots(java.util.Collection)
-
-