@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entitlement extends Object implements Serializable, Cloneable, StructuredPojo
Describes a resource entitled for use with a license.
| Constructor and Description |
|---|
Entitlement() |
| Modifier and Type | Method and Description |
|---|---|
Entitlement |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowCheckIn()
Indicates whether check-ins are allowed.
|
Long |
getMaxCount()
Maximum entitlement count.
|
String |
getName()
Entitlement name.
|
Boolean |
getOverage()
Indicates whether overages are allowed.
|
String |
getUnit()
Entitlement unit.
|
String |
getValue()
Entitlement resource.
|
int |
hashCode() |
Boolean |
isAllowCheckIn()
Indicates whether check-ins are allowed.
|
Boolean |
isOverage()
Indicates whether overages are allowed.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllowCheckIn(Boolean allowCheckIn)
Indicates whether check-ins are allowed.
|
void |
setMaxCount(Long maxCount)
Maximum entitlement count.
|
void |
setName(String name)
Entitlement name.
|
void |
setOverage(Boolean overage)
Indicates whether overages are allowed.
|
void |
setUnit(String unit)
Entitlement unit.
|
void |
setValue(String value)
Entitlement resource.
|
String |
toString()
Returns a string representation of this object.
|
Entitlement |
withAllowCheckIn(Boolean allowCheckIn)
Indicates whether check-ins are allowed.
|
Entitlement |
withMaxCount(Long maxCount)
Maximum entitlement count.
|
Entitlement |
withName(String name)
Entitlement name.
|
Entitlement |
withOverage(Boolean overage)
Indicates whether overages are allowed.
|
Entitlement |
withUnit(EntitlementUnit unit)
Entitlement unit.
|
Entitlement |
withUnit(String unit)
Entitlement unit.
|
Entitlement |
withValue(String value)
Entitlement resource.
|
public void setName(String name)
Entitlement name.
name - Entitlement name.public String getName()
Entitlement name.
public Entitlement withName(String name)
Entitlement name.
name - Entitlement name.public void setValue(String value)
Entitlement resource. Use only if the unit is None.
value - Entitlement resource. Use only if the unit is None.public String getValue()
Entitlement resource. Use only if the unit is None.
public Entitlement withValue(String value)
Entitlement resource. Use only if the unit is None.
value - Entitlement resource. Use only if the unit is None.public void setMaxCount(Long maxCount)
Maximum entitlement count. Use if the unit is not None.
maxCount - Maximum entitlement count. Use if the unit is not None.public Long getMaxCount()
Maximum entitlement count. Use if the unit is not None.
public Entitlement withMaxCount(Long maxCount)
Maximum entitlement count. Use if the unit is not None.
maxCount - Maximum entitlement count. Use if the unit is not None.public void setOverage(Boolean overage)
Indicates whether overages are allowed.
overage - Indicates whether overages are allowed.public Boolean getOverage()
Indicates whether overages are allowed.
public Entitlement withOverage(Boolean overage)
Indicates whether overages are allowed.
overage - Indicates whether overages are allowed.public Boolean isOverage()
Indicates whether overages are allowed.
public void setUnit(String unit)
Entitlement unit.
unit - Entitlement unit.EntitlementUnitpublic String getUnit()
Entitlement unit.
EntitlementUnitpublic Entitlement withUnit(String unit)
Entitlement unit.
unit - Entitlement unit.EntitlementUnitpublic Entitlement withUnit(EntitlementUnit unit)
Entitlement unit.
unit - Entitlement unit.EntitlementUnitpublic void setAllowCheckIn(Boolean allowCheckIn)
Indicates whether check-ins are allowed.
allowCheckIn - Indicates whether check-ins are allowed.public Boolean getAllowCheckIn()
Indicates whether check-ins are allowed.
public Entitlement withAllowCheckIn(Boolean allowCheckIn)
Indicates whether check-ins are allowed.
allowCheckIn - Indicates whether check-ins are allowed.public Boolean isAllowCheckIn()
Indicates whether check-ins are allowed.
public String toString()
toString in class ObjectObject.toString()public Entitlement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.