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
Modifier and TypeMethodDescriptionallocatedDpus
(Integer allocatedDpus) The number of data processing units currently allocated.creationTime
(Instant creationTime) The time in UTC epoch millis when the capacity reservation was created.default CapacityReservation.Builder
lastAllocation
(Consumer<CapacityAllocation.Builder> lastAllocation) Sets the value of the LastAllocation property for this object.lastAllocation
(CapacityAllocation lastAllocation) Sets the value of the LastAllocation property for this object.lastSuccessfulAllocationTime
(Instant lastSuccessfulAllocationTime) The time of the most recent capacity allocation that succeeded.The name of the capacity reservation.The status of the capacity reservation.status
(CapacityReservationStatus status) The status of the capacity reservation.targetDpus
(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, sdkFields
-
Method Details
-
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
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:
-
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:
-
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
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
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.Builder
avoiding the need to create one manually viaCapacityAllocation.builder()
.When the
Consumer
completes,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:
-
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
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.
-