/* * 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 CreateEdgePackagingJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the edge packaging job. *
*/ private String edgePackagingJobName; /** ** The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. *
*/ private String compilationJobName; /** ** The name of the model. *
*/ private String modelName; /** ** The version of the model. *
*/ private String modelVersion; /** ** The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and * to contact SageMaker Neo. *
*/ private String roleArn; /** ** Provides information about the output location for the packaged model. *
*/ private EdgeOutputConfig outputConfig; /** ** The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. *
*/ private String resourceKey; /** ** Creates tags for the packaging job. *
*/ private java.util.List* The name of the edge packaging job. *
* * @param edgePackagingJobName * The name of the edge packaging job. */ public void setEdgePackagingJobName(String edgePackagingJobName) { this.edgePackagingJobName = edgePackagingJobName; } /** ** The name of the edge packaging job. *
* * @return The name of the edge packaging job. */ public String getEdgePackagingJobName() { return this.edgePackagingJobName; } /** ** The name of the edge packaging job. *
* * @param edgePackagingJobName * The name of the edge packaging job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withEdgePackagingJobName(String edgePackagingJobName) { setEdgePackagingJobName(edgePackagingJobName); return this; } /** ** The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. *
* * @param compilationJobName * The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. */ public void setCompilationJobName(String compilationJobName) { this.compilationJobName = compilationJobName; } /** ** The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. *
* * @return The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. */ public String getCompilationJobName() { return this.compilationJobName; } /** ** The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. *
* * @param compilationJobName * The name of the SageMaker Neo compilation job that will be used to locate model artifacts for packaging. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withCompilationJobName(String compilationJobName) { setCompilationJobName(compilationJobName); return this; } /** ** The name of the model. *
* * @param modelName * The name of the model. */ public void setModelName(String modelName) { this.modelName = modelName; } /** ** The name of the model. *
* * @return The name of the model. */ public String getModelName() { return this.modelName; } /** ** The name of the model. *
* * @param modelName * The name of the model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withModelName(String modelName) { setModelName(modelName); return this; } /** ** The version of the model. *
* * @param modelVersion * The version of the model. */ public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } /** ** The version of the model. *
* * @return The version of the model. */ public String getModelVersion() { return this.modelVersion; } /** ** The version of the model. *
* * @param modelVersion * The version of the model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withModelVersion(String modelVersion) { setModelVersion(modelVersion); return this; } /** ** The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and * to contact SageMaker Neo. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the * model, and to contact SageMaker Neo. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and * to contact SageMaker Neo. *
* * @return The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the * model, and to contact SageMaker Neo. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and * to contact SageMaker Neo. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the * model, and to contact SageMaker Neo. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** Provides information about the output location for the packaged model. *
* * @param outputConfig * Provides information about the output location for the packaged model. */ public void setOutputConfig(EdgeOutputConfig outputConfig) { this.outputConfig = outputConfig; } /** ** Provides information about the output location for the packaged model. *
* * @return Provides information about the output location for the packaged model. */ public EdgeOutputConfig getOutputConfig() { return this.outputConfig; } /** ** Provides information about the output location for the packaged model. *
* * @param outputConfig * Provides information about the output location for the packaged model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withOutputConfig(EdgeOutputConfig outputConfig) { setOutputConfig(outputConfig); return this; } /** ** The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. *
* * @param resourceKey * The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. */ public void setResourceKey(String resourceKey) { this.resourceKey = resourceKey; } /** ** The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. *
* * @return The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. */ public String getResourceKey() { return this.resourceKey; } /** ** The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. *
* * @param resourceKey * The Amazon Web Services KMS key to use when encrypting the EBS volume the edge packaging job runs on. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withResourceKey(String resourceKey) { setResourceKey(resourceKey); return this; } /** ** Creates tags for the packaging job. *
* * @return Creates tags for the packaging job. */ public java.util.List* Creates tags for the packaging job. *
* * @param tags * Creates tags for the packaging job. */ public void setTags(java.util.Collection* Creates tags for the packaging job. *
** 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 * Creates tags for the packaging job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Creates tags for the packaging job. *
* * @param tags * Creates tags for the packaging job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEdgePackagingJobRequest withTags(java.util.Collection