Interface DescribeVolumesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeVolumesResponse.Builder,,DescribeVolumesResponse> Ec2Response.Builder,SdkBuilder<DescribeVolumesResponse.Builder,,DescribeVolumesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeVolumesResponse
public static interface DescribeVolumesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeVolumesResponse.Builder,DescribeVolumesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to include in another request to get the next page of items.volumes(Collection<Volume> volumes) Information about the volumes.volumes(Consumer<Volume.Builder>... volumes) Information about the volumes.Information about the volumes.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
-
nextToken
The token to include in another request to get the next page of items. This value is
nullwhen there are no more items to return.- Parameters:
nextToken- The token to include in another request to get the next page of items. This value isnullwhen there are no more items to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Information about the volumes.
- Parameters:
volumes- Information about the volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Information about the volumes.
- Parameters:
volumes- Information about the volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
Information about the volumes.
This is a convenience method that creates an instance of theVolume.Builderavoiding the need to create one manually viaVolume.builder().When the
Consumercompletes,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:
-