public EnvironmentParameterRanges withCategoricalParameterRanges(CategoricalParameter... categoricalParameterRanges) {
        if (this.categoricalParameterRanges == null) {
            setCategoricalParameterRanges(new java.util.ArrayList<CategoricalParameter>(categoricalParameterRanges.length));
        }
        for (CategoricalParameter ele : categoricalParameterRanges) {
            this.categoricalParameterRanges.add(ele);
        }
        return this;
    }
<p>
Specified a list of parameters for each category.
</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
       Specified a list of parameters for each category.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/EnvironmentParameterRanges.java