Interface ReservedInstanceOffering.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedInstanceOffering.Builder,ReservedInstanceOffering>,SdkBuilder<ReservedInstanceOffering.Builder,ReservedInstanceOffering>,SdkPojo
- Enclosing class:
- ReservedInstanceOffering
public static interface ReservedInstanceOffering.Builder extends SdkPojo, CopyableBuilder<ReservedInstanceOffering.Builder,ReservedInstanceOffering>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedInstanceOffering.BuildercurrencyCode(String currencyCode)The currency code for the Reserved Instance offering.ReservedInstanceOffering.Builderduration(Integer duration)The duration, in seconds, for which the offering will reserve the OpenSearch instance.ReservedInstanceOffering.BuilderfixedPrice(Double fixedPrice)The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.ReservedInstanceOffering.BuilderinstanceType(String instanceType)The OpenSearch instance type offered by the Reserved Instance offering.ReservedInstanceOffering.BuilderinstanceType(OpenSearchPartitionInstanceType instanceType)The OpenSearch instance type offered by the Reserved Instance offering.ReservedInstanceOffering.BuilderpaymentOption(String paymentOption)Payment option for the Reserved Instance offeringReservedInstanceOffering.BuilderpaymentOption(ReservedInstancePaymentOption paymentOption)Payment option for the Reserved Instance offeringReservedInstanceOffering.BuilderrecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring charge to your account, regardless of whether you creates any domains using the offering.ReservedInstanceOffering.BuilderrecurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)The recurring charge to your account, regardless of whether you creates any domains using the offering.ReservedInstanceOffering.BuilderrecurringCharges(RecurringCharge... recurringCharges)The recurring charge to your account, regardless of whether you creates any domains using the offering.ReservedInstanceOffering.BuilderreservedInstanceOfferingId(String reservedInstanceOfferingId)The unique identifier of the Reserved Instance offering.ReservedInstanceOffering.BuilderusagePrice(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
-
reservedInstanceOfferingId
ReservedInstanceOffering.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
ReservedInstanceOffering.Builder instanceType(String instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
- Parameters:
instanceType- The OpenSearch instance type offered by the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OpenSearchPartitionInstanceType,OpenSearchPartitionInstanceType
-
instanceType
ReservedInstanceOffering.Builder instanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
- Parameters:
instanceType- The OpenSearch instance type offered by the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OpenSearchPartitionInstanceType,OpenSearchPartitionInstanceType
-
duration
ReservedInstanceOffering.Builder duration(Integer duration)
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
- Parameters:
duration- The duration, in seconds, for which the offering will reserve the OpenSearch instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedPrice
ReservedInstanceOffering.Builder fixedPrice(Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
- Parameters:
fixedPrice- The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usagePrice
ReservedInstanceOffering.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
ReservedInstanceOffering.Builder currencyCode(String currencyCode)
The currency code for the Reserved Instance offering.
- Parameters:
currencyCode- The currency code for the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentOption
ReservedInstanceOffering.Builder paymentOption(String paymentOption)
Payment option for the Reserved Instance offering
- Parameters:
paymentOption- Payment option for the Reserved Instance offering- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReservedInstancePaymentOption,ReservedInstancePaymentOption
-
paymentOption
ReservedInstanceOffering.Builder paymentOption(ReservedInstancePaymentOption paymentOption)
Payment option for the Reserved Instance offering
- Parameters:
paymentOption- Payment option for the Reserved Instance offering- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReservedInstancePaymentOption,ReservedInstancePaymentOption
-
recurringCharges
ReservedInstanceOffering.Builder recurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
- Parameters:
recurringCharges- The recurring charge to your account, regardless of whether you creates any domains using the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
ReservedInstanceOffering.Builder recurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
- Parameters:
recurringCharges- The recurring charge to your account, regardless of whether you creates any domains using the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
ReservedInstanceOffering.Builder recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
This is a convenience method that creates an instance of theRecurringCharge.Builderavoiding the need to create one manually viaRecurringCharge.builder().When the
Consumercompletes,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)
-
-