Interface DescribeCapacityBlockStatusResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeCapacityBlockStatusResponse.Builder,
,DescribeCapacityBlockStatusResponse> Ec2Response.Builder
,SdkBuilder<DescribeCapacityBlockStatusResponse.Builder,
,DescribeCapacityBlockStatusResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeCapacityBlockStatusResponse
@Mutable
@NotThreadSafe
public static interface DescribeCapacityBlockStatusResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeCapacityBlockStatusResponse.Builder,DescribeCapacityBlockStatusResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityBlockStatuses
(Collection<CapacityBlockStatus> capacityBlockStatuses) The availability of capacity for a Capacity Block.capacityBlockStatuses
(Consumer<CapacityBlockStatus.Builder>... capacityBlockStatuses) The availability of capacity for a Capacity Block.capacityBlockStatuses
(CapacityBlockStatus... capacityBlockStatuses) The availability of capacity for a Capacity Block.The token to use to retrieve the next page of results.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
-
capacityBlockStatuses
DescribeCapacityBlockStatusResponse.Builder capacityBlockStatuses(Collection<CapacityBlockStatus> capacityBlockStatuses) The availability of capacity for a Capacity Block.
- Parameters:
capacityBlockStatuses
- The availability of capacity for a Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlockStatuses
DescribeCapacityBlockStatusResponse.Builder capacityBlockStatuses(CapacityBlockStatus... capacityBlockStatuses) The availability of capacity for a Capacity Block.
- Parameters:
capacityBlockStatuses
- The availability of capacity for a Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlockStatuses
DescribeCapacityBlockStatusResponse.Builder capacityBlockStatuses(Consumer<CapacityBlockStatus.Builder>... capacityBlockStatuses) The availability of capacity for a Capacity Block.
This is a convenience method that creates an instance of theCapacityBlockStatus.Builder
avoiding the need to create one manually viaCapacityBlockStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityBlockStatuses(List<CapacityBlockStatus>)
.- Parameters:
capacityBlockStatuses
- a consumer that will call methods onCapacityBlockStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-