Interface CapacityReservation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityReservation.Builder,CapacityReservation>,SdkBuilder<CapacityReservation.Builder,CapacityReservation>,SdkPojo
- Enclosing class:
- CapacityReservation
public static interface CapacityReservation.Builder extends SdkPojo, CopyableBuilder<CapacityReservation.Builder,CapacityReservation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CapacityReservation.BuilderallocatedDpus(Integer allocatedDpus)The number of data processing units currently allocated.CapacityReservation.BuildercreationTime(Instant creationTime)The time in UTC epoch millis when the capacity reservation was created.default CapacityReservation.BuilderlastAllocation(Consumer<CapacityAllocation.Builder> lastAllocation)Sets the value of the LastAllocation property for this object.CapacityReservation.BuilderlastAllocation(CapacityAllocation lastAllocation)Sets the value of the LastAllocation property for this object.CapacityReservation.BuilderlastSuccessfulAllocationTime(Instant lastSuccessfulAllocationTime)The time of the most recent capacity allocation that succeeded.CapacityReservation.Buildername(String name)The name of the capacity reservation.CapacityReservation.Builderstatus(String status)The status of the capacity reservation.CapacityReservation.Builderstatus(CapacityReservationStatus status)The status of the capacity reservation.CapacityReservation.BuildertargetDpus(Integer targetDpus)The number of data processing units requested.-
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
-
name
CapacityReservation.Builder name(String name)
The name of the capacity reservation.
- Parameters:
name- The name of the capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CapacityReservation.Builder status(String status)
The status of the capacity reservation.
- Parameters:
status- The status of the capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationStatus,CapacityReservationStatus
-
status
CapacityReservation.Builder status(CapacityReservationStatus status)
The status of the capacity reservation.
- Parameters:
status- The status of the capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationStatus,CapacityReservationStatus
-
targetDpus
CapacityReservation.Builder targetDpus(Integer targetDpus)
The number of data processing units requested.
- Parameters:
targetDpus- The number of data processing units requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocatedDpus
CapacityReservation.Builder allocatedDpus(Integer allocatedDpus)
The number of data processing units currently allocated.
- Parameters:
allocatedDpus- The number of data processing units currently allocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAllocation
CapacityReservation.Builder lastAllocation(CapacityAllocation lastAllocation)
Sets the value of the LastAllocation property for this object.- Parameters:
lastAllocation- The new value for the LastAllocation property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAllocation
default CapacityReservation.Builder lastAllocation(Consumer<CapacityAllocation.Builder> lastAllocation)
Sets the value of the LastAllocation property for this object. This is a convenience method that creates an instance of theCapacityAllocation.Builderavoiding the need to create one manually viaCapacityAllocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastAllocation(CapacityAllocation).- Parameters:
lastAllocation- a consumer that will call methods onCapacityAllocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lastAllocation(CapacityAllocation)
-
lastSuccessfulAllocationTime
CapacityReservation.Builder lastSuccessfulAllocationTime(Instant lastSuccessfulAllocationTime)
The time of the most recent capacity allocation that succeeded.
- Parameters:
lastSuccessfulAllocationTime- The time of the most recent capacity allocation that succeeded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
CapacityReservation.Builder creationTime(Instant creationTime)
The time in UTC epoch millis when the capacity reservation was created.
- Parameters:
creationTime- The time in UTC epoch millis when the capacity reservation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-