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
Modifier and TypeMethodDescriptionsnapshots(Collection<SnapshotInfo> snapshots) List of snapshots.snapshots(Consumer<SnapshotInfo.Builder>... snapshots) List of snapshots.snapshots(SnapshotInfo... snapshots) List of snapshots.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
List of snapshots.
- Parameters:
snapshots- List of snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 tosnapshots(List<SnapshotInfo>).- 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:
-