public Archive withRetentionDays(Integer retentionDays) {
        setRetentionDays(retentionDays);
        return this;
    }
<p>
The number of days to retain events in the archive before they are deleted.
</p>

@param retentionDays
       The number of days to retain events in the archive before they are deleted.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/Archive.java