public LoadBalancer withIpAddressType(IpAddressType ipAddressType) {
        this.ipAddressType = ipAddressType.toString();
        return this;
    }
<p>
The IP address type of the load balancer.
</p>
<p>
The possible values are <code>ipv4</code> for IPv4 only, <code>ipv6</code> for IPv6 only, and
<code>dualstack</code> for IPv4 and IPv6.
</p>

@param ipAddressType
       The IP address type of the load balancer.</p>
       <p>
       The possible values are <code>ipv4</code> for IPv4 only, <code>ipv6</code> for IPv6 only, and
       <code>dualstack</code> for IPv4 and IPv6.
@return Returns a reference to this object so that method calls can be chained together.
@see IpAddressType
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/LoadBalancer.java