public DnsOptions withPrivateDnsOnlyForInboundResolverEndpoint(Boolean privateDnsOnlyForInboundResolverEndpoint) {
        setPrivateDnsOnlyForInboundResolverEndpoint(privateDnsOnlyForInboundResolverEndpoint);
        return this;
    }
<p>
Indicates whether to enable private DNS only for inbound endpoints.
</p>

@param privateDnsOnlyForInboundResolverEndpoint
       Indicates whether to enable private DNS only for inbound endpoints.
@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/DnsOptions.java