public ModifyCacheClusterRequest withIpDiscovery(String ipDiscovery) {
        setIpDiscovery(ipDiscovery);
        return this;
    }
<p>
The network type you choose when modifying a cluster, either <code>ipv4</code> | <code>ipv6</code>. IPv6 is
supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all
instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.
</p>

@param ipDiscovery
       The network type you choose when modifying a cluster, either <code>ipv4</code> | <code>ipv6</code>. IPv6
       is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on
       all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see IpDiscovery
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyCacheClusterRequest.java