/* * 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; /** *
* An Amazon SageMaker processing job that is used to analyze data and evaluate models. For more information, see Process Data and Evaluate Models. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProcessingJob implements Serializable, Cloneable, StructuredPojo { /** ** List of input configurations for the processing job. *
*/ private java.util.List* The name of the processing job. *
*/ private String processingJobName; private ProcessingResources processingResources; private ProcessingStoppingCondition stoppingCondition; private AppSpecification appSpecification; /** ** Sets the environment variables in the Docker container. *
*/ private java.util.Map* The ARN of the role used to create the processing job. *
*/ private String roleArn; private ExperimentConfig experimentConfig; /** ** The ARN of the processing job. *
*/ private String processingJobArn; /** ** The status of the processing job. *
*/ private String processingJobStatus; /** ** A string, up to one KB in size, that contains metadata from the processing container when the processing job * exits. *
*/ private String exitMessage; /** ** A string, up to one KB in size, that contains the reason a processing job failed, if it failed. *
*/ private String failureReason; /** ** The time that the processing job ended. *
*/ private java.util.Date processingEndTime; /** ** The time that the processing job started. *
*/ private java.util.Date processingStartTime; /** ** The time the processing job was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The time the processing job was created. *
*/ private java.util.Date creationTime; /** ** The ARN of a monitoring schedule for an endpoint associated with this processing job. *
*/ private String monitoringScheduleArn; /** ** The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. *
*/ private String autoMLJobArn; /** ** The ARN of the training job associated with this processing job. *
*/ private String trainingJobArn; /** ** An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
*/ private java.util.List* List of input configurations for the processing job. *
* * @return List of input configurations for the processing job. */ public java.util.List* List of input configurations for the processing job. *
* * @param processingInputs * List of input configurations for the processing job. */ public void setProcessingInputs(java.util.Collection* List of input configurations for the processing job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProcessingInputs(java.util.Collection)} or {@link #withProcessingInputs(java.util.Collection)} if you * want to override the existing values. *
* * @param processingInputs * List of input configurations for the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingInputs(ProcessingInput... processingInputs) { if (this.processingInputs == null) { setProcessingInputs(new java.util.ArrayList* List of input configurations for the processing job. *
* * @param processingInputs * List of input configurations for the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingInputs(java.util.Collection* The name of the processing job. *
* * @param processingJobName * The name of the processing job. */ public void setProcessingJobName(String processingJobName) { this.processingJobName = processingJobName; } /** ** The name of the processing job. *
* * @return The name of the processing job. */ public String getProcessingJobName() { return this.processingJobName; } /** ** The name of the processing job. *
* * @param processingJobName * The name of the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingJobName(String processingJobName) { setProcessingJobName(processingJobName); return this; } /** * @param processingResources */ public void setProcessingResources(ProcessingResources processingResources) { this.processingResources = processingResources; } /** * @return */ public ProcessingResources getProcessingResources() { return this.processingResources; } /** * @param processingResources * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingResources(ProcessingResources processingResources) { setProcessingResources(processingResources); return this; } /** * @param stoppingCondition */ public void setStoppingCondition(ProcessingStoppingCondition stoppingCondition) { this.stoppingCondition = stoppingCondition; } /** * @return */ public ProcessingStoppingCondition getStoppingCondition() { return this.stoppingCondition; } /** * @param stoppingCondition * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withStoppingCondition(ProcessingStoppingCondition stoppingCondition) { setStoppingCondition(stoppingCondition); return this; } /** * @param appSpecification */ public void setAppSpecification(AppSpecification appSpecification) { this.appSpecification = appSpecification; } /** * @return */ public AppSpecification getAppSpecification() { return this.appSpecification; } /** * @param appSpecification * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withAppSpecification(AppSpecification appSpecification) { setAppSpecification(appSpecification); return this; } /** ** Sets the environment variables in the Docker container. *
* * @return Sets the environment variables in the Docker container. */ public java.util.Map* Sets the environment variables in the Docker container. *
* * @param environment * Sets the environment variables in the Docker container. */ public void setEnvironment(java.util.Map* Sets the environment variables in the Docker container. *
* * @param environment * Sets the environment variables in the Docker container. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withEnvironment(java.util.Map* The ARN of the role used to create the processing job. *
* * @param roleArn * The ARN of the role used to create the processing job. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The ARN of the role used to create the processing job. *
* * @return The ARN of the role used to create the processing job. */ public String getRoleArn() { return this.roleArn; } /** ** The ARN of the role used to create the processing job. *
* * @param roleArn * The ARN of the role used to create the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** * @param experimentConfig */ public void setExperimentConfig(ExperimentConfig experimentConfig) { this.experimentConfig = experimentConfig; } /** * @return */ public ExperimentConfig getExperimentConfig() { return this.experimentConfig; } /** * @param experimentConfig * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withExperimentConfig(ExperimentConfig experimentConfig) { setExperimentConfig(experimentConfig); return this; } /** ** The ARN of the processing job. *
* * @param processingJobArn * The ARN of the processing job. */ public void setProcessingJobArn(String processingJobArn) { this.processingJobArn = processingJobArn; } /** ** The ARN of the processing job. *
* * @return The ARN of the processing job. */ public String getProcessingJobArn() { return this.processingJobArn; } /** ** The ARN of the processing job. *
* * @param processingJobArn * The ARN of the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingJobArn(String processingJobArn) { setProcessingJobArn(processingJobArn); return this; } /** ** The status of the processing job. *
* * @param processingJobStatus * The status of the processing job. * @see ProcessingJobStatus */ public void setProcessingJobStatus(String processingJobStatus) { this.processingJobStatus = processingJobStatus; } /** ** The status of the processing job. *
* * @return The status of the processing job. * @see ProcessingJobStatus */ public String getProcessingJobStatus() { return this.processingJobStatus; } /** ** The status of the processing job. *
* * @param processingJobStatus * The status of the processing job. * @return Returns a reference to this object so that method calls can be chained together. * @see ProcessingJobStatus */ public ProcessingJob withProcessingJobStatus(String processingJobStatus) { setProcessingJobStatus(processingJobStatus); return this; } /** ** The status of the processing job. *
* * @param processingJobStatus * The status of the processing job. * @return Returns a reference to this object so that method calls can be chained together. * @see ProcessingJobStatus */ public ProcessingJob withProcessingJobStatus(ProcessingJobStatus processingJobStatus) { this.processingJobStatus = processingJobStatus.toString(); return this; } /** ** A string, up to one KB in size, that contains metadata from the processing container when the processing job * exits. *
* * @param exitMessage * A string, up to one KB in size, that contains metadata from the processing container when the processing * job exits. */ public void setExitMessage(String exitMessage) { this.exitMessage = exitMessage; } /** ** A string, up to one KB in size, that contains metadata from the processing container when the processing job * exits. *
* * @return A string, up to one KB in size, that contains metadata from the processing container when the processing * job exits. */ public String getExitMessage() { return this.exitMessage; } /** ** A string, up to one KB in size, that contains metadata from the processing container when the processing job * exits. *
* * @param exitMessage * A string, up to one KB in size, that contains metadata from the processing container when the processing * job exits. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withExitMessage(String exitMessage) { setExitMessage(exitMessage); return this; } /** ** A string, up to one KB in size, that contains the reason a processing job failed, if it failed. *
* * @param failureReason * A string, up to one KB in size, that contains the reason a processing job failed, if it failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** A string, up to one KB in size, that contains the reason a processing job failed, if it failed. *
* * @return A string, up to one KB in size, that contains the reason a processing job failed, if it failed. */ public String getFailureReason() { return this.failureReason; } /** ** A string, up to one KB in size, that contains the reason a processing job failed, if it failed. *
* * @param failureReason * A string, up to one KB in size, that contains the reason a processing job failed, if it failed. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The time that the processing job ended. *
* * @param processingEndTime * The time that the processing job ended. */ public void setProcessingEndTime(java.util.Date processingEndTime) { this.processingEndTime = processingEndTime; } /** ** The time that the processing job ended. *
* * @return The time that the processing job ended. */ public java.util.Date getProcessingEndTime() { return this.processingEndTime; } /** ** The time that the processing job ended. *
* * @param processingEndTime * The time that the processing job ended. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingEndTime(java.util.Date processingEndTime) { setProcessingEndTime(processingEndTime); return this; } /** ** The time that the processing job started. *
* * @param processingStartTime * The time that the processing job started. */ public void setProcessingStartTime(java.util.Date processingStartTime) { this.processingStartTime = processingStartTime; } /** ** The time that the processing job started. *
* * @return The time that the processing job started. */ public java.util.Date getProcessingStartTime() { return this.processingStartTime; } /** ** The time that the processing job started. *
* * @param processingStartTime * The time that the processing job started. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withProcessingStartTime(java.util.Date processingStartTime) { setProcessingStartTime(processingStartTime); return this; } /** ** The time the processing job was last modified. *
* * @param lastModifiedTime * The time the processing job was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The time the processing job was last modified. *
* * @return The time the processing job was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The time the processing job was last modified. *
* * @param lastModifiedTime * The time the processing job was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** The time the processing job was created. *
* * @param creationTime * The time the processing job was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time the processing job was created. *
* * @return The time the processing job was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time the processing job was created. *
* * @param creationTime * The time the processing job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The ARN of a monitoring schedule for an endpoint associated with this processing job. *
* * @param monitoringScheduleArn * The ARN of a monitoring schedule for an endpoint associated with this processing job. */ public void setMonitoringScheduleArn(String monitoringScheduleArn) { this.monitoringScheduleArn = monitoringScheduleArn; } /** ** The ARN of a monitoring schedule for an endpoint associated with this processing job. *
* * @return The ARN of a monitoring schedule for an endpoint associated with this processing job. */ public String getMonitoringScheduleArn() { return this.monitoringScheduleArn; } /** ** The ARN of a monitoring schedule for an endpoint associated with this processing job. *
* * @param monitoringScheduleArn * The ARN of a monitoring schedule for an endpoint associated with this processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withMonitoringScheduleArn(String monitoringScheduleArn) { setMonitoringScheduleArn(monitoringScheduleArn); return this; } /** ** The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. *
* * @param autoMLJobArn * The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. */ public void setAutoMLJobArn(String autoMLJobArn) { this.autoMLJobArn = autoMLJobArn; } /** ** The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. *
* * @return The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. */ public String getAutoMLJobArn() { return this.autoMLJobArn; } /** ** The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. *
* * @param autoMLJobArn * The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withAutoMLJobArn(String autoMLJobArn) { setAutoMLJobArn(autoMLJobArn); return this; } /** ** The ARN of the training job associated with this processing job. *
* * @param trainingJobArn * The ARN of the training job associated with this processing job. */ public void setTrainingJobArn(String trainingJobArn) { this.trainingJobArn = trainingJobArn; } /** ** The ARN of the training job associated with this processing job. *
* * @return The ARN of the training job associated with this processing job. */ public String getTrainingJobArn() { return this.trainingJobArn; } /** ** The ARN of the training job associated with this processing job. *
* * @param trainingJobArn * The ARN of the training job associated with this processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withTrainingJobArn(String trainingJobArn) { setTrainingJobArn(trainingJobArn); return this; } /** ** An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @return An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. */ public java.util.List* An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @param tags * An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. */ public void setTags(java.util.Collection* An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User 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 * An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* An array of key-value pairs. For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. *
* * @param tags * An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ProcessingJob withTags(java.util.Collection