@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservedInstanceOptions extends Object implements Serializable, Cloneable, StructuredPojo
Used to provide Reserved Instance preferences for the recommendation.
| Constructor and Description |
|---|
ReservedInstanceOptions() |
| Modifier and Type | Method and Description |
|---|---|
ReservedInstanceOptions |
clone() |
boolean |
equals(Object obj) |
String |
getOfferingClass()
The flexibility to change the instance types needed for your Reserved Instance.
|
String |
getPurchasingOption()
The payment plan to use for your Reserved Instance.
|
String |
getTermLength()
The preferred duration of the Reserved Instance term.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setOfferingClass(String offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
|
void |
setPurchasingOption(String purchasingOption)
The payment plan to use for your Reserved Instance.
|
void |
setTermLength(String termLength)
The preferred duration of the Reserved Instance term.
|
String |
toString()
Returns a string representation of this object.
|
ReservedInstanceOptions |
withOfferingClass(OfferingClass offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
|
ReservedInstanceOptions |
withOfferingClass(String offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
|
ReservedInstanceOptions |
withPurchasingOption(PurchasingOption purchasingOption)
The payment plan to use for your Reserved Instance.
|
ReservedInstanceOptions |
withPurchasingOption(String purchasingOption)
The payment plan to use for your Reserved Instance.
|
ReservedInstanceOptions |
withTermLength(String termLength)
The preferred duration of the Reserved Instance term.
|
ReservedInstanceOptions |
withTermLength(TermLength termLength)
The preferred duration of the Reserved Instance term.
|
public void setPurchasingOption(String purchasingOption)
The payment plan to use for your Reserved Instance.
purchasingOption - The payment plan to use for your Reserved Instance.PurchasingOptionpublic String getPurchasingOption()
The payment plan to use for your Reserved Instance.
PurchasingOptionpublic ReservedInstanceOptions withPurchasingOption(String purchasingOption)
The payment plan to use for your Reserved Instance.
purchasingOption - The payment plan to use for your Reserved Instance.PurchasingOptionpublic ReservedInstanceOptions withPurchasingOption(PurchasingOption purchasingOption)
The payment plan to use for your Reserved Instance.
purchasingOption - The payment plan to use for your Reserved Instance.PurchasingOptionpublic void setOfferingClass(String offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
offeringClass - The flexibility to change the instance types needed for your Reserved Instance.OfferingClasspublic String getOfferingClass()
The flexibility to change the instance types needed for your Reserved Instance.
OfferingClasspublic ReservedInstanceOptions withOfferingClass(String offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
offeringClass - The flexibility to change the instance types needed for your Reserved Instance.OfferingClasspublic ReservedInstanceOptions withOfferingClass(OfferingClass offeringClass)
The flexibility to change the instance types needed for your Reserved Instance.
offeringClass - The flexibility to change the instance types needed for your Reserved Instance.OfferingClasspublic void setTermLength(String termLength)
The preferred duration of the Reserved Instance term.
termLength - The preferred duration of the Reserved Instance term.TermLengthpublic String getTermLength()
The preferred duration of the Reserved Instance term.
TermLengthpublic ReservedInstanceOptions withTermLength(String termLength)
The preferred duration of the Reserved Instance term.
termLength - The preferred duration of the Reserved Instance term.TermLengthpublic ReservedInstanceOptions withTermLength(TermLength termLength)
The preferred duration of the Reserved Instance term.
termLength - The preferred duration of the Reserved Instance term.TermLengthpublic String toString()
toString in class ObjectObject.toString()public ReservedInstanceOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.