public Cluster withEncrypted(Boolean encrypted) {
        setEncrypted(encrypted);
        return this;
    }
<p>
A boolean value that, if <code>true</code>, indicates that data in the cluster is encrypted at rest.
</p>

@param encrypted
       A boolean value that, if <code>true</code>, indicates that data in the cluster 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/Cluster.java