/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateModelPackageRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the model package. *
*/ private String modelPackageArn; /** ** The approval status of the model. *
*/ private String modelApprovalStatus; /** ** A description for the approval status of the model. *
*/ private String approvalDescription; /** ** The metadata properties associated with the model package versions. *
*/ private java.util.Map* The metadata properties associated with the model package versions to remove. *
*/ private java.util.List* An array of additional Inference Specification objects to be added to the existing array additional Inference * Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference * Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally * used with SageMaker Neo to store the compiled artifacts. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the model package. *
* * @param modelPackageArn * The Amazon Resource Name (ARN) of the model package. */ public void setModelPackageArn(String modelPackageArn) { this.modelPackageArn = modelPackageArn; } /** ** The Amazon Resource Name (ARN) of the model package. *
* * @return The Amazon Resource Name (ARN) of the model package. */ public String getModelPackageArn() { return this.modelPackageArn; } /** ** The Amazon Resource Name (ARN) of the model package. *
* * @param modelPackageArn * The Amazon Resource Name (ARN) of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withModelPackageArn(String modelPackageArn) { setModelPackageArn(modelPackageArn); return this; } /** ** The approval status of the model. *
* * @param modelApprovalStatus * The approval status of the model. * @see ModelApprovalStatus */ public void setModelApprovalStatus(String modelApprovalStatus) { this.modelApprovalStatus = modelApprovalStatus; } /** ** The approval status of the model. *
* * @return The approval status of the model. * @see ModelApprovalStatus */ public String getModelApprovalStatus() { return this.modelApprovalStatus; } /** ** The approval status of the model. *
* * @param modelApprovalStatus * The approval status of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelApprovalStatus */ public UpdateModelPackageRequest withModelApprovalStatus(String modelApprovalStatus) { setModelApprovalStatus(modelApprovalStatus); return this; } /** ** The approval status of the model. *
* * @param modelApprovalStatus * The approval status of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelApprovalStatus */ public UpdateModelPackageRequest withModelApprovalStatus(ModelApprovalStatus modelApprovalStatus) { this.modelApprovalStatus = modelApprovalStatus.toString(); return this; } /** ** A description for the approval status of the model. *
* * @param approvalDescription * A description for the approval status of the model. */ public void setApprovalDescription(String approvalDescription) { this.approvalDescription = approvalDescription; } /** ** A description for the approval status of the model. *
* * @return A description for the approval status of the model. */ public String getApprovalDescription() { return this.approvalDescription; } /** ** A description for the approval status of the model. *
* * @param approvalDescription * A description for the approval status of the model. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withApprovalDescription(String approvalDescription) { setApprovalDescription(approvalDescription); return this; } /** ** The metadata properties associated with the model package versions. *
* * @return The metadata properties associated with the model package versions. */ public java.util.Map* The metadata properties associated with the model package versions. *
* * @param customerMetadataProperties * The metadata properties associated with the model package versions. */ public void setCustomerMetadataProperties(java.util.Map* The metadata properties associated with the model package versions. *
* * @param customerMetadataProperties * The metadata properties associated with the model package versions. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withCustomerMetadataProperties(java.util.Map* The metadata properties associated with the model package versions to remove. *
* * @return The metadata properties associated with the model package versions to remove. */ public java.util.List* The metadata properties associated with the model package versions to remove. *
* * @param customerMetadataPropertiesToRemove * The metadata properties associated with the model package versions to remove. */ public void setCustomerMetadataPropertiesToRemove(java.util.Collection* The metadata properties associated with the model package versions to remove. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomerMetadataPropertiesToRemove(java.util.Collection)} or * {@link #withCustomerMetadataPropertiesToRemove(java.util.Collection)} if you want to override the existing * values. *
* * @param customerMetadataPropertiesToRemove * The metadata properties associated with the model package versions to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withCustomerMetadataPropertiesToRemove(String... customerMetadataPropertiesToRemove) { if (this.customerMetadataPropertiesToRemove == null) { setCustomerMetadataPropertiesToRemove(new java.util.ArrayList* The metadata properties associated with the model package versions to remove. *
* * @param customerMetadataPropertiesToRemove * The metadata properties associated with the model package versions to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withCustomerMetadataPropertiesToRemove(java.util.Collection* An array of additional Inference Specification objects to be added to the existing array additional Inference * Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference * Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally * used with SageMaker Neo to store the compiled artifacts. *
* * @return An array of additional Inference Specification objects to be added to the existing array additional * Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each * additional Inference Specification specifies artifacts based on this model package that can be used on * inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts. */ public java.util.List* An array of additional Inference Specification objects to be added to the existing array additional Inference * Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference * Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally * used with SageMaker Neo to store the compiled artifacts. *
* * @param additionalInferenceSpecificationsToAdd * An array of additional Inference Specification objects to be added to the existing array additional * Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each * additional Inference Specification specifies artifacts based on this model package that can be used on * inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts. */ public void setAdditionalInferenceSpecificationsToAdd( java.util.Collection* An array of additional Inference Specification objects to be added to the existing array additional Inference * Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference * Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally * used with SageMaker Neo to store the compiled artifacts. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdditionalInferenceSpecificationsToAdd(java.util.Collection)} or * {@link #withAdditionalInferenceSpecificationsToAdd(java.util.Collection)} if you want to override the existing * values. *
* * @param additionalInferenceSpecificationsToAdd * An array of additional Inference Specification objects to be added to the existing array additional * Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each * additional Inference Specification specifies artifacts based on this model package that can be used on * inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withAdditionalInferenceSpecificationsToAdd( AdditionalInferenceSpecificationDefinition... additionalInferenceSpecificationsToAdd) { if (this.additionalInferenceSpecificationsToAdd == null) { setAdditionalInferenceSpecificationsToAdd(new java.util.ArrayList* An array of additional Inference Specification objects to be added to the existing array additional Inference * Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference * Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally * used with SageMaker Neo to store the compiled artifacts. *
* * @param additionalInferenceSpecificationsToAdd * An array of additional Inference Specification objects to be added to the existing array additional * Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each * additional Inference Specification specifies artifacts based on this model package that can be used on * inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateModelPackageRequest withAdditionalInferenceSpecificationsToAdd( java.util.Collection