Interface ReservedInstance.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ReservedInstance.Builder,ReservedInstance>, SdkBuilder<ReservedInstance.Builder,ReservedInstance>, SdkPojo
Enclosing class:
ReservedInstance

public static interface ReservedInstance.Builder extends SdkPojo, CopyableBuilder<ReservedInstance.Builder,ReservedInstance>
  • Method Details

    • reservationName

      ReservedInstance.Builder reservationName(String reservationName)

      The customer-specified identifier to track this reservation.

      Parameters:
      reservationName - The customer-specified identifier to track this reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservedInstanceId

      ReservedInstance.Builder reservedInstanceId(String reservedInstanceId)

      The unique identifier for the reservation.

      Parameters:
      reservedInstanceId - The unique identifier for the reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billingSubscriptionId

      ReservedInstance.Builder billingSubscriptionId(Long billingSubscriptionId)

      The unique identifier of the billing subscription.

      Parameters:
      billingSubscriptionId - The unique identifier of the billing subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservedInstanceOfferingId

      ReservedInstance.Builder reservedInstanceOfferingId(String reservedInstanceOfferingId)

      The unique identifier of the Reserved Instance offering.

      Parameters:
      reservedInstanceOfferingId - The unique identifier of the Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      ReservedInstance.Builder instanceType(String instanceType)

      The OpenSearch instance type offered by theReserved Instance offering.

      Parameters:
      instanceType - The OpenSearch instance type offered by theReserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceType

      The OpenSearch instance type offered by theReserved Instance offering.

      Parameters:
      instanceType - The OpenSearch instance type offered by theReserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTime

      ReservedInstance.Builder startTime(Instant startTime)

      The date and time when the reservation was purchased.

      Parameters:
      startTime - The date and time when the reservation was purchased.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • duration

      ReservedInstance.Builder duration(Integer duration)

      The duration, in seconds, for which the OpenSearch instance is reserved.

      Parameters:
      duration - The duration, in seconds, for which the OpenSearch instance is reserved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixedPrice

      ReservedInstance.Builder fixedPrice(Double fixedPrice)

      The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.

      Parameters:
      fixedPrice - The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usagePrice

      ReservedInstance.Builder usagePrice(Double usagePrice)

      The hourly rate at which you're charged for the domain using this Reserved Instance.

      Parameters:
      usagePrice - The hourly rate at which you're charged for the domain using this Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      ReservedInstance.Builder currencyCode(String currencyCode)

      The currency code for the offering.

      Parameters:
      currencyCode - The currency code for the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      ReservedInstance.Builder instanceCount(Integer instanceCount)

      The number of OpenSearch instances that have been reserved.

      Parameters:
      instanceCount - The number of OpenSearch instances that have been reserved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of the Reserved Instance.

      Parameters:
      state - The state of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentOption

      ReservedInstance.Builder paymentOption(String paymentOption)

      The payment option as defined in the Reserved Instance offering.

      Parameters:
      paymentOption - The payment option as defined in the Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentOption

      The payment option as defined in the Reserved Instance offering.

      Parameters:
      paymentOption - The payment option as defined in the Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recurringCharges

      ReservedInstance.Builder recurringCharges(Collection<RecurringCharge> recurringCharges)

      The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.

      Parameters:
      recurringCharges - The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      ReservedInstance.Builder recurringCharges(RecurringCharge... recurringCharges)

      The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.

      Parameters:
      recurringCharges - The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      ReservedInstance.Builder recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)

      The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.

      This is a convenience method that creates an instance of the RecurringCharge.Builder avoiding the need to create one manually via RecurringCharge.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recurringCharges(List<RecurringCharge>).

      Parameters:
      recurringCharges - a consumer that will call methods on RecurringCharge.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: