Interface PurchaseCapacityBlockResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PurchaseCapacityBlockResponse.Builder,
,PurchaseCapacityBlockResponse> Ec2Response.Builder
,SdkBuilder<PurchaseCapacityBlockResponse.Builder,
,PurchaseCapacityBlockResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PurchaseCapacityBlockResponse
@Mutable
@NotThreadSafe
public static interface PurchaseCapacityBlockResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<PurchaseCapacityBlockResponse.Builder,PurchaseCapacityBlockResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityBlocks
(Collection<CapacityBlock> capacityBlocks) The Capacity Block.capacityBlocks
(Consumer<CapacityBlock.Builder>... capacityBlocks) The Capacity Block.capacityBlocks
(CapacityBlock... capacityBlocks) The Capacity Block.capacityReservation
(Consumer<CapacityReservation.Builder> capacityReservation) The Capacity Reservation.capacityReservation
(CapacityReservation capacityReservation) The Capacity Reservation.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
-
capacityReservation
The Capacity Reservation.
- Parameters:
capacityReservation
- The Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservation
default PurchaseCapacityBlockResponse.Builder capacityReservation(Consumer<CapacityReservation.Builder> capacityReservation) The Capacity Reservation.
This is a convenience method that creates an instance of theCapacityReservation.Builder
avoiding the need to create one manually viaCapacityReservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservation(CapacityReservation)
.- Parameters:
capacityReservation
- a consumer that will call methods onCapacityReservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityBlocks
The Capacity Block.
- Parameters:
capacityBlocks
- The Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlocks
The Capacity Block.
- Parameters:
capacityBlocks
- The Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlocks
PurchaseCapacityBlockResponse.Builder capacityBlocks(Consumer<CapacityBlock.Builder>... capacityBlocks) The Capacity Block.
This is a convenience method that creates an instance of theCapacityBlock.Builder
avoiding the need to create one manually viaCapacityBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityBlocks(List<CapacityBlock>)
.- Parameters:
capacityBlocks
- a consumer that will call methods onCapacityBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-