All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.ModelPackageValidationSpecification Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service

The newest version!
/*
 * Copyright 2019-2024 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. *

*/ private java.util.List validationProfiles; /** *

* 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. *

* * @return An array of ModelPackageValidationProfile objects, each of which specifies a batch transform * job that SageMaker runs to validate your model package. */ public java.util.List getValidationProfiles() { return validationProfiles; } /** *

* An array of ModelPackageValidationProfile objects, each of which specifies a batch transform job * that SageMaker runs to validate your model package. *

* * @param validationProfiles * An array of ModelPackageValidationProfile objects, each of which specifies a batch transform * job that SageMaker runs to validate your model package. */ public void setValidationProfiles(java.util.Collection validationProfiles) { if (validationProfiles == null) { this.validationProfiles = null; return; } this.validationProfiles = new java.util.ArrayList(validationProfiles); } /** *

* 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 of 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(ModelPackageValidationProfile... validationProfiles) { if (this.validationProfiles == null) { setValidationProfiles(new java.util.ArrayList(validationProfiles.length)); } for (ModelPackageValidationProfile ele : validationProfiles) { this.validationProfiles.add(ele); } return this; } /** *

* An array of ModelPackageValidationProfile objects, each of which specifies a batch transform job * that SageMaker runs to validate your model package. *

* * @param validationProfiles * An array of 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 validationProfiles) { setValidationProfiles(validationProfiles); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getValidationRole() != null) sb.append("ValidationRole: ").append(getValidationRole()).append(","); if (getValidationProfiles() != null) sb.append("ValidationProfiles: ").append(getValidationProfiles()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModelPackageValidationSpecification == false) return false; ModelPackageValidationSpecification other = (ModelPackageValidationSpecification) obj; if (other.getValidationRole() == null ^ this.getValidationRole() == null) return false; if (other.getValidationRole() != null && other.getValidationRole().equals(this.getValidationRole()) == false) return false; if (other.getValidationProfiles() == null ^ this.getValidationProfiles() == null) return false; if (other.getValidationProfiles() != null && other.getValidationProfiles().equals(this.getValidationProfiles()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getValidationRole() == null) ? 0 : getValidationRole().hashCode()); hashCode = prime * hashCode + ((getValidationProfiles() == null) ? 0 : getValidationProfiles().hashCode()); return hashCode; } @Override public ModelPackageValidationSpecification clone() { try { return (ModelPackageValidationSpecification) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.ModelPackageValidationSpecificationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy