public ChannelRetentionSettings withRetentionDays(Integer retentionDays) {
        setRetentionDays(retentionDays);
        return this;
    }
<p>
The time in days to retain the messages in a channel.
</p>

@param retentionDays
       The time in days to retain the messages in a channel.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/ChannelRetentionSettings.java