public ModelPackageValidationSpecification withValidationProfiles(ModelPackageValidationProfile... validationProfiles) {
        if (this.validationProfiles == null) {
            setValidationProfiles(new java.util.ArrayList<ModelPackageValidationProfile>(validationProfiles.length));
        }
        for (ModelPackageValidationProfile ele : validationProfiles) {
            this.validationProfiles.add(ele);
        }
        return this;
    }
<p>
An array of <code>ModelPackageValidationProfile</code> objects, each of which specifies a batch transform job
that SageMaker runs to validate your model package.
</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>ModelPackageValidationProfile</code> objects, each of which specifies a batch transform
       job that SageMaker runs to validate your model package.
@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/ModelPackageValidationSpecification.java