public Snapshot withEncrypted(Boolean encrypted) {
        setEncrypted(encrypted);
        return this;
    }
<p>
If <code>true</code>, the data in the snapshot is encrypted at rest.
</p>

@param encrypted
       If <code>true</code>, the data in the snapshot is encrypted at rest.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/Snapshot.java