public ParameterRanges withCategoricalParameterRanges(CategoricalParameterRange... categoricalParameterRanges) {
        if (this.categoricalParameterRanges == null) {
            setCategoricalParameterRanges(new java.util.ArrayList<CategoricalParameterRange>(categoricalParameterRanges.length));
        }
        for (CategoricalParameterRange ele : categoricalParameterRanges) {
            this.categoricalParameterRanges.add(ele);
        }
        return this;
    }
<p>
Specifies the tunable range for each categorical hyperparameter.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCategoricalParameterRanges(java.util.Collection)} or
{@link #withCategoricalParameterRanges(java.util.Collection)} if you want to override the existing values.
</p>

@param categoricalParameterRanges
       Specifies the tunable range for each categorical hyperparameter.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-forecast/src/main/java/com/amazonaws/services/forecast/model/ParameterRanges.java