public ModifyCacheClusterRequest withApplyImmediately(Boolean applyImmediately) {
        setApplyImmediately(applyImmediately);
        return this;
    }
<p>
If <code>true</code>, this parameter causes the modifications in this request and any pending modifications to be
applied, asynchronously and as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code>
setting for the cluster.
</p>
<p>
If <code>false</code>, changes to the cluster are applied on the next maintenance reboot, or the next failure
reboot, whichever occurs first.
</p>
<important>
<p>
If you perform a <code>ModifyCacheCluster</code> before a pending modification is applied, the pending
modification is replaced by the newer modification.
</p>
</important>
<p>
Valid values: <code>true</code> | <code>false</code>
</p>
<p>
Default: <code>false</code>
</p>

@param applyImmediately
       If <code>true</code>, this parameter causes the modifications in this request and any pending
       modifications to be applied, asynchronously and as soon as possible, regardless of the
       <code>PreferredMaintenanceWindow</code> setting for the cluster.</p>
       <p>
       If <code>false</code>, changes to the cluster are applied on the next maintenance reboot, or the next
       failure reboot, whichever occurs first.
       </p>
       <important>
       <p>
       If you perform a <code>ModifyCacheCluster</code> before a pending modification is applied, the pending
       modification is replaced by the newer modification.
       </p>
       </important>
       <p>
       Valid values: <code>true</code> | <code>false</code>
       </p>
       <p>
       Default: <code>false</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyCacheClusterRequest.java