public HyperParameterRanges withCategoricalHyperParameterRanges(CategoricalHyperParameterRange... categoricalHyperParameterRanges) {
        if (this.categoricalHyperParameterRanges == null) {
            setCategoricalHyperParameterRanges(new java.util.ArrayList<CategoricalHyperParameterRange>(categoricalHyperParameterRanges.length));
        }
        for (CategoricalHyperParameterRange ele : categoricalHyperParameterRanges) {
            this.categoricalHyperParameterRanges.add(ele);
        }
        return this;
    }
<p>
The categorical hyperparameters and their ranges.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCategoricalHyperParameterRanges(java.util.Collection)} or
{@link #withCategoricalHyperParameterRanges(java.util.Collection)} if you want to override the existing values.
</p>

@param categoricalHyperParameterRanges
       The categorical hyperparameters and their ranges.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/HyperParameterRanges.java