public LightsailDistribution withIpAddressType(String ipAddressType) {
        setIpAddressType(ipAddressType);
        return this;
    }
<p>
The IP address type of the distribution.
</p>
<p>
The possible values are <code>ipv4</code> for IPv4 only, and <code>dualstack</code> for IPv4 and IPv6.
</p>

@param ipAddressType
       The IP address type of the distribution.</p>
       <p>
       The possible values are <code>ipv4</code> for IPv4 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/LightsailDistribution.java