code: public AlgorithmValidationSpecification withValidationProfiles(AlgorithmValidationProfile... validationProfiles) {
          if (this.validationProfiles == null) {
              setValidationProfiles(new java.util.ArrayList<AlgorithmValidationProfile>(validationProfiles.length));
          }
          for (AlgorithmValidationProfile ele : validationProfiles) {
              this.validationProfiles.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>AlgorithmValidationProfile</code> objects, each of which specifies a training job and batch
  transform job that Amazon SageMaker runs to validate your algorithm.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setValidationProfiles(java.util.Collection)} or {@link #withValidationProfiles(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param validationProfiles
  An array of <code>AlgorithmValidationProfile</code> objects, each of which specifies a training job and
  batch transform job that Amazon SageMaker runs to validate your algorithm.
  @return Returns a reference to this object so that method calls can be chained together.