public Snapshot withDataTiering(DataTieringStatus dataTiering) {
        this.dataTiering = dataTiering.toString();
        return this;
    }
<p>
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This
parameter must be set to true when using r6gd nodes. For more information, see <a
href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/data-tiering.html">Data tiering</a>.
</p>

@param dataTiering
       Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This
       parameter must be set to true when using r6gd nodes. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/data-tiering.html">Data tiering</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see DataTieringStatus
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/Snapshot.java