public void setPrivateDnsEnabled(Boolean privateDnsEnabled) {
        this.privateDnsEnabled = privateDnsEnabled;
    }
<p>
(Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private
hosted zone contains a record set for the default public DNS name for the service for the Region (for example,
<code>kinesis.us-east-1.amazonaws.com</code>), which resolves to the private IP addresses of the endpoint network
interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead
of the public DNS names that are automatically generated by the VPC endpoint service.
</p>
<p>
To use a private hosted zone, you must set the following VPC attributes to <code>true</code>:
<code>enableDnsHostnames</code> and <code>enableDnsSupport</code>. Use <a>ModifyVpcAttribute</a> to set the VPC
attributes.
</p>
<p>
Default: <code>true</code>
</p>

@param privateDnsEnabled
       (Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The
       private hosted zone contains a record set for the default public DNS name for the service for the Region
       (for example, <code>kinesis.us-east-1.amazonaws.com</code>), which resolves to the private IP addresses of
       the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS
       name for the service instead of the public DNS names that are automatically generated by the VPC endpoint
       service.</p>
       <p>
       To use a private hosted zone, you must set the following VPC attributes to <code>true</code>:
       <code>enableDnsHostnames</code> and <code>enableDnsSupport</code>. Use <a>ModifyVpcAttribute</a> to set
       the VPC attributes.
       </p>
       <p>
       Default: <code>true</code>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVpcEndpointRequest.java