public CreateSnapshotRequest withRetentionPeriod(Integer retentionPeriod) {
        setRetentionPeriod(retentionPeriod);
        return this;
    }
<p>
How long to retain the created snapshot.
</p>

@param retentionPeriod
       How long to retain the created snapshot.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/CreateSnapshotRequest.java