@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChannelRetentionSettings extends Object implements Serializable, Cloneable, StructuredPojo
The details of the retention settings for a channel.
Constructor and Description |
---|
ChannelRetentionSettings() |
Modifier and Type | Method and Description |
---|---|
ChannelRetentionSettings |
clone() |
boolean |
equals(Object obj) |
Integer |
getRetentionDays()
The time in days to retain the messages in a channel.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRetentionDays(Integer retentionDays)
The time in days to retain the messages in a channel.
|
String |
toString()
Returns a string representation of this object.
|
ChannelRetentionSettings |
withRetentionDays(Integer retentionDays)
The time in days to retain the messages in a channel.
|
public void setRetentionDays(Integer retentionDays)
The time in days to retain the messages in a channel.
retentionDays
- The time in days to retain the messages in a channel.public Integer getRetentionDays()
The time in days to retain the messages in a channel.
public ChannelRetentionSettings withRetentionDays(Integer retentionDays)
The time in days to retain the messages in a channel.
retentionDays
- The time in days to retain the messages in a channel.public String toString()
toString
in class Object
Object.toString()
public ChannelRetentionSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.