public VoiceConnector withRequireEncryption(Boolean requireEncryption) {
        setRequireEncryption(requireEncryption);
        return this;
    }
<p>
Enables or disables encryption for the Voice Connector.
</p>

@param requireEncryption
       Enables or disables encryption for the Voice Connector.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chimesdkvoice/src/main/java/com/amazonaws/services/chimesdkvoice/model/VoiceConnector.java