public ModifyCacheClusterRequest withAZMode(String aZMode) {
        setAZMode(aZMode);
        return this;
    }
<p>
Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or
created across multiple Availability Zones.
</p>
<p>
Valid values: <code>single-az</code> | <code>cross-az</code>.
</p>
<p>
This option is only supported for Memcached clusters.
</p>
<note>
<p>
You cannot specify <code>single-az</code> if the Memcached cluster already has cache nodes in different
Availability Zones. If <code>cross-az</code> is specified, existing Memcached nodes remain in their current
Availability Zone.
</p>
<p>
Only newly created nodes are located in different Availability Zones.
</p>
</note>

@param aZMode
       Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or
       created across multiple Availability Zones.</p>
       <p>
       Valid values: <code>single-az</code> | <code>cross-az</code>.
       </p>
       <p>
       This option is only supported for Memcached clusters.
       </p>
       <note>
       <p>
       You cannot specify <code>single-az</code> if the Memcached cluster already has cache nodes in different
       Availability Zones. If <code>cross-az</code> is specified, existing Memcached nodes remain in their
       current Availability Zone.
       </p>
       <p>
       Only newly created nodes are located in different Availability Zones.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see AZMode
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyCacheClusterRequest.java