@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservedInstance extends Object implements Serializable, Cloneable, StructuredPojo
Details of an OpenSearch Reserved Instance.
Constructor and Description |
---|
ReservedInstance() |
Modifier and Type | Method and Description |
---|---|
ReservedInstance |
clone() |
boolean |
equals(Object obj) |
Long |
getBillingSubscriptionId()
The unique identifier of the billing subscription.
|
String |
getCurrencyCode()
The currency code for the 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 Instance offering.
|
Integer |
getInstanceCount()
The number of OpenSearch instances that have been reserved.
|
String |
getInstanceType()
The OpenSearch instance type offered by theReserved Instance offering.
|
String |
getPaymentOption()
The payment option as defined in the Reserved Instance offering.
|
List<RecurringCharge> |
getRecurringCharges()
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance
offering.
|
String |
getReservationName()
The customer-specified identifier to track this reservation.
|
String |
getReservedInstanceId()
The unique identifier for the reservation.
|
String |
getReservedInstanceOfferingId()
The unique identifier of the Reserved Instance offering.
|
Date |
getStartTime()
The date and time when the reservation was purchased.
|
String |
getState()
The state of the Reserved Instance.
|
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 |
setBillingSubscriptionId(Long billingSubscriptionId)
The unique identifier of the billing subscription.
|
void |
setCurrencyCode(String currencyCode)
The currency code for the 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 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 theReserved Instance offering.
|
void |
setPaymentOption(String paymentOption)
The payment option as defined in the Reserved Instance offering.
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved 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 unique identifier of the Reserved Instance offering.
|
void |
setStartTime(Date startTime)
The date and time when the reservation was purchased.
|
void |
setState(String state)
The state of the Reserved Instance.
|
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.
|
ReservedInstance |
withBillingSubscriptionId(Long billingSubscriptionId)
The unique identifier of the billing subscription.
|
ReservedInstance |
withCurrencyCode(String currencyCode)
The currency code for the 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 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 theReserved Instance offering.
|
ReservedInstance |
withInstanceType(String instanceType)
The OpenSearch instance type offered by theReserved Instance offering.
|
ReservedInstance |
withPaymentOption(ReservedInstancePaymentOption paymentOption)
The payment option as defined in the Reserved Instance offering.
|
ReservedInstance |
withPaymentOption(String paymentOption)
The payment option as defined in the Reserved Instance offering.
|
ReservedInstance |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance
offering.
|
ReservedInstance |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved 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 unique identifier of the Reserved Instance offering.
|
ReservedInstance |
withStartTime(Date startTime)
The date and time when the reservation was purchased.
|
ReservedInstance |
withState(String state)
The state of the Reserved Instance.
|
ReservedInstance |
withUsagePrice(Double usagePrice)
The hourly rate at which you're charged for the domain 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)
The unique identifier of the billing subscription.
billingSubscriptionId
- The unique identifier of the billing subscription.public Long getBillingSubscriptionId()
The unique identifier of the billing subscription.
public ReservedInstance withBillingSubscriptionId(Long billingSubscriptionId)
The unique identifier of the billing subscription.
billingSubscriptionId
- The unique identifier of the billing subscription.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 ReservedInstance 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 theReserved Instance offering.
instanceType
- The OpenSearch instance type offered by theReserved Instance offering.OpenSearchPartitionInstanceType
public String getInstanceType()
The OpenSearch instance type offered by theReserved Instance offering.
OpenSearchPartitionInstanceType
public ReservedInstance withInstanceType(String instanceType)
The OpenSearch instance type offered by theReserved Instance offering.
instanceType
- The OpenSearch instance type offered by theReserved Instance offering.OpenSearchPartitionInstanceType
public ReservedInstance withInstanceType(OpenSearchPartitionInstanceType instanceType)
The OpenSearch instance type offered by theReserved Instance offering.
instanceType
- The OpenSearch instance type offered by theReserved Instance offering.OpenSearchPartitionInstanceType
public void setStartTime(Date startTime)
The date and time when the reservation was purchased.
startTime
- The date and time when the reservation was purchased.public Date getStartTime()
The date and time when the reservation was purchased.
public ReservedInstance withStartTime(Date startTime)
The date and time when the reservation was purchased.
startTime
- The date and time when the reservation was purchased.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 Instance offering.
fixedPrice
- The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.public Double getFixedPrice()
The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.
public ReservedInstance withFixedPrice(Double fixedPrice)
The upfront fixed charge you will paid to purchase the specific Reserved Instance offering.
fixedPrice
- The upfront fixed charge you will paid 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 ReservedInstance 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 offering.
currencyCode
- The currency code for the offering.public String getCurrencyCode()
The currency code for the offering.
public ReservedInstance withCurrencyCode(String currencyCode)
The currency code for the offering.
currencyCode
- The currency code for the 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 Instance.
state
- The state of the Reserved Instance.public String getState()
The state of the Reserved Instance.
public ReservedInstance withState(String state)
The state of the Reserved Instance.
state
- The state of the Reserved Instance.public void setPaymentOption(String paymentOption)
The payment option as defined in the Reserved Instance offering.
paymentOption
- The payment option as defined in the Reserved Instance offering.ReservedInstancePaymentOption
public String getPaymentOption()
The payment option as defined in the Reserved Instance offering.
ReservedInstancePaymentOption
public ReservedInstance withPaymentOption(String paymentOption)
The payment option as defined in the Reserved Instance offering.
paymentOption
- The payment option as defined in the Reserved Instance offering.ReservedInstancePaymentOption
public ReservedInstance withPaymentOption(ReservedInstancePaymentOption paymentOption)
The payment option as defined in the Reserved Instance offering.
paymentOption
- The payment option as defined in the Reserved Instance offering.ReservedInstancePaymentOption
public List<RecurringCharge> getRecurringCharges()
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
recurringCharges
- The recurring charge to your account, regardless of whether you create any domains using the Reserved
Instance offering.public ReservedInstance withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved 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 recurring charge to your account, regardless of whether you create any domains using the Reserved
Instance offering.public ReservedInstance withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge to your account, regardless of whether you create any domains using the Reserved Instance offering.
recurringCharges
- The recurring charge to your account, regardless of whether you create any domains using the Reserved
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.