@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservedInstanceOffering extends Object implements Serializable, Cloneable, StructuredPojo
Details of an OpenSearch Reserved Instance offering.
Constructor and Description |
---|
ReservedInstanceOffering() |
Modifier and Type | Method and Description |
---|---|
ReservedInstanceOffering |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
The currency code for the Reserved Instance offering.
|
Integer |
getDuration()
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
|
Double |
getFixedPrice()
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
|
String |
getInstanceType()
The OpenSearch instance type offered by the Reserved Instance offering.
|
String |
getPaymentOption()
Payment option for the Reserved Instance offering
|
List<RecurringCharge> |
getRecurringCharges()
The recurring charge to your account, regardless of whether you creates any domains using the offering.
|
String |
getReservedInstanceOfferingId()
The unique identifier of the Reserved Instance offering.
|
Double |
getUsagePrice()
The hourly rate at which you're charged for the domain using this Reserved Instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrencyCode(String currencyCode)
The currency code for the Reserved Instance offering.
|
void |
setDuration(Integer duration)
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
|
void |
setFixedPrice(Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
|
void |
setInstanceType(String instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
|
void |
setPaymentOption(String paymentOption)
Payment option for the Reserved Instance offering
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
|
void |
setReservedInstanceOfferingId(String reservedInstanceOfferingId)
The unique identifier of the Reserved Instance offering.
|
void |
setUsagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain using this Reserved Instance.
|
String |
toString()
Returns a string representation of this object.
|
ReservedInstanceOffering |
withCurrencyCode(String currencyCode)
The currency code for the Reserved Instance offering.
|
ReservedInstanceOffering |
withDuration(Integer duration)
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
|
ReservedInstanceOffering |
withFixedPrice(Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
|
ReservedInstanceOffering |
withInstanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
|
ReservedInstanceOffering |
withInstanceType(String instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
|
ReservedInstanceOffering |
withPaymentOption(ReservedInstancePaymentOption paymentOption)
Payment option for the Reserved Instance offering
|
ReservedInstanceOffering |
withPaymentOption(String paymentOption)
Payment option for the Reserved Instance offering
|
ReservedInstanceOffering |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
|
ReservedInstanceOffering |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
|
ReservedInstanceOffering |
withReservedInstanceOfferingId(String reservedInstanceOfferingId)
The unique identifier of the Reserved Instance offering.
|
ReservedInstanceOffering |
withUsagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain using this Reserved Instance.
|
public void setReservedInstanceOfferingId(String reservedInstanceOfferingId)
The unique identifier of the Reserved Instance offering.
reservedInstanceOfferingId
- The unique identifier of the Reserved Instance offering.public String getReservedInstanceOfferingId()
The unique identifier of the Reserved Instance offering.
public ReservedInstanceOffering withReservedInstanceOfferingId(String reservedInstanceOfferingId)
The unique identifier of the Reserved Instance offering.
reservedInstanceOfferingId
- The unique identifier of the Reserved Instance offering.public void setInstanceType(String instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
instanceType
- The OpenSearch instance type offered by the Reserved Instance offering.OpenSearchPartitionInstanceType
public String getInstanceType()
The OpenSearch instance type offered by the Reserved Instance offering.
OpenSearchPartitionInstanceType
public ReservedInstanceOffering withInstanceType(String instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
instanceType
- The OpenSearch instance type offered by the Reserved Instance offering.OpenSearchPartitionInstanceType
public ReservedInstanceOffering withInstanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by the Reserved Instance offering.
instanceType
- The OpenSearch instance type offered by the Reserved Instance offering.OpenSearchPartitionInstanceType
public void setDuration(Integer duration)
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
duration
- The duration, in seconds, for which the offering will reserve the OpenSearch instance.public Integer getDuration()
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
public ReservedInstanceOffering withDuration(Integer duration)
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
duration
- The duration, in seconds, for which the offering will reserve the OpenSearch instance.public void setFixedPrice(Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
fixedPrice
- The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.public Double getFixedPrice()
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
public ReservedInstanceOffering withFixedPrice(Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
fixedPrice
- The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.public void setUsagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain using this Reserved Instance.
usagePrice
- The hourly rate at which you're charged for the domain using this Reserved Instance.public Double getUsagePrice()
The hourly rate at which you're charged for the domain using this Reserved Instance.
public ReservedInstanceOffering withUsagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain using this Reserved Instance.
usagePrice
- The hourly rate at which you're charged for the domain using this Reserved Instance.public void setCurrencyCode(String currencyCode)
The currency code for the Reserved Instance offering.
currencyCode
- The currency code for the Reserved Instance offering.public String getCurrencyCode()
The currency code for the Reserved Instance offering.
public ReservedInstanceOffering withCurrencyCode(String currencyCode)
The currency code for the Reserved Instance offering.
currencyCode
- The currency code for the Reserved Instance offering.public void setPaymentOption(String paymentOption)
Payment option for the Reserved Instance offering
paymentOption
- Payment option for the Reserved Instance offeringReservedInstancePaymentOption
public String getPaymentOption()
Payment option for the Reserved Instance offering
ReservedInstancePaymentOption
public ReservedInstanceOffering withPaymentOption(String paymentOption)
Payment option for the Reserved Instance offering
paymentOption
- Payment option for the Reserved Instance offeringReservedInstancePaymentOption
public ReservedInstanceOffering withPaymentOption(ReservedInstancePaymentOption paymentOption)
Payment option for the Reserved Instance offering
paymentOption
- Payment option for the Reserved Instance offeringReservedInstancePaymentOption
public List<RecurringCharge> getRecurringCharges()
The recurring charge to your account, regardless of whether you creates any domains using the offering.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
recurringCharges
- The recurring charge to your account, regardless of whether you creates any domains using the offering.public ReservedInstanceOffering withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
NOTE: This method appends the values to the existing list (if any). Use
setRecurringCharges(java.util.Collection)
or withRecurringCharges(java.util.Collection)
if you
want to override the existing values.
recurringCharges
- The recurring charge to your account, regardless of whether you creates any domains using the offering.public ReservedInstanceOffering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you creates any domains using the offering.
recurringCharges
- The recurring charge to your account, regardless of whether you creates any domains using the offering.public String toString()
toString
in class Object
Object.toString()
public ReservedInstanceOffering clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.