public void setTransitEncryptionEnabled(Boolean transitEncryptionEnabled) {
        this.transitEncryptionEnabled = transitEncryptionEnabled;
    }
<p>
A flag that enables in-transit encryption when set to true.
</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 transitEncryptionEnabled
       A flag that enables in-transit encryption when set to true.</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.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/GlobalReplicationGroup.java