/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies batch transform jobs that SageMaker runs to validate your model package. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModelPackageValidationSpecification implements Serializable, Cloneable, StructuredPojo { /** ** The IAM roles to be used for the validation of the model package. *
*/ private String validationRole; /** *
* An array of ModelPackageValidationProfile
objects, each of which specifies a batch transform job
* that SageMaker runs to validate your model package.
*
* The IAM roles to be used for the validation of the model package. *
* * @param validationRole * The IAM roles to be used for the validation of the model package. */ public void setValidationRole(String validationRole) { this.validationRole = validationRole; } /** ** The IAM roles to be used for the validation of the model package. *
* * @return The IAM roles to be used for the validation of the model package. */ public String getValidationRole() { return this.validationRole; } /** ** The IAM roles to be used for the validation of the model package. *
* * @param validationRole * The IAM roles to be used for the validation of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackageValidationSpecification withValidationRole(String validationRole) { setValidationRole(validationRole); return this; } /** *
* An array of ModelPackageValidationProfile
objects, each of which specifies a batch transform job
* that SageMaker runs to validate your model package.
*
ModelPackageValidationProfile
objects, each of which specifies a batch transform
* job that SageMaker runs to validate your model package.
*/
public java.util.List
* An array of ModelPackageValidationProfile
objects, each of which specifies a batch transform job
* that SageMaker runs to validate your model package.
*
ModelPackageValidationProfile
objects, each of which specifies a batch transform
* job that SageMaker runs to validate your model package.
*/
public void setValidationProfiles(java.util.Collection
* An array of ModelPackageValidationProfile
objects, each of which specifies a batch transform job
* that SageMaker runs to validate your model package.
*
* NOTE: 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. *
* * @param validationProfiles * An array ofModelPackageValidationProfile
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.
*/
public ModelPackageValidationSpecification withValidationProfiles(ModelPackageValidationProfile... validationProfiles) {
if (this.validationProfiles == null) {
setValidationProfiles(new java.util.ArrayList
* An array of ModelPackageValidationProfile
objects, each of which specifies a batch transform job
* that SageMaker runs to validate your model package.
*
ModelPackageValidationProfile
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.
*/
public ModelPackageValidationSpecification withValidationProfiles(java.util.Collection