/* * 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 CreateProcessingJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An array of inputs configuring the data to download into the processing container. *
*/ private java.util.List* Output configuration for the processing job. *
*/ private ProcessingOutputConfig processingOutputConfig; /** ** The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web * Services account. *
*/ private String processingJobName; /** ** Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. *
*/ private ProcessingResources processingResources; /** ** The time limit for how long the processing job is allowed to run. *
*/ private ProcessingStoppingCondition stoppingCondition; /** ** Configures the processing job to run a specified Docker container image. *
*/ private AppSpecification appSpecification; /** ** The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. *
*/ private java.util.Map* Networking options for a processing job, such as whether to allow inbound and outbound network calls to and from * processing containers, and the VPC subnets and security groups to use for VPC-enabled processing jobs. *
*/ private NetworkConfig networkConfig; /** ** The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. *
*/ private String roleArn; /** ** (Optional) 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* An array of inputs configuring the data to download into the processing container. *
* * @return An array of inputs configuring the data to download into the processing container. */ public java.util.List* An array of inputs configuring the data to download into the processing container. *
* * @param processingInputs * An array of inputs configuring the data to download into the processing container. */ public void setProcessingInputs(java.util.Collection* An array of inputs configuring the data to download into the processing container. *
** 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 * An array of inputs configuring the data to download into the processing container. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withProcessingInputs(ProcessingInput... processingInputs) { if (this.processingInputs == null) { setProcessingInputs(new java.util.ArrayList* An array of inputs configuring the data to download into the processing container. *
* * @param processingInputs * An array of inputs configuring the data to download into the processing container. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withProcessingInputs(java.util.Collection* Output configuration for the processing job. *
* * @param processingOutputConfig * Output configuration for the processing job. */ public void setProcessingOutputConfig(ProcessingOutputConfig processingOutputConfig) { this.processingOutputConfig = processingOutputConfig; } /** ** Output configuration for the processing job. *
* * @return Output configuration for the processing job. */ public ProcessingOutputConfig getProcessingOutputConfig() { return this.processingOutputConfig; } /** ** Output configuration for the processing job. *
* * @param processingOutputConfig * Output configuration for the processing job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withProcessingOutputConfig(ProcessingOutputConfig processingOutputConfig) { setProcessingOutputConfig(processingOutputConfig); return this; } /** ** The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web * Services account. *
* * @param processingJobName * The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon * Web Services account. */ public void setProcessingJobName(String processingJobName) { this.processingJobName = processingJobName; } /** ** The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web * Services account. *
* * @return The name of the processing job. The name must be unique within an Amazon Web Services Region in the * Amazon Web Services account. */ public String getProcessingJobName() { return this.processingJobName; } /** ** The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web * Services account. *
* * @param processingJobName * The name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon * Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withProcessingJobName(String processingJobName) { setProcessingJobName(processingJobName); return this; } /** ** Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. *
* * @param processingResources * Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. */ public void setProcessingResources(ProcessingResources processingResources) { this.processingResources = processingResources; } /** ** Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. *
* * @return Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. */ public ProcessingResources getProcessingResources() { return this.processingResources; } /** ** Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. *
* * @param processingResources * Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In * distributed training, you specify more than one instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withProcessingResources(ProcessingResources processingResources) { setProcessingResources(processingResources); return this; } /** ** The time limit for how long the processing job is allowed to run. *
* * @param stoppingCondition * The time limit for how long the processing job is allowed to run. */ public void setStoppingCondition(ProcessingStoppingCondition stoppingCondition) { this.stoppingCondition = stoppingCondition; } /** ** The time limit for how long the processing job is allowed to run. *
* * @return The time limit for how long the processing job is allowed to run. */ public ProcessingStoppingCondition getStoppingCondition() { return this.stoppingCondition; } /** ** The time limit for how long the processing job is allowed to run. *
* * @param stoppingCondition * The time limit for how long the processing job is allowed to run. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withStoppingCondition(ProcessingStoppingCondition stoppingCondition) { setStoppingCondition(stoppingCondition); return this; } /** ** Configures the processing job to run a specified Docker container image. *
* * @param appSpecification * Configures the processing job to run a specified Docker container image. */ public void setAppSpecification(AppSpecification appSpecification) { this.appSpecification = appSpecification; } /** ** Configures the processing job to run a specified Docker container image. *
* * @return Configures the processing job to run a specified Docker container image. */ public AppSpecification getAppSpecification() { return this.appSpecification; } /** ** Configures the processing job to run a specified Docker container image. *
* * @param appSpecification * Configures the processing job to run a specified Docker container image. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withAppSpecification(AppSpecification appSpecification) { setAppSpecification(appSpecification); return this; } /** ** The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. *
* * @return The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. */ public java.util.Map* The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. *
* * @param environment * The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. */ public void setEnvironment(java.util.Map* The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. *
* * @param environment * The environment variables to set in the Docker container. Up to 100 key and values entries in the map are * supported. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withEnvironment(java.util.Map* Networking options for a processing job, such as whether to allow inbound and outbound network calls to and from * processing containers, and the VPC subnets and security groups to use for VPC-enabled processing jobs. *
* * @param networkConfig * Networking options for a processing job, such as whether to allow inbound and outbound network calls to * and from processing containers, and the VPC subnets and security groups to use for VPC-enabled processing * jobs. */ public void setNetworkConfig(NetworkConfig networkConfig) { this.networkConfig = networkConfig; } /** ** Networking options for a processing job, such as whether to allow inbound and outbound network calls to and from * processing containers, and the VPC subnets and security groups to use for VPC-enabled processing jobs. *
* * @return Networking options for a processing job, such as whether to allow inbound and outbound network calls to * and from processing containers, and the VPC subnets and security groups to use for VPC-enabled processing * jobs. */ public NetworkConfig getNetworkConfig() { return this.networkConfig; } /** ** Networking options for a processing job, such as whether to allow inbound and outbound network calls to and from * processing containers, and the VPC subnets and security groups to use for VPC-enabled processing jobs. *
* * @param networkConfig * Networking options for a processing job, such as whether to allow inbound and outbound network calls to * and from processing containers, and the VPC subnets and security groups to use for VPC-enabled processing * jobs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withNetworkConfig(NetworkConfig networkConfig) { setNetworkConfig(networkConfig); return this; } /** ** The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your * behalf. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. *
* * @return The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your * behalf. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your * behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProcessingJobRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** (Optional) 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 (Optional) 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* (Optional) 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 * (Optional) 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* (Optional) 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 * (Optional) 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 CreateProcessingJobRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* (Optional) 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 * (Optional) 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 CreateProcessingJobRequest withTags(java.util.Collection