/* * 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; /** *
* A structure of additional Inference Specification. Additional Inference Specification specifies details about * inference jobs that can be run with models based on this model package *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AdditionalInferenceSpecificationDefinition implements Serializable, Cloneable, StructuredPojo { /** ** A unique name to identify the additional inference specification. The name must be unique within the list of your * additional inference specifications for a particular model package. *
*/ private String name; /** ** A description of the additional Inference specification *
*/ private String description; /** ** The Amazon ECR registry path of the Docker image that contains the inference code. *
*/ private java.util.List* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
*/ private java.util.List* A list of the instance types that are used to generate inferences in real-time. *
*/ private java.util.List* The supported MIME types for the input data. *
*/ private java.util.List* The supported MIME types for the output data. *
*/ private java.util.List* A unique name to identify the additional inference specification. The name must be unique within the list of your * additional inference specifications for a particular model package. *
* * @param name * A unique name to identify the additional inference specification. The name must be unique within the list * of your additional inference specifications for a particular model package. */ public void setName(String name) { this.name = name; } /** ** A unique name to identify the additional inference specification. The name must be unique within the list of your * additional inference specifications for a particular model package. *
* * @return A unique name to identify the additional inference specification. The name must be unique within the list * of your additional inference specifications for a particular model package. */ public String getName() { return this.name; } /** ** A unique name to identify the additional inference specification. The name must be unique within the list of your * additional inference specifications for a particular model package. *
* * @param name * A unique name to identify the additional inference specification. The name must be unique within the list * of your additional inference specifications for a particular model package. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withName(String name) { setName(name); return this; } /** ** A description of the additional Inference specification *
* * @param description * A description of the additional Inference specification */ public void setDescription(String description) { this.description = description; } /** ** A description of the additional Inference specification *
* * @return A description of the additional Inference specification */ public String getDescription() { return this.description; } /** ** A description of the additional Inference specification *
* * @param description * A description of the additional Inference specification * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withDescription(String description) { setDescription(description); return this; } /** ** The Amazon ECR registry path of the Docker image that contains the inference code. *
* * @return The Amazon ECR registry path of the Docker image that contains the inference code. */ public java.util.List* The Amazon ECR registry path of the Docker image that contains the inference code. *
* * @param containers * The Amazon ECR registry path of the Docker image that contains the inference code. */ public void setContainers(java.util.Collection* The Amazon ECR registry path of the Docker image that contains the inference code. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContainers(java.util.Collection)} or {@link #withContainers(java.util.Collection)} if you want to * override the existing values. *
* * @param containers * The Amazon ECR registry path of the Docker image that contains the inference code. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withContainers(ModelPackageContainerDefinition... containers) { if (this.containers == null) { setContainers(new java.util.ArrayList* The Amazon ECR registry path of the Docker image that contains the inference code. *
* * @param containers * The Amazon ECR registry path of the Docker image that contains the inference code. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withContainers(java.util.Collection* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
* * @return A list of the instance types on which a transformation job can be run or on which an endpoint can be * deployed. * @see TransformInstanceType */ public java.util.List* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
* * @param supportedTransformInstanceTypes * A list of the instance types on which a transformation job can be run or on which an endpoint can be * deployed. * @see TransformInstanceType */ public void setSupportedTransformInstanceTypes(java.util.Collection* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedTransformInstanceTypes(java.util.Collection)} or * {@link #withSupportedTransformInstanceTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedTransformInstanceTypes * A list of the instance types on which a transformation job can be run or on which an endpoint can be * deployed. * @return Returns a reference to this object so that method calls can be chained together. * @see TransformInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedTransformInstanceTypes(String... supportedTransformInstanceTypes) { if (this.supportedTransformInstanceTypes == null) { setSupportedTransformInstanceTypes(new java.util.ArrayList* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
* * @param supportedTransformInstanceTypes * A list of the instance types on which a transformation job can be run or on which an endpoint can be * deployed. * @return Returns a reference to this object so that method calls can be chained together. * @see TransformInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedTransformInstanceTypes(java.util.Collection* A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. *
* * @param supportedTransformInstanceTypes * A list of the instance types on which a transformation job can be run or on which an endpoint can be * deployed. * @return Returns a reference to this object so that method calls can be chained together. * @see TransformInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedTransformInstanceTypes(TransformInstanceType... supportedTransformInstanceTypes) { java.util.ArrayList* A list of the instance types that are used to generate inferences in real-time. *
* * @return A list of the instance types that are used to generate inferences in real-time. * @see ProductionVariantInstanceType */ public java.util.List* A list of the instance types that are used to generate inferences in real-time. *
* * @param supportedRealtimeInferenceInstanceTypes * A list of the instance types that are used to generate inferences in real-time. * @see ProductionVariantInstanceType */ public void setSupportedRealtimeInferenceInstanceTypes(java.util.Collection* A list of the instance types that are used to generate inferences in real-time. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedRealtimeInferenceInstanceTypes(java.util.Collection)} or * {@link #withSupportedRealtimeInferenceInstanceTypes(java.util.Collection)} if you want to override the existing * values. *
* * @param supportedRealtimeInferenceInstanceTypes * A list of the instance types that are used to generate inferences in real-time. * @return Returns a reference to this object so that method calls can be chained together. * @see ProductionVariantInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedRealtimeInferenceInstanceTypes(String... supportedRealtimeInferenceInstanceTypes) { if (this.supportedRealtimeInferenceInstanceTypes == null) { setSupportedRealtimeInferenceInstanceTypes(new java.util.ArrayList* A list of the instance types that are used to generate inferences in real-time. *
* * @param supportedRealtimeInferenceInstanceTypes * A list of the instance types that are used to generate inferences in real-time. * @return Returns a reference to this object so that method calls can be chained together. * @see ProductionVariantInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedRealtimeInferenceInstanceTypes( java.util.Collection* A list of the instance types that are used to generate inferences in real-time. *
* * @param supportedRealtimeInferenceInstanceTypes * A list of the instance types that are used to generate inferences in real-time. * @return Returns a reference to this object so that method calls can be chained together. * @see ProductionVariantInstanceType */ public AdditionalInferenceSpecificationDefinition withSupportedRealtimeInferenceInstanceTypes( ProductionVariantInstanceType... supportedRealtimeInferenceInstanceTypes) { java.util.ArrayList* The supported MIME types for the input data. *
* * @return The supported MIME types for the input data. */ public java.util.List* The supported MIME types for the input data. *
* * @param supportedContentTypes * The supported MIME types for the input data. */ public void setSupportedContentTypes(java.util.Collection* The supported MIME types for the input data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedContentTypes(java.util.Collection)} or * {@link #withSupportedContentTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedContentTypes * The supported MIME types for the input data. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withSupportedContentTypes(String... supportedContentTypes) { if (this.supportedContentTypes == null) { setSupportedContentTypes(new java.util.ArrayList* The supported MIME types for the input data. *
* * @param supportedContentTypes * The supported MIME types for the input data. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withSupportedContentTypes(java.util.Collection* The supported MIME types for the output data. *
* * @return The supported MIME types for the output data. */ public java.util.List* The supported MIME types for the output data. *
* * @param supportedResponseMIMETypes * The supported MIME types for the output data. */ public void setSupportedResponseMIMETypes(java.util.Collection* The supported MIME types for the output data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedResponseMIMETypes(java.util.Collection)} or * {@link #withSupportedResponseMIMETypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedResponseMIMETypes * The supported MIME types for the output data. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withSupportedResponseMIMETypes(String... supportedResponseMIMETypes) { if (this.supportedResponseMIMETypes == null) { setSupportedResponseMIMETypes(new java.util.ArrayList* The supported MIME types for the output data. *
* * @param supportedResponseMIMETypes * The supported MIME types for the output data. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalInferenceSpecificationDefinition withSupportedResponseMIMETypes(java.util.Collection