public GlobalReplicationGroup withAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled) {
        setAtRestEncryptionEnabled(atRestEncryptionEnabled);
        return this;
    }
<p>
A flag that enables encryption at rest when set to <code>true</code>.
</p>
<p>
You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created. To
enable encryption at rest on a replication group you must set <code>AtRestEncryptionEnabled</code> to
<code>true</code> when you create the replication group.
</p>
<p>
<b>Required:</b> Only available when creating a replication group in an Amazon VPC using Redis OSS version
<code>3.2.6</code>, <code>4.x</code> or later.
</p>

@param atRestEncryptionEnabled
       A flag that enables encryption at rest when set to <code>true</code>.</p>
       <p>
       You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is
       created. To enable encryption at rest on a replication group you must set
       <code>AtRestEncryptionEnabled</code> to <code>true</code> when you create the replication group.
       </p>
       <p>
       <b>Required:</b> Only available when creating a replication group in an Amazon VPC using Redis OSS version
       <code>3.2.6</code>, <code>4.x</code> or later.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/GlobalReplicationGroup.java