code: public TrainingSpecification withSupportedTrainingInstanceTypes(String... supportedTrainingInstanceTypes) {
          if (this.supportedTrainingInstanceTypes == null) {
              setSupportedTrainingInstanceTypes(new java.util.ArrayList<String>(supportedTrainingInstanceTypes.length));
          }
          for (String ele : supportedTrainingInstanceTypes) {
              this.supportedTrainingInstanceTypes.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the instance types that this algorithm can use for training.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSupportedTrainingInstanceTypes(java.util.Collection)} or
  {@link #withSupportedTrainingInstanceTypes(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param supportedTrainingInstanceTypes
  A list of the instance types that this algorithm can use for training.
  @return Returns a reference to this object so that method calls can be chained together.
  @see TrainingInstanceType