@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksAnywhereSubscriptionTerm extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription.
Constructor and Description |
---|
EksAnywhereSubscriptionTerm() |
Modifier and Type | Method and Description |
---|---|
EksAnywhereSubscriptionTerm |
clone() |
boolean |
equals(Object obj) |
Integer |
getDuration()
The duration of the subscription term.
|
String |
getUnit()
The term unit of the subscription.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(Integer duration)
The duration of the subscription term.
|
void |
setUnit(String unit)
The term unit of the subscription.
|
String |
toString()
Returns a string representation of this object.
|
EksAnywhereSubscriptionTerm |
withDuration(Integer duration)
The duration of the subscription term.
|
EksAnywhereSubscriptionTerm |
withUnit(EksAnywhereSubscriptionTermUnit unit)
The term unit of the subscription.
|
EksAnywhereSubscriptionTerm |
withUnit(String unit)
The term unit of the subscription.
|
public void setDuration(Integer duration)
The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month subscription.
duration
- The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month
subscription.public Integer getDuration()
The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month subscription.
public EksAnywhereSubscriptionTerm withDuration(Integer duration)
The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month subscription.
duration
- The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month
subscription.public void setUnit(String unit)
The term unit of the subscription. Valid value is MONTHS
.
unit
- The term unit of the subscription. Valid value is MONTHS
.EksAnywhereSubscriptionTermUnit
public String getUnit()
The term unit of the subscription. Valid value is MONTHS
.
MONTHS
.EksAnywhereSubscriptionTermUnit
public EksAnywhereSubscriptionTerm withUnit(String unit)
The term unit of the subscription. Valid value is MONTHS
.
unit
- The term unit of the subscription. Valid value is MONTHS
.EksAnywhereSubscriptionTermUnit
public EksAnywhereSubscriptionTerm withUnit(EksAnywhereSubscriptionTermUnit unit)
The term unit of the subscription. Valid value is MONTHS
.
unit
- The term unit of the subscription. Valid value is MONTHS
.EksAnywhereSubscriptionTermUnit
public String toString()
toString
in class Object
Object.toString()
public EksAnywhereSubscriptionTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.