Interface CapacityBlockExtension.Builder

  • Method Details

    • capacityReservationId

      CapacityBlockExtension.Builder capacityReservationId(String capacityReservationId)

      The reservation ID of the Capacity Block extension.

      Parameters:
      capacityReservationId - The reservation ID of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      CapacityBlockExtension.Builder instanceType(String instanceType)

      The instance type of the Capacity Block extension.

      Parameters:
      instanceType - The instance type of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      CapacityBlockExtension.Builder instanceCount(Integer instanceCount)

      The number of instances in the Capacity Block extension.

      Parameters:
      instanceCount - The number of instances in the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      CapacityBlockExtension.Builder availabilityZone(String availabilityZone)

      The Availability Zone of the Capacity Block extension.

      Parameters:
      availabilityZone - The Availability Zone of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneId

      CapacityBlockExtension.Builder availabilityZoneId(String availabilityZoneId)

      The Availability Zone ID of the Capacity Block extension.

      Parameters:
      availabilityZoneId - The Availability Zone ID of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockExtensionOfferingId

      CapacityBlockExtension.Builder capacityBlockExtensionOfferingId(String capacityBlockExtensionOfferingId)

      The ID of the Capacity Block extension offering.

      Parameters:
      capacityBlockExtensionOfferingId - The ID of the Capacity Block extension offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockExtensionDurationHours

      CapacityBlockExtension.Builder capacityBlockExtensionDurationHours(Integer capacityBlockExtensionDurationHours)

      The duration of the Capacity Block extension in hours.

      Parameters:
      capacityBlockExtensionDurationHours - The duration of the Capacity Block extension in hours.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockExtensionStatus

      CapacityBlockExtension.Builder capacityBlockExtensionStatus(String capacityBlockExtensionStatus)

      The status of the Capacity Block extension. A Capacity Block extension can have one of the following statuses:

      • payment-pending - The Capacity Block extension payment is processing. If your payment can't be processed within 12 hours, the Capacity Block extension is failed.

      • payment-failed - Payment for the Capacity Block extension request was not successful.

      • payment-succeeded - Payment for the Capacity Block extension request was successful. You receive an invoice that reflects the one-time upfront payment. In the invoice, you can associate the paid amount with the Capacity Block reservation ID.

      Parameters:
      capacityBlockExtensionStatus - The status of the Capacity Block extension. A Capacity Block extension can have one of the following statuses:

      • payment-pending - The Capacity Block extension payment is processing. If your payment can't be processed within 12 hours, the Capacity Block extension is failed.

      • payment-failed - Payment for the Capacity Block extension request was not successful.

      • payment-succeeded - Payment for the Capacity Block extension request was successful. You receive an invoice that reflects the one-time upfront payment. In the invoice, you can associate the paid amount with the Capacity Block reservation ID.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • capacityBlockExtensionStatus

      CapacityBlockExtension.Builder capacityBlockExtensionStatus(CapacityBlockExtensionStatus capacityBlockExtensionStatus)

      The status of the Capacity Block extension. A Capacity Block extension can have one of the following statuses:

      • payment-pending - The Capacity Block extension payment is processing. If your payment can't be processed within 12 hours, the Capacity Block extension is failed.

      • payment-failed - Payment for the Capacity Block extension request was not successful.

      • payment-succeeded - Payment for the Capacity Block extension request was successful. You receive an invoice that reflects the one-time upfront payment. In the invoice, you can associate the paid amount with the Capacity Block reservation ID.

      Parameters:
      capacityBlockExtensionStatus - The status of the Capacity Block extension. A Capacity Block extension can have one of the following statuses:

      • payment-pending - The Capacity Block extension payment is processing. If your payment can't be processed within 12 hours, the Capacity Block extension is failed.

      • payment-failed - Payment for the Capacity Block extension request was not successful.

      • payment-succeeded - Payment for the Capacity Block extension request was successful. You receive an invoice that reflects the one-time upfront payment. In the invoice, you can associate the paid amount with the Capacity Block reservation ID.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • capacityBlockExtensionPurchaseDate

      CapacityBlockExtension.Builder capacityBlockExtensionPurchaseDate(Instant capacityBlockExtensionPurchaseDate)

      The date when the Capacity Block extension was purchased.

      Parameters:
      capacityBlockExtensionPurchaseDate - The date when the Capacity Block extension was purchased.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockExtensionStartDate

      CapacityBlockExtension.Builder capacityBlockExtensionStartDate(Instant capacityBlockExtensionStartDate)

      The start date of the Capacity Block extension.

      Parameters:
      capacityBlockExtensionStartDate - The start date of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockExtensionEndDate

      CapacityBlockExtension.Builder capacityBlockExtensionEndDate(Instant capacityBlockExtensionEndDate)

      The end date of the Capacity Block extension.

      Parameters:
      capacityBlockExtensionEndDate - The end date of the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • upfrontFee

      CapacityBlockExtension.Builder upfrontFee(String upfrontFee)

      The total price to be paid up front.

      Parameters:
      upfrontFee - The total price to be paid up front.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      CapacityBlockExtension.Builder currencyCode(String currencyCode)

      The currency of the payment for the Capacity Block extension.

      Parameters:
      currencyCode - The currency of the payment for the Capacity Block extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.