@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
The number of days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier.
| Constructor and Description |
|---|
RetentionPeriod() |
| Modifier and Type | Method and Description |
|---|---|
RetentionPeriod |
clone() |
boolean |
equals(Object obj) |
Integer |
getNumberOfDays()
The number of days that your data is kept.
|
Boolean |
getUnlimited()
If true, your data is kept indefinitely.
|
int |
hashCode() |
Boolean |
isUnlimited()
If true, your data is kept indefinitely.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setNumberOfDays(Integer numberOfDays)
The number of days that your data is kept.
|
void |
setUnlimited(Boolean unlimited)
If true, your data is kept indefinitely.
|
String |
toString()
Returns a string representation of this object.
|
RetentionPeriod |
withNumberOfDays(Integer numberOfDays)
The number of days that your data is kept.
|
RetentionPeriod |
withUnlimited(Boolean unlimited)
If true, your data is kept indefinitely.
|
public void setNumberOfDays(Integer numberOfDays)
The number of days that your data is kept.
If you specified a value for this parameter, the unlimited parameter must be false.
numberOfDays - The number of days that your data is kept.
If you specified a value for this parameter, the unlimited parameter must be
false.
public Integer getNumberOfDays()
The number of days that your data is kept.
If you specified a value for this parameter, the unlimited parameter must be false.
If you specified a value for this parameter, the unlimited parameter must be
false.
public RetentionPeriod withNumberOfDays(Integer numberOfDays)
The number of days that your data is kept.
If you specified a value for this parameter, the unlimited parameter must be false.
numberOfDays - The number of days that your data is kept.
If you specified a value for this parameter, the unlimited parameter must be
false.
public void setUnlimited(Boolean unlimited)
If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays parameter.
unlimited - If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays
parameter.
public Boolean getUnlimited()
If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays parameter.
If configured to true, you must not specify a value for the numberOfDays
parameter.
public RetentionPeriod withUnlimited(Boolean unlimited)
If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays parameter.
unlimited - If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays
parameter.
public Boolean isUnlimited()
If true, your data is kept indefinitely.
If configured to true, you must not specify a value for the numberOfDays parameter.
If configured to true, you must not specify a value for the numberOfDays
parameter.
public String toString()
toString in class ObjectObject.toString()public RetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.