public ModifyVpcEndpointServiceConfigurationRequest withRemovePrivateDnsName(Boolean removePrivateDnsName) {
        setRemovePrivateDnsName(removePrivateDnsName);
        return this;
    }
<p>
(Interface endpoint configuration) Removes the private DNS name of the endpoint service.
</p>

@param removePrivateDnsName
       (Interface endpoint configuration) Removes the private DNS name of the endpoint service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyVpcEndpointServiceConfigurationRequest.java