Interface CapacityReservation.Builder

  • 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

      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 the CapacityAllocation.Builder avoiding the need to create one manually via CapacityAllocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lastAllocation(CapacityAllocation).

      Parameters:
      lastAllocation - a consumer that will call methods on CapacityAllocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.