Interface CopyVolumesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CopyVolumesResponse.Builder,
,CopyVolumesResponse> Ec2Response.Builder
,SdkBuilder<CopyVolumesResponse.Builder,
,CopyVolumesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CopyVolumesResponse
@Mutable
@NotThreadSafe
public static interface CopyVolumesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CopyVolumesResponse.Builder,CopyVolumesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvolumes
(Collection<Volume> volumes) Information about the volume copy.volumes
(Consumer<Volume.Builder>... volumes) Information about the volume copy.Information about the volume copy.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
-
volumes
Information about the volume copy.
- Parameters:
volumes
- Information about the volume copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Information about the volume copy.
- Parameters:
volumes
- Information about the volume copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Information about the volume copy.
This is a convenience method that creates an instance of theVolume.Builder
avoiding the need to create one manually viaVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumes(List<Volume>)
.- Parameters:
volumes
- a consumer that will call methods onVolume.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-