
com.amazonaws.services.sagemaker.model.CreateEdgePackagingJobRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* 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.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 tags;
/**
*
* 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 getTags() {
return tags;
}
/**
*
* Creates tags for the packaging job.
*
*
* @param tags
* Creates tags for the packaging job.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new java.util.ArrayList(tags);
}
/**
*
* 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(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* 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 tags) {
setTags(tags);
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 (getEdgePackagingJobName() != null)
sb.append("EdgePackagingJobName: ").append(getEdgePackagingJobName()).append(",");
if (getCompilationJobName() != null)
sb.append("CompilationJobName: ").append(getCompilationJobName()).append(",");
if (getModelName() != null)
sb.append("ModelName: ").append(getModelName()).append(",");
if (getModelVersion() != null)
sb.append("ModelVersion: ").append(getModelVersion()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getOutputConfig() != null)
sb.append("OutputConfig: ").append(getOutputConfig()).append(",");
if (getResourceKey() != null)
sb.append("ResourceKey: ").append(getResourceKey()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateEdgePackagingJobRequest == false)
return false;
CreateEdgePackagingJobRequest other = (CreateEdgePackagingJobRequest) obj;
if (other.getEdgePackagingJobName() == null ^ this.getEdgePackagingJobName() == null)
return false;
if (other.getEdgePackagingJobName() != null && other.getEdgePackagingJobName().equals(this.getEdgePackagingJobName()) == false)
return false;
if (other.getCompilationJobName() == null ^ this.getCompilationJobName() == null)
return false;
if (other.getCompilationJobName() != null && other.getCompilationJobName().equals(this.getCompilationJobName()) == false)
return false;
if (other.getModelName() == null ^ this.getModelName() == null)
return false;
if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == false)
return false;
if (other.getModelVersion() == null ^ this.getModelVersion() == null)
return false;
if (other.getModelVersion() != null && other.getModelVersion().equals(this.getModelVersion()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getOutputConfig() == null ^ this.getOutputConfig() == null)
return false;
if (other.getOutputConfig() != null && other.getOutputConfig().equals(this.getOutputConfig()) == false)
return false;
if (other.getResourceKey() == null ^ this.getResourceKey() == null)
return false;
if (other.getResourceKey() != null && other.getResourceKey().equals(this.getResourceKey()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEdgePackagingJobName() == null) ? 0 : getEdgePackagingJobName().hashCode());
hashCode = prime * hashCode + ((getCompilationJobName() == null) ? 0 : getCompilationJobName().hashCode());
hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode());
hashCode = prime * hashCode + ((getModelVersion() == null) ? 0 : getModelVersion().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getOutputConfig() == null) ? 0 : getOutputConfig().hashCode());
hashCode = prime * hashCode + ((getResourceKey() == null) ? 0 : getResourceKey().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public CreateEdgePackagingJobRequest clone() {
return (CreateEdgePackagingJobRequest) super.clone();
}
}