Interface ListSnapshotBlocksResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSnapshotBlocksResponse.Builder,ListSnapshotBlocksResponse>,EbsResponse.Builder,SdkBuilder<ListSnapshotBlocksResponse.Builder,ListSnapshotBlocksResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListSnapshotBlocksResponse
public static interface ListSnapshotBlocksResponse.Builder extends EbsResponse.Builder, SdkPojo, CopyableBuilder<ListSnapshotBlocksResponse.Builder,ListSnapshotBlocksResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListSnapshotBlocksResponse.Builderblocks(Collection<Block> blocks)An array of objects containing information about the blocks.ListSnapshotBlocksResponse.Builderblocks(Consumer<Block.Builder>... blocks)An array of objects containing information about the blocks.ListSnapshotBlocksResponse.Builderblocks(Block... blocks)An array of objects containing information about the blocks.ListSnapshotBlocksResponse.BuilderblockSize(Integer blockSize)The size of the blocks in the snapshot, in bytes.ListSnapshotBlocksResponse.BuilderexpiryTime(Instant expiryTime)The time when theBlockTokenexpires.ListSnapshotBlocksResponse.BuildernextToken(String nextToken)The token to use to retrieve the next page of results.ListSnapshotBlocksResponse.BuildervolumeSize(Long volumeSize)The size of the volume in GB.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ebs.model.EbsResponse.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
-
blocks
ListSnapshotBlocksResponse.Builder blocks(Collection<Block> blocks)
An array of objects containing information about the blocks.
- Parameters:
blocks- An array of objects containing information about the blocks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
ListSnapshotBlocksResponse.Builder blocks(Block... blocks)
An array of objects containing information about the blocks.
- Parameters:
blocks- An array of objects containing information about the blocks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
ListSnapshotBlocksResponse.Builder blocks(Consumer<Block.Builder>... blocks)
An array of objects containing information about the blocks.
This is a convenience method that creates an instance of theBlock.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blocks(List.) - Parameters:
blocks- a consumer that will call methods onBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#blocks(java.util.Collection)
-
expiryTime
ListSnapshotBlocksResponse.Builder expiryTime(Instant expiryTime)
The time when the
BlockTokenexpires.- Parameters:
expiryTime- The time when theBlockTokenexpires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeSize
ListSnapshotBlocksResponse.Builder volumeSize(Long volumeSize)
The size of the volume in GB.
- Parameters:
volumeSize- The size of the volume in GB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockSize
ListSnapshotBlocksResponse.Builder blockSize(Integer blockSize)
The size of the blocks in the snapshot, in bytes.
- Parameters:
blockSize- The size of the blocks in the snapshot, in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ListSnapshotBlocksResponse.Builder nextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
- Parameters:
nextToken- The token to use to retrieve the next page of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-