code: 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;
      }
docs: <p>
  The array of <a>CategoricalParameterRange</a> objects that specify ranges of categorical hyperparameters that a
  hyperparameter tuning job searches.
  </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
  The array of <a>CategoricalParameterRange</a> objects that specify ranges of categorical hyperparameters
  that a hyperparameter tuning job searches.
  @return Returns a reference to this object so that method calls can be chained together.