Interface CreateSnapshotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateSnapshotsResponse.Builder,
,CreateSnapshotsResponse> Ec2Response.Builder
,SdkBuilder<CreateSnapshotsResponse.Builder,
,CreateSnapshotsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateSnapshotsResponse
@Mutable
@NotThreadSafe
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
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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaSnapshotInfo.builder()
.When the
Consumer
completes,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:
-