Interface ZonalCapacityReservationState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ZonalCapacityReservationState.Builder,
,ZonalCapacityReservationState> SdkBuilder<ZonalCapacityReservationState.Builder,
,ZonalCapacityReservationState> SdkPojo
- Enclosing class:
ZonalCapacityReservationState
@Mutable
@NotThreadSafe
public static interface ZonalCapacityReservationState.Builder
extends SdkPojo, CopyableBuilder<ZonalCapacityReservationState.Builder,ZonalCapacityReservationState>
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Information about the Availability Zone.effectiveCapacityUnits
(Double effectiveCapacityUnits) The number of effective capacity units.The state of the capacity reservation.state
(CapacityReservationStatus state) The state of the capacity reservation.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
-
state
The state of the capacity reservation.
- Parameters:
state
- The state of the capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default ZonalCapacityReservationState.Builder state(Consumer<CapacityReservationStatus.Builder> state) The state of the capacity reservation.
This is a convenience method that creates an instance of theCapacityReservationStatus.Builder
avoiding the need to create one manually viaCapacityReservationStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(CapacityReservationStatus)
.- Parameters:
state
- a consumer that will call methods onCapacityReservationStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
Information about the Availability Zone.
- Parameters:
availabilityZone
- Information about the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveCapacityUnits
The number of effective capacity units.
- Parameters:
effectiveCapacityUnits
- The number of effective capacity units.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-