Interface CapacityBlock.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityBlock.Builder,CapacityBlock>,SdkBuilder<CapacityBlock.Builder,CapacityBlock>,SdkPojo
- Enclosing class:
- CapacityBlock
@Mutable @NotThreadSafe public static interface CapacityBlock.Builder extends SdkPojo, CopyableBuilder<CapacityBlock.Builder,CapacityBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapacityBlock.BuilderavailabilityZone(String availabilityZone)The Availability Zone of the Capacity Block.CapacityBlock.BuilderavailabilityZoneId(String availabilityZoneId)The Availability Zone ID of the Capacity Block.CapacityBlock.BuildercapacityBlockId(String capacityBlockId)The ID of the Capacity Block.CapacityBlock.BuildercapacityReservationIds(String... capacityReservationIds)The ID of the Capacity Reservation.CapacityBlock.BuildercapacityReservationIds(Collection<String> capacityReservationIds)The ID of the Capacity Reservation.CapacityBlock.BuildercreateDate(Instant createDate)The date and time at which the Capacity Block was created.CapacityBlock.BuilderendDate(Instant endDate)The date and time at which the Capacity Block expires.CapacityBlock.BuilderstartDate(Instant startDate)The date and time at which the Capacity Block was started.CapacityBlock.Builderstate(String state)The state of the Capacity Block.CapacityBlock.Builderstate(CapacityBlockResourceState state)The state of the Capacity Block.CapacityBlock.Buildertags(Collection<Tag> tags)The tags assigned to the Capacity Block.CapacityBlock.Buildertags(Consumer<Tag.Builder>... tags)The tags assigned to the Capacity Block.CapacityBlock.Buildertags(Tag... tags)The tags assigned to the Capacity Block.CapacityBlock.BuilderultraserverType(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 Detail
-
capacityBlockId
CapacityBlock.Builder capacityBlockId(String 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
CapacityBlock.Builder ultraserverType(String 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
CapacityBlock.Builder availabilityZone(String 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
CapacityBlock.Builder availabilityZoneId(String 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
CapacityBlock.Builder capacityReservationIds(Collection<String> 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
CapacityBlock.Builder capacityReservationIds(String... 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
CapacityBlock.Builder startDate(Instant 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
CapacityBlock.Builder endDate(Instant 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
CapacityBlock.Builder createDate(Instant 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
CapacityBlock.Builder state(String 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:
CapacityBlockResourceState,CapacityBlockResourceState
-
state
CapacityBlock.Builder state(CapacityBlockResourceState 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:
CapacityBlockResourceState,CapacityBlockResourceState
-
tags
CapacityBlock.Builder tags(Collection<Tag> 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
CapacityBlock.Builder tags(Tag... 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
CapacityBlock.Builder tags(Consumer<Tag.Builder>... tags)
The tags assigned to the Capacity Block.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-