@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeToLiveSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
| Constructor and Description |
|---|
TimeToLiveSpecification() |
| Modifier and Type | Method and Description |
|---|---|
TimeToLiveSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
The name of the TTL attribute used to store the expiration time for items in the table.
|
Boolean |
getEnabled()
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttributeName(String attributeName)
The name of the TTL attribute used to store the expiration time for items in the table.
|
void |
setEnabled(Boolean enabled)
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
|
String |
toString()
Returns a string representation of this object.
|
TimeToLiveSpecification |
withAttributeName(String attributeName)
The name of the TTL attribute used to store the expiration time for items in the table.
|
TimeToLiveSpecification |
withEnabled(Boolean enabled)
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
|
public void setEnabled(Boolean enabled)
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
enabled - Indicates whether TTL is to be enabled (true) or disabled (false) on the table.public Boolean getEnabled()
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
public TimeToLiveSpecification withEnabled(Boolean enabled)
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
enabled - Indicates whether TTL is to be enabled (true) or disabled (false) on the table.public Boolean isEnabled()
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
public void setAttributeName(String attributeName)
The name of the TTL attribute used to store the expiration time for items in the table.
attributeName - The name of the TTL attribute used to store the expiration time for items in the table.public String getAttributeName()
The name of the TTL attribute used to store the expiration time for items in the table.
public TimeToLiveSpecification withAttributeName(String attributeName)
The name of the TTL attribute used to store the expiration time for items in the table.
attributeName - The name of the TTL attribute used to store the expiration time for items in the table.public String toString()
toString in class ObjectObject.toString()public TimeToLiveSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.