@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WarmTierRetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
Set this period to specify how long your data is stored in the warm tier before it is deleted. You can set this only if cold tier is enabled.
Constructor and Description |
---|
WarmTierRetentionPeriod() |
Modifier and Type | Method and Description |
---|---|
WarmTierRetentionPeriod |
clone() |
boolean |
equals(Object obj) |
Integer |
getNumberOfDays()
The number of days the data is stored in the warm tier.
|
Boolean |
getUnlimited()
If set to true, the data is stored indefinitely in the warm tier.
|
int |
hashCode() |
Boolean |
isUnlimited()
If set to true, the data is stored indefinitely in the warm tier.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNumberOfDays(Integer numberOfDays)
The number of days the data is stored in the warm tier.
|
void |
setUnlimited(Boolean unlimited)
If set to true, the data is stored indefinitely in the warm tier.
|
String |
toString()
Returns a string representation of this object.
|
WarmTierRetentionPeriod |
withNumberOfDays(Integer numberOfDays)
The number of days the data is stored in the warm tier.
|
WarmTierRetentionPeriod |
withUnlimited(Boolean unlimited)
If set to true, the data is stored indefinitely in the warm tier.
|
public void setNumberOfDays(Integer numberOfDays)
The number of days the data is stored in the warm tier.
numberOfDays
- The number of days the data is stored in the warm tier.public Integer getNumberOfDays()
The number of days the data is stored in the warm tier.
public WarmTierRetentionPeriod withNumberOfDays(Integer numberOfDays)
The number of days the data is stored in the warm tier.
numberOfDays
- The number of days the data is stored in the warm tier.public void setUnlimited(Boolean unlimited)
If set to true, the data is stored indefinitely in the warm tier.
unlimited
- If set to true, the data is stored indefinitely in the warm tier.public Boolean getUnlimited()
If set to true, the data is stored indefinitely in the warm tier.
public WarmTierRetentionPeriod withUnlimited(Boolean unlimited)
If set to true, the data is stored indefinitely in the warm tier.
unlimited
- If set to true, the data is stored indefinitely in the warm tier.public Boolean isUnlimited()
If set to true, the data is stored indefinitely in the warm tier.
public String toString()
toString
in class Object
Object.toString()
public WarmTierRetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.