/* * 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 CreateModelPackageRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - * (hyphen). *
** This parameter is required for unversioned models. It is not applicable to versioned models. *
*/ private String modelPackageName; /** ** The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. *
** This parameter is required for versioned models, and does not apply to unversioned models. *
*/ private String modelPackageGroupName; /** ** A description of the model package. *
*/ private String modelPackageDescription; /** ** Specifies details about inference jobs that can be run with models based on this model package, including the * following: *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for inference. *
** The input and output content formats that the model package supports for inference. *
** Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. *
*/ private ModelPackageValidationSpecification validationSpecification; /** ** Details about the algorithm that was used to create the model package. *
*/ private SourceAlgorithmSpecification sourceAlgorithmSpecification; /** ** Whether to certify the model package for listing on Amazon Web Services Marketplace. *
** This parameter is optional for unversioned models, and does not apply to versioned models. *
*/ private Boolean certifyForMarketplace; /** ** A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
*/ private java.util.List* Whether the model is approved for deployment. *
** This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the model.
*
* A structure that contains model metrics reports. *
*/ private ModelMetrics modelMetrics; /** ** A unique token that guarantees that the call to this API is idempotent. *
*/ private String clientToken; /** ** The metadata properties associated with the model package versions. *
*/ private java.util.Map* Represents the drift check baselines that can be used when the model monitor is set using the model package. For * more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer * Guide. *
*/ private DriftCheckBaselines driftCheckBaselines; /** ** The machine learning domain of your model package and its components. Common machine learning domains include * computer vision and natural language processing. *
*/ private String domain; /** *
* The machine learning task your model package accomplishes. Common machine learning tasks include object detection
* and image classification. The following tasks are supported by Inference Recommender:
* "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
*
* Specify "OTHER" if none of the tasks listed fit your use case. *
*/ private String task; /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that are all equally * used in the load test. Each file in the archive must satisfy the size constraints of the InvokeEndpoint call. *
*/ private String samplePayloadUrl; /** ** An array of additional Inference Specification objects. 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 name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - * (hyphen). *
** This parameter is required for unversioned models. It is not applicable to versioned models. *
* * @param modelPackageName * The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, * and - (hyphen). ** This parameter is required for unversioned models. It is not applicable to versioned models. */ public void setModelPackageName(String modelPackageName) { this.modelPackageName = modelPackageName; } /** *
* The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - * (hyphen). *
** This parameter is required for unversioned models. It is not applicable to versioned models. *
* * @return The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, * and - (hyphen). ** This parameter is required for unversioned models. It is not applicable to versioned models. */ public String getModelPackageName() { return this.modelPackageName; } /** *
* The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - * (hyphen). *
** This parameter is required for unversioned models. It is not applicable to versioned models. *
* * @param modelPackageName * The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, * and - (hyphen). ** This parameter is required for unversioned models. It is not applicable to versioned models. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withModelPackageName(String modelPackageName) { setModelPackageName(modelPackageName); return this; } /** *
* The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. *
** This parameter is required for versioned models, and does not apply to unversioned models. *
* * @param modelPackageGroupName * The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. ** This parameter is required for versioned models, and does not apply to unversioned models. */ public void setModelPackageGroupName(String modelPackageGroupName) { this.modelPackageGroupName = modelPackageGroupName; } /** *
* The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. *
** This parameter is required for versioned models, and does not apply to unversioned models. *
* * @return The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. ** This parameter is required for versioned models, and does not apply to unversioned models. */ public String getModelPackageGroupName() { return this.modelPackageGroupName; } /** *
* The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. *
** This parameter is required for versioned models, and does not apply to unversioned models. *
* * @param modelPackageGroupName * The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to. ** This parameter is required for versioned models, and does not apply to unversioned models. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withModelPackageGroupName(String modelPackageGroupName) { setModelPackageGroupName(modelPackageGroupName); return this; } /** *
* A description of the model package. *
* * @param modelPackageDescription * A description of the model package. */ public void setModelPackageDescription(String modelPackageDescription) { this.modelPackageDescription = modelPackageDescription; } /** ** A description of the model package. *
* * @return A description of the model package. */ public String getModelPackageDescription() { return this.modelPackageDescription; } /** ** A description of the model package. *
* * @param modelPackageDescription * A description of the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withModelPackageDescription(String modelPackageDescription) { setModelPackageDescription(modelPackageDescription); return this; } /** ** Specifies details about inference jobs that can be run with models based on this model package, including the * following: *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for inference. *
** The input and output content formats that the model package supports for inference. *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for * inference. *
** The input and output content formats that the model package supports for inference. *
** Specifies details about inference jobs that can be run with models based on this model package, including the * following: *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for inference. *
** The input and output content formats that the model package supports for inference. *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for * inference. *
** The input and output content formats that the model package supports for inference. *
** Specifies details about inference jobs that can be run with models based on this model package, including the * following: *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for inference. *
** The input and output content formats that the model package supports for inference. *
** The Amazon ECR paths of containers that contain the inference code and model artifacts. *
** The instance types that the model package supports for transform jobs and real-time endpoints used for * inference. *
** The input and output content formats that the model package supports for inference. *
** Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. *
* * @param validationSpecification * Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. */ public void setValidationSpecification(ModelPackageValidationSpecification validationSpecification) { this.validationSpecification = validationSpecification; } /** ** Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. *
* * @return Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. */ public ModelPackageValidationSpecification getValidationSpecification() { return this.validationSpecification; } /** ** Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. *
* * @param validationSpecification * Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withValidationSpecification(ModelPackageValidationSpecification validationSpecification) { setValidationSpecification(validationSpecification); return this; } /** ** Details about the algorithm that was used to create the model package. *
* * @param sourceAlgorithmSpecification * Details about the algorithm that was used to create the model package. */ public void setSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification) { this.sourceAlgorithmSpecification = sourceAlgorithmSpecification; } /** ** Details about the algorithm that was used to create the model package. *
* * @return Details about the algorithm that was used to create the model package. */ public SourceAlgorithmSpecification getSourceAlgorithmSpecification() { return this.sourceAlgorithmSpecification; } /** ** Details about the algorithm that was used to create the model package. *
* * @param sourceAlgorithmSpecification * Details about the algorithm that was used to create the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification) { setSourceAlgorithmSpecification(sourceAlgorithmSpecification); return this; } /** ** Whether to certify the model package for listing on Amazon Web Services Marketplace. *
** This parameter is optional for unversioned models, and does not apply to versioned models. *
* * @param certifyForMarketplace * Whether to certify the model package for listing on Amazon Web Services Marketplace. ** This parameter is optional for unversioned models, and does not apply to versioned models. */ public void setCertifyForMarketplace(Boolean certifyForMarketplace) { this.certifyForMarketplace = certifyForMarketplace; } /** *
* Whether to certify the model package for listing on Amazon Web Services Marketplace. *
** This parameter is optional for unversioned models, and does not apply to versioned models. *
* * @return Whether to certify the model package for listing on Amazon Web Services Marketplace. ** This parameter is optional for unversioned models, and does not apply to versioned models. */ public Boolean getCertifyForMarketplace() { return this.certifyForMarketplace; } /** *
* Whether to certify the model package for listing on Amazon Web Services Marketplace. *
** This parameter is optional for unversioned models, and does not apply to versioned models. *
* * @param certifyForMarketplace * Whether to certify the model package for listing on Amazon Web Services Marketplace. ** This parameter is optional for unversioned models, and does not apply to versioned models. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withCertifyForMarketplace(Boolean certifyForMarketplace) { setCertifyForMarketplace(certifyForMarketplace); return this; } /** *
* Whether to certify the model package for listing on Amazon Web Services Marketplace. *
** This parameter is optional for unversioned models, and does not apply to versioned models. *
* * @return Whether to certify the model package for listing on Amazon Web Services Marketplace. ** This parameter is optional for unversioned models, and does not apply to versioned models. */ public Boolean isCertifyForMarketplace() { return this.certifyForMarketplace; } /** *
* A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @return A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public java.util.List* A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public void setTags(java.util.Collection* A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withTags(java.util.Collection* Whether the model is approved for deployment. *
** This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the model.
*
* This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the
* model.
* @see ModelApprovalStatus
*/
public void setModelApprovalStatus(String modelApprovalStatus) {
this.modelApprovalStatus = modelApprovalStatus;
}
/**
*
* Whether the model is approved for deployment. *
** This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the model.
*
* This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the
* model.
* @see ModelApprovalStatus
*/
public String getModelApprovalStatus() {
return this.modelApprovalStatus;
}
/**
*
* Whether the model is approved for deployment. *
** This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the model.
*
* This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the
* model.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelApprovalStatus
*/
public CreateModelPackageRequest withModelApprovalStatus(String modelApprovalStatus) {
setModelApprovalStatus(modelApprovalStatus);
return this;
}
/**
*
* Whether the model is approved for deployment. *
** This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the model.
*
* This parameter is optional for versioned models, and does not apply to unversioned models. *
*
* For versioned models, the value of this parameter must be set to Approved
to deploy the
* model.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelApprovalStatus
*/
public CreateModelPackageRequest withModelApprovalStatus(ModelApprovalStatus modelApprovalStatus) {
this.modelApprovalStatus = modelApprovalStatus.toString();
return this;
}
/**
* @param metadataProperties
*/
public void setMetadataProperties(MetadataProperties metadataProperties) {
this.metadataProperties = metadataProperties;
}
/**
* @return
*/
public MetadataProperties getMetadataProperties() {
return this.metadataProperties;
}
/**
* @param metadataProperties
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateModelPackageRequest withMetadataProperties(MetadataProperties metadataProperties) {
setMetadataProperties(metadataProperties);
return this;
}
/**
*
* A structure that contains model metrics reports. *
* * @param modelMetrics * A structure that contains model metrics reports. */ public void setModelMetrics(ModelMetrics modelMetrics) { this.modelMetrics = modelMetrics; } /** ** A structure that contains model metrics reports. *
* * @return A structure that contains model metrics reports. */ public ModelMetrics getModelMetrics() { return this.modelMetrics; } /** ** A structure that contains model metrics reports. *
* * @param modelMetrics * A structure that contains model metrics reports. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withModelMetrics(ModelMetrics modelMetrics) { setModelMetrics(modelMetrics); return this; } /** ** A unique token that guarantees that the call to this API is idempotent. *
* * @param clientToken * A unique token that guarantees that the call to this API is idempotent. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** A unique token that guarantees that the call to this API is idempotent. *
* * @return A unique token that guarantees that the call to this API is idempotent. */ public String getClientToken() { return this.clientToken; } /** ** A unique token that guarantees that the call to this API is idempotent. *
* * @param clientToken * A unique token that guarantees that the call to this API is idempotent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 CreateModelPackageRequest withCustomerMetadataProperties(java.util.Map* Represents the drift check baselines that can be used when the model monitor is set using the model package. For * more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer * Guide. *
* * @param driftCheckBaselines * Represents the drift check baselines that can be used when the model monitor is set using the model * package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker * Developer Guide. */ public void setDriftCheckBaselines(DriftCheckBaselines driftCheckBaselines) { this.driftCheckBaselines = driftCheckBaselines; } /** ** Represents the drift check baselines that can be used when the model monitor is set using the model package. For * more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer * Guide. *
* * @return Represents the drift check baselines that can be used when the model monitor is set using the model * package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker * Developer Guide. */ public DriftCheckBaselines getDriftCheckBaselines() { return this.driftCheckBaselines; } /** ** Represents the drift check baselines that can be used when the model monitor is set using the model package. For * more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer * Guide. *
* * @param driftCheckBaselines * Represents the drift check baselines that can be used when the model monitor is set using the model * package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker * Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withDriftCheckBaselines(DriftCheckBaselines driftCheckBaselines) { setDriftCheckBaselines(driftCheckBaselines); return this; } /** ** The machine learning domain of your model package and its components. Common machine learning domains include * computer vision and natural language processing. *
* * @param domain * The machine learning domain of your model package and its components. Common machine learning domains * include computer vision and natural language processing. */ public void setDomain(String domain) { this.domain = domain; } /** ** The machine learning domain of your model package and its components. Common machine learning domains include * computer vision and natural language processing. *
* * @return The machine learning domain of your model package and its components. Common machine learning domains * include computer vision and natural language processing. */ public String getDomain() { return this.domain; } /** ** The machine learning domain of your model package and its components. Common machine learning domains include * computer vision and natural language processing. *
* * @param domain * The machine learning domain of your model package and its components. Common machine learning domains * include computer vision and natural language processing. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withDomain(String domain) { setDomain(domain); return this; } /** *
* The machine learning task your model package accomplishes. Common machine learning tasks include object detection
* and image classification. The following tasks are supported by Inference Recommender:
* "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
*
* Specify "OTHER" if none of the tasks listed fit your use case. *
* * @param task * The machine learning task your model package accomplishes. Common machine learning tasks include object * detection and image classification. The following tasks are supported by Inference Recommender: *"IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
* * Specify "OTHER" if none of the tasks listed fit your use case. */ public void setTask(String task) { this.task = task; } /** *
* The machine learning task your model package accomplishes. Common machine learning tasks include object detection
* and image classification. The following tasks are supported by Inference Recommender:
* "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
*
* Specify "OTHER" if none of the tasks listed fit your use case. *
* * @return The machine learning task your model package accomplishes. Common machine learning tasks include object * detection and image classification. The following tasks are supported by Inference Recommender: *"IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
* * Specify "OTHER" if none of the tasks listed fit your use case. */ public String getTask() { return this.task; } /** *
* The machine learning task your model package accomplishes. Common machine learning tasks include object detection
* and image classification. The following tasks are supported by Inference Recommender:
* "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
*
* Specify "OTHER" if none of the tasks listed fit your use case. *
* * @param task * The machine learning task your model package accomplishes. Common machine learning tasks include object * detection and image classification. The following tasks are supported by Inference Recommender: *"IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
* "IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
* "REGRESSION"
| "OTHER"
.
* * Specify "OTHER" if none of the tasks listed fit your use case. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withTask(String task) { setTask(task); return this; } /** *
* The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that are all equally * used in the load test. Each file in the archive must satisfy the size constraints of the InvokeEndpoint call. *
* * @param samplePayloadUrl * The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that * are all equally used in the load test. Each file in the archive must satisfy the size constraints of the * InvokeEndpoint call. */ public void setSamplePayloadUrl(String samplePayloadUrl) { this.samplePayloadUrl = samplePayloadUrl; } /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that are all equally * used in the load test. Each file in the archive must satisfy the size constraints of the InvokeEndpoint call. *
* * @return The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that * are all equally used in the load test. Each file in the archive must satisfy the size constraints of the * InvokeEndpoint call. */ public String getSamplePayloadUrl() { return this.samplePayloadUrl; } /** ** The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a * single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that are all equally * used in the load test. Each file in the archive must satisfy the size constraints of the InvokeEndpoint call. *
* * @param samplePayloadUrl * The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must * point to a single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that * are all equally used in the load test. Each file in the archive must satisfy the size constraints of the * InvokeEndpoint call. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateModelPackageRequest withSamplePayloadUrl(String samplePayloadUrl) { setSamplePayloadUrl(samplePayloadUrl); return this; } /** ** An array of additional Inference Specification objects. 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. 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. 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 additionalInferenceSpecifications * An array of additional Inference Specification objects. 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 setAdditionalInferenceSpecifications(java.util.Collection* An array of additional Inference Specification objects. 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 #setAdditionalInferenceSpecifications(java.util.Collection)} or * {@link #withAdditionalInferenceSpecifications(java.util.Collection)} if you want to override the existing values. *
* * @param additionalInferenceSpecifications * An array of additional Inference Specification objects. 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 CreateModelPackageRequest withAdditionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications) { if (this.additionalInferenceSpecifications == null) { setAdditionalInferenceSpecifications(new java.util.ArrayList* An array of additional Inference Specification objects. 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 additionalInferenceSpecifications * An array of additional Inference Specification objects. 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 CreateModelPackageRequest withAdditionalInferenceSpecifications( java.util.Collection