public ModifyPrivateDnsNameOptionsRequest withPrivateDnsHostnameType(String privateDnsHostnameType) {
        setPrivateDnsHostnameType(privateDnsHostnameType);
        return this;
    }
<p>
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance
IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack
subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
</p>

@param privateDnsHostnameType
       The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the
       instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For
       dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
@return Returns a reference to this object so that method calls can be chained together.
@see HostnameType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyPrivateDnsNameOptionsRequest.java