Interface CancellationTerms.Builder

  • Method Details

    • cancellationType

      CancellationTerms.Builder cancellationType(String cancellationType)

      The type of cancellation charge. Possible values include commitment-wind-down.

      Parameters:
      cancellationType - The type of cancellation charge. Possible values include commitment-wind-down.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • cancellationType

      CancellationTerms.Builder cancellationType(ApplyCancellationCharges cancellationType)

      The type of cancellation charge. Possible values include commitment-wind-down.

      Parameters:
      cancellationType - The type of cancellation charge. Possible values include commitment-wind-down.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reservationState

      CancellationTerms.Builder reservationState(String reservationState)

      The state that the Capacity Reservation will transition to after cancellation.

      Parameters:
      reservationState - The state that the Capacity Reservation will transition to after cancellation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • committedInstanceCount

      CancellationTerms.Builder committedInstanceCount(Integer committedInstanceCount)

      The number of instances under commitment after cancellation.

      Parameters:
      committedInstanceCount - The number of instances under commitment after cancellation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • chargeCommitmentDurationHours

      CancellationTerms.Builder chargeCommitmentDurationHours(Long chargeCommitmentDurationHours)

      The number of hours for which cancellation charges will apply.

      Parameters:
      chargeCommitmentDurationHours - The number of hours for which cancellation charges will apply.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • chargeEndDate

      CancellationTerms.Builder chargeEndDate(Instant chargeEndDate)

      The date and time at which cancellation charges will stop.

      Parameters:
      chargeEndDate - The date and time at which cancellation charges will stop.
      Returns:
      Returns a reference to this object so that method calls can be chained together.