public EncryptionInfo withEncryptionInTransit(EncryptionInTransit encryptionInTransit) {
        setEncryptionInTransit(encryptionInTransit);
        return this;
    }
<p>
The details for encryption in transit.
</p>

@param encryptionInTransit
       <p>
       The details for encryption in transit.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/EncryptionInfo.java