Interface CapacityBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CapacityBlock.Builder,
,CapacityBlock> SdkBuilder<CapacityBlock.Builder,
,CapacityBlock> SdkPojo
- Enclosing class:
CapacityBlock
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone of the Capacity Block.availabilityZoneId
(String availabilityZoneId) The Availability Zone ID of the Capacity Block.capacityBlockId
(String capacityBlockId) The ID of the Capacity Block.capacityReservationIds
(String... capacityReservationIds) The ID of the Capacity Reservation.capacityReservationIds
(Collection<String> capacityReservationIds) The ID of the Capacity Reservation.createDate
(Instant createDate) The date and time at which the Capacity Block was created.The date and time at which the Capacity Block expires.The date and time at which the Capacity Block was started.The state of the Capacity Block.state
(CapacityBlockResourceState state) The state of the Capacity Block.tags
(Collection<Tag> tags) The tags assigned to the Capacity Block.tags
(Consumer<Tag.Builder>... tags) The tags assigned to the Capacity Block.The tags assigned to the Capacity Block.ultraserverType
(String ultraserverType) The EC2 UltraServer type of the Capacity Block.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
capacityBlockId
The ID of the Capacity Block.
- Parameters:
capacityBlockId
- The ID of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ultraserverType
The EC2 UltraServer type of the Capacity Block.
- Parameters:
ultraserverType
- The EC2 UltraServer type of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
The Availability Zone of the Capacity Block.
- Parameters:
availabilityZone
- The Availability Zone of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
The Availability Zone ID of the Capacity Block.
- Parameters:
availabilityZoneId
- The Availability Zone ID of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationIds
The ID of the Capacity Reservation.
- Parameters:
capacityReservationIds
- The ID of the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationIds
The ID of the Capacity Reservation.
- Parameters:
capacityReservationIds
- The ID of the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The date and time at which the Capacity Block was started.
- Parameters:
startDate
- The date and time at which the Capacity Block was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The date and time at which the Capacity Block expires. When a Capacity Block expires, all instances in the Capacity Block are terminated.
- Parameters:
endDate
- The date and time at which the Capacity Block expires. When a Capacity Block expires, all instances in the Capacity Block are terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
The date and time at which the Capacity Block was created.
- Parameters:
createDate
- The date and time at which the Capacity Block was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the Capacity Block.
- Parameters:
state
- The state of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the Capacity Block.
- Parameters:
state
- The state of the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags assigned to the Capacity Block.
- Parameters:
tags
- The tags assigned to the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Capacity Block.
- Parameters:
tags
- The tags assigned to the Capacity Block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Capacity Block.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-