public Snapshot withEncryptedWithHSM(Boolean encryptedWithHSM) {
        setEncryptedWithHSM(encryptedWithHSM);
        return this;
    }
<p>
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.
<code>true</code> indicates that the data is encrypted using HSM keys.
</p>

@param encryptedWithHSM
       A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.
       <code>true</code> indicates that the data is encrypted using HSM keys.
@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