@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.PurchasingOption
public String getPurchasingOption()
The payment plan to use for your Reserved Instance.
PurchasingOption
public ReservedInstanceOptions withPurchasingOption(String purchasingOption)
The payment plan to use for your Reserved Instance.
purchasingOption
- The payment plan to use for your Reserved Instance.PurchasingOption
public ReservedInstanceOptions withPurchasingOption(PurchasingOption purchasingOption)
The payment plan to use for your Reserved Instance.
purchasingOption
- The payment plan to use for your Reserved Instance.PurchasingOption
public 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.OfferingClass
public String getOfferingClass()
The flexibility to change the instance types needed for your Reserved Instance.
OfferingClass
public 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.OfferingClass
public 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.OfferingClass
public void setTermLength(String termLength)
The preferred duration of the Reserved Instance term.
termLength
- The preferred duration of the Reserved Instance term.TermLength
public String getTermLength()
The preferred duration of the Reserved Instance term.
TermLength
public ReservedInstanceOptions withTermLength(String termLength)
The preferred duration of the Reserved Instance term.
termLength
- The preferred duration of the Reserved Instance term.TermLength
public ReservedInstanceOptions withTermLength(TermLength termLength)
The preferred duration of the Reserved Instance term.
termLength
- The preferred duration of the Reserved Instance term.TermLength
public String toString()
toString
in class Object
Object.toString()
public ReservedInstanceOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.