@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservedInstance extends Object implements Serializable, Cloneable, StructuredPojo
Details of a reserved OpenSearch instance.
Constructor and Description |
---|
ReservedInstance() |
Modifier and Type | Method and Description |
---|---|
ReservedInstance |
clone() |
boolean |
equals(Object obj) |
Long |
getBillingSubscriptionId() |
String |
getCurrencyCode()
The currency code for the reserved OpenSearch instance offering.
|
Integer |
getDuration()
The duration, in seconds, for which the OpenSearch instance is reserved.
|
Double |
getFixedPrice()
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
|
Integer |
getInstanceCount()
The number of OpenSearch instances that have been reserved.
|
String |
getInstanceType()
The OpenSearch instance type offered by the reserved instance offering.
|
String |
getPaymentOption()
The payment option as defined in the reserved OpenSearch instance offering.
|
List<RecurringCharge> |
getRecurringCharges()
The charge to your account regardless of whether you are creating any domains using the instance offering.
|
String |
getReservationName()
The customer-specified identifier to track this reservation.
|
String |
getReservedInstanceId()
The unique identifier for the reservation.
|
String |
getReservedInstanceOfferingId()
The offering identifier.
|
Date |
getStartTime()
The time the reservation started.
|
String |
getState()
The state of the reserved OpenSearch instance.
|
Double |
getUsagePrice()
The rate you are charged for each hour for the domain that is using this reserved instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBillingSubscriptionId(Long billingSubscriptionId) |
void |
setCurrencyCode(String currencyCode)
The currency code for the reserved OpenSearch instance offering.
|
void |
setDuration(Integer duration)
The duration, in seconds, for which the OpenSearch instance is reserved.
|
void |
setFixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
|
void |
setInstanceCount(Integer instanceCount)
The number of OpenSearch instances that have been reserved.
|
void |
setInstanceType(String instanceType)
The OpenSearch instance type offered by the reserved instance offering.
|
void |
setPaymentOption(String paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance offering.
|
void |
setReservationName(String reservationName)
The customer-specified identifier to track this reservation.
|
void |
setReservedInstanceId(String reservedInstanceId)
The unique identifier for the reservation.
|
void |
setReservedInstanceOfferingId(String reservedInstanceOfferingId)
The offering identifier.
|
void |
setStartTime(Date startTime)
The time the reservation started.
|
void |
setState(String state)
The state of the reserved OpenSearch instance.
|
void |
setUsagePrice(Double usagePrice)
The rate you are charged for each hour for the domain that is using this reserved instance.
|
String |
toString()
Returns a string representation of this object.
|
ReservedInstance |
withBillingSubscriptionId(Long billingSubscriptionId) |
ReservedInstance |
withCurrencyCode(String currencyCode)
The currency code for the reserved OpenSearch instance offering.
|
ReservedInstance |
withDuration(Integer duration)
The duration, in seconds, for which the OpenSearch instance is reserved.
|
ReservedInstance |
withFixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
|
ReservedInstance |
withInstanceCount(Integer instanceCount)
The number of OpenSearch instances that have been reserved.
|
ReservedInstance |
withInstanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by the reserved instance offering.
|
ReservedInstance |
withInstanceType(String instanceType)
The OpenSearch instance type offered by the reserved instance offering.
|
ReservedInstance |
withPaymentOption(ReservedInstancePaymentOption paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
|
ReservedInstance |
withPaymentOption(String paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
|
ReservedInstance |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance offering.
|
ReservedInstance |
withRecurringCharges(RecurringCharge... recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance offering.
|
ReservedInstance |
withReservationName(String reservationName)
The customer-specified identifier to track this reservation.
|
ReservedInstance |
withReservedInstanceId(String reservedInstanceId)
The unique identifier for the reservation.
|
ReservedInstance |
withReservedInstanceOfferingId(String reservedInstanceOfferingId)
The offering identifier.
|
ReservedInstance |
withStartTime(Date startTime)
The time the reservation started.
|
ReservedInstance |
withState(String state)
The state of the reserved OpenSearch instance.
|
ReservedInstance |
withUsagePrice(Double usagePrice)
The rate you are charged for each hour for the domain that is using this reserved instance.
|
public void setReservationName(String reservationName)
The customer-specified identifier to track this reservation.
reservationName
- The customer-specified identifier to track this reservation.public String getReservationName()
The customer-specified identifier to track this reservation.
public ReservedInstance withReservationName(String reservationName)
The customer-specified identifier to track this reservation.
reservationName
- The customer-specified identifier to track this reservation.public void setReservedInstanceId(String reservedInstanceId)
The unique identifier for the reservation.
reservedInstanceId
- The unique identifier for the reservation.public String getReservedInstanceId()
The unique identifier for the reservation.
public ReservedInstance withReservedInstanceId(String reservedInstanceId)
The unique identifier for the reservation.
reservedInstanceId
- The unique identifier for the reservation.public void setBillingSubscriptionId(Long billingSubscriptionId)
billingSubscriptionId
- public Long getBillingSubscriptionId()
public ReservedInstance withBillingSubscriptionId(Long billingSubscriptionId)
billingSubscriptionId
- public void setReservedInstanceOfferingId(String reservedInstanceOfferingId)
The offering identifier.
reservedInstanceOfferingId
- The offering identifier.public String getReservedInstanceOfferingId()
The offering identifier.
public ReservedInstance withReservedInstanceOfferingId(String reservedInstanceOfferingId)
The offering identifier.
reservedInstanceOfferingId
- The offering identifier.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 ReservedInstance 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 ReservedInstance 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 setStartTime(Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public Date getStartTime()
The time the reservation started.
public ReservedInstance withStartTime(Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public void setDuration(Integer duration)
The duration, in seconds, for which the OpenSearch instance is reserved.
duration
- The duration, in seconds, for which the OpenSearch instance is reserved.public Integer getDuration()
The duration, in seconds, for which the OpenSearch instance is reserved.
public ReservedInstance withDuration(Integer duration)
The duration, in seconds, for which the OpenSearch instance is reserved.
duration
- The duration, in seconds, for which the OpenSearch instance is reserved.public void setFixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
fixedPrice
- The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.public Double getFixedPrice()
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
public ReservedInstance withFixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.
fixedPrice
- The upfront fixed charge you will paid to purchase the specific reserved OpenSearch instance offering.public void setUsagePrice(Double usagePrice)
The rate you are charged for each hour for the domain that is using this reserved instance.
usagePrice
- The rate you are charged for each hour for the domain that is using this reserved instance.public Double getUsagePrice()
The rate you are charged for each hour for the domain that is using this reserved instance.
public ReservedInstance withUsagePrice(Double usagePrice)
The rate you are charged for each hour for the domain that is using this reserved instance.
usagePrice
- The rate you are charged for each hour for the domain that is using this reserved instance.public void setCurrencyCode(String currencyCode)
The currency code for the reserved OpenSearch instance offering.
currencyCode
- The currency code for the reserved OpenSearch instance offering.public String getCurrencyCode()
The currency code for the reserved OpenSearch instance offering.
public ReservedInstance withCurrencyCode(String currencyCode)
The currency code for the reserved OpenSearch instance offering.
currencyCode
- The currency code for the reserved OpenSearch instance offering.public void setInstanceCount(Integer instanceCount)
The number of OpenSearch instances that have been reserved.
instanceCount
- The number of OpenSearch instances that have been reserved.public Integer getInstanceCount()
The number of OpenSearch instances that have been reserved.
public ReservedInstance withInstanceCount(Integer instanceCount)
The number of OpenSearch instances that have been reserved.
instanceCount
- The number of OpenSearch instances that have been reserved.public void setState(String state)
The state of the reserved OpenSearch instance.
state
- The state of the reserved OpenSearch instance.public String getState()
The state of the reserved OpenSearch instance.
public ReservedInstance withState(String state)
The state of the reserved OpenSearch instance.
state
- The state of the reserved OpenSearch instance.public void setPaymentOption(String paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
paymentOption
- The payment option as defined in the reserved OpenSearch instance offering.ReservedInstancePaymentOption
public String getPaymentOption()
The payment option as defined in the reserved OpenSearch instance offering.
ReservedInstancePaymentOption
public ReservedInstance withPaymentOption(String paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
paymentOption
- The payment option as defined in the reserved OpenSearch instance offering.ReservedInstancePaymentOption
public ReservedInstance withPaymentOption(ReservedInstancePaymentOption paymentOption)
The payment option as defined in the reserved OpenSearch instance offering.
paymentOption
- The payment option as defined in the reserved OpenSearch instance offering.ReservedInstancePaymentOption
public List<RecurringCharge> getRecurringCharges()
The charge to your account regardless of whether you are creating any domains using the instance offering.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance offering.
recurringCharges
- The charge to your account regardless of whether you are creating any domains using the instance offering.public ReservedInstance withRecurringCharges(RecurringCharge... recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance 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 charge to your account regardless of whether you are creating any domains using the instance offering.public ReservedInstance withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any domains using the instance offering.
recurringCharges
- The charge to your account regardless of whether you are creating any domains using the instance offering.public String toString()
toString
in class Object
Object.toString()
public ReservedInstance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.