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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedInstance.Builder
billingSubscriptionId(Long billingSubscriptionId)
The unique identifier of the billing subscription.ReservedInstance.Builder
currencyCode(String currencyCode)
The currency code for the offering.ReservedInstance.Builder
duration(Integer duration)
The duration, in seconds, for which the OpenSearch instance is reserved.ReservedInstance.Builder
fixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.ReservedInstance.Builder
instanceCount(Integer instanceCount)
The number of OpenSearch instances that have been reserved.ReservedInstance.Builder
instanceType(String instanceType)
The OpenSearch instance type offered by theReserved Instance offering.ReservedInstance.Builder
instanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by theReserved Instance offering.ReservedInstance.Builder
paymentOption(String paymentOption)
The payment option as defined in the Reserved Instance offering.ReservedInstance.Builder
paymentOption(ReservedInstancePaymentOption paymentOption)
The payment option as defined in the Reserved Instance offering.ReservedInstance.Builder
recurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.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.ReservedInstance.Builder
recurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.ReservedInstance.Builder
reservationName(String reservationName)
The customer-specified identifier to track this reservation.ReservedInstance.Builder
reservedInstanceId(String reservedInstanceId)
The unique identifier for the reservation.ReservedInstance.Builder
reservedInstanceOfferingId(String reservedInstanceOfferingId)
The unique identifier of the Reserved Instance offering.ReservedInstance.Builder
startTime(Instant startTime)
The date and time when the reservation was purchased.ReservedInstance.Builder
state(String state)
The state of the Reserved Instance.ReservedInstance.Builder
usagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain using this Reserved Instance.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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:
OpenSearchPartitionInstanceType
,OpenSearchPartitionInstanceType
-
instanceType
ReservedInstance.Builder instanceType(OpenSearchPartitionInstanceType 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:
OpenSearchPartitionInstanceType
,OpenSearchPartitionInstanceType
-
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
ReservedInstance.Builder state(String 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:
ReservedInstancePaymentOption
,ReservedInstancePaymentOption
-
paymentOption
ReservedInstance.Builder paymentOption(ReservedInstancePaymentOption 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:
ReservedInstancePaymentOption
,ReservedInstancePaymentOption
-
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 theRecurringCharge.Builder
avoiding the need to create one manually viaRecurringCharge.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#recurringCharges(List
.) - Parameters:
recurringCharges
- a consumer that will call methods onRecurringCharge.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#recurringCharges(java.util.Collection
)
-
-