@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
How long, in days, message data is kept.
Constructor and Description |
---|
RetentionPeriod() |
Modifier and Type | Method and Description |
---|---|
RetentionPeriod |
clone() |
boolean |
equals(Object obj) |
Integer |
getNumberOfDays()
The number of days that message data is kept.
|
Boolean |
getUnlimited()
If true, message data is kept indefinitely.
|
int |
hashCode() |
Boolean |
isUnlimited()
If true, message 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 message data is kept.
|
void |
setUnlimited(Boolean unlimited)
If true, message data is kept indefinitely.
|
String |
toString()
Returns a string representation of this object.
|
RetentionPeriod |
withNumberOfDays(Integer numberOfDays)
The number of days that message data is kept.
|
RetentionPeriod |
withUnlimited(Boolean unlimited)
If true, message data is kept indefinitely.
|
public void setUnlimited(Boolean unlimited)
If true, message data is kept indefinitely.
unlimited
- If true, message data is kept indefinitely.public Boolean getUnlimited()
If true, message data is kept indefinitely.
public RetentionPeriod withUnlimited(Boolean unlimited)
If true, message data is kept indefinitely.
unlimited
- If true, message data is kept indefinitely.public Boolean isUnlimited()
If true, message data is kept indefinitely.
public void setNumberOfDays(Integer numberOfDays)
The number of days that message data is kept. The "unlimited" parameter must be false.
numberOfDays
- The number of days that message data is kept. The "unlimited" parameter must be false.public Integer getNumberOfDays()
The number of days that message data is kept. The "unlimited" parameter must be false.
public RetentionPeriod withNumberOfDays(Integer numberOfDays)
The number of days that message data is kept. The "unlimited" parameter must be false.
numberOfDays
- The number of days that message data is kept. The "unlimited" parameter must be false.public String toString()
toString
in class Object
Object.toString()
public RetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.