public ResetCacheParameterGroupRequest withParameterNameValues(ParameterNameValue... parameterNameValues) {
        if (this.parameterNameValues == null) {
            setParameterNameValues(new com.amazonaws.internal.SdkInternalList<ParameterNameValue>(parameterNameValues.length));
        }
        for (ParameterNameValue ele : parameterNameValues) {
            this.parameterNameValues.add(ele);
        }
        return this;
    }
<p>
An array of parameter names to reset to their default values. If <code>ResetAllParameters</code> is
<code>true</code>, do not use <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
<code>false</code>, you must specify the name of at least one parameter to reset.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setParameterNameValues(java.util.Collection)} or {@link #withParameterNameValues(java.util.Collection)}
if you want to override the existing values.
</p>

@param parameterNameValues
       An array of parameter names to reset to their default values. If <code>ResetAllParameters</code> is
       <code>true</code>, do not use <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
       <code>false</code>, you must specify the name of at least one parameter to reset.
@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/ResetCacheParameterGroupRequest.java