public DomainConfig withIPAddressType(IPAddressTypeStatus iPAddressType) {
        setIPAddressType(iPAddressType);
        return this;
    }
<p>
Choose either dual stack or IPv4 as your IP address type. Dual stack allows you to share domain resources across
IPv4 and IPv6 address types, and is the recommended option. If you set your IP address type to dual stack, you
can't change your address type later.
</p>

@param iPAddressType
       Choose either dual stack or IPv4 as your IP address type. Dual stack allows you to share domain resources
       across IPv4 and IPv6 address types, and is the recommended option. If you set your IP address type to dual
       stack, you can't change your address type later.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/DomainConfig.java