Class CfnProcessingJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnProcessingJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProcessingJobProps>
- Enclosing interface:
CfnProcessingJobProps
@Stability(Stable)
public static final class CfnProcessingJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProcessingJobProps>
A builder for
CfnProcessingJobProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappSpecification
(IResolvable appSpecification) Sets the value ofCfnProcessingJobProps.getAppSpecification()
appSpecification
(CfnProcessingJob.AppSpecificationProperty appSpecification) Sets the value ofCfnProcessingJobProps.getAppSpecification()
build()
Builds the configured instance.environment
(Map<String, String> environment) Sets the value ofCfnProcessingJobProps.getEnvironment()
environment
(IResolvable environment) Sets the value ofCfnProcessingJobProps.getEnvironment()
experimentConfig
(IResolvable experimentConfig) Sets the value ofCfnProcessingJobProps.getExperimentConfig()
experimentConfig
(CfnProcessingJob.ExperimentConfigProperty experimentConfig) Sets the value ofCfnProcessingJobProps.getExperimentConfig()
networkConfig
(IResolvable networkConfig) Sets the value ofCfnProcessingJobProps.getNetworkConfig()
networkConfig
(CfnProcessingJob.NetworkConfigProperty networkConfig) Sets the value ofCfnProcessingJobProps.getNetworkConfig()
processingInputs
(List<? extends Object> processingInputs) Sets the value ofCfnProcessingJobProps.getProcessingInputs()
processingInputs
(IResolvable processingInputs) Sets the value ofCfnProcessingJobProps.getProcessingInputs()
processingJobName
(String processingJobName) Sets the value ofCfnProcessingJobProps.getProcessingJobName()
processingOutputConfig
(IResolvable processingOutputConfig) Sets the value ofCfnProcessingJobProps.getProcessingOutputConfig()
processingOutputConfig
(CfnProcessingJob.ProcessingOutputConfigProperty processingOutputConfig) Sets the value ofCfnProcessingJobProps.getProcessingOutputConfig()
processingResources
(IResolvable processingResources) Sets the value ofCfnProcessingJobProps.getProcessingResources()
processingResources
(CfnProcessingJob.ProcessingResourcesProperty processingResources) Sets the value ofCfnProcessingJobProps.getProcessingResources()
Sets the value ofCfnProcessingJobProps.getRoleArn()
stoppingCondition
(IResolvable stoppingCondition) Sets the value ofCfnProcessingJobProps.getStoppingCondition()
stoppingCondition
(CfnProcessingJob.StoppingConditionProperty stoppingCondition) Sets the value ofCfnProcessingJobProps.getStoppingCondition()
Sets the value ofCfnProcessingJobProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appSpecification
@Stability(Stable) public CfnProcessingJobProps.Builder appSpecification(IResolvable appSpecification) Sets the value ofCfnProcessingJobProps.getAppSpecification()
- Parameters:
appSpecification
- Configuration to run a processing job in a specified container image. This parameter is required.- Returns:
this
-
appSpecification
@Stability(Stable) public CfnProcessingJobProps.Builder appSpecification(CfnProcessingJob.AppSpecificationProperty appSpecification) Sets the value ofCfnProcessingJobProps.getAppSpecification()
- Parameters:
appSpecification
- Configuration to run a processing job in a specified container image. This parameter is required.- Returns:
this
-
processingResources
@Stability(Stable) public CfnProcessingJobProps.Builder processingResources(IResolvable processingResources) Sets the value ofCfnProcessingJobProps.getProcessingResources()
- Parameters:
processingResources
- Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. This parameter is required. In distributed training, you specify more than one instance.- Returns:
this
-
processingResources
@Stability(Stable) public CfnProcessingJobProps.Builder processingResources(CfnProcessingJob.ProcessingResourcesProperty processingResources) Sets the value ofCfnProcessingJobProps.getProcessingResources()
- Parameters:
processingResources
- Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. This parameter is required. In distributed training, you specify more than one instance.- Returns:
this
-
roleArn
Sets the value ofCfnProcessingJobProps.getRoleArn()
- Parameters:
roleArn
- The ARN of the role used to create the processing job. This parameter is required.- Returns:
this
-
environment
Sets the value ofCfnProcessingJobProps.getEnvironment()
- Parameters:
environment
- Sets the environment variables in the Docker container.- Returns:
this
-
environment
Sets the value ofCfnProcessingJobProps.getEnvironment()
- Parameters:
environment
- Sets the environment variables in the Docker container.- Returns:
this
-
experimentConfig
@Stability(Stable) public CfnProcessingJobProps.Builder experimentConfig(IResolvable experimentConfig) Sets the value ofCfnProcessingJobProps.getExperimentConfig()
- Parameters:
experimentConfig
- Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the CreateProcessingJob API.- Returns:
this
-
experimentConfig
@Stability(Stable) public CfnProcessingJobProps.Builder experimentConfig(CfnProcessingJob.ExperimentConfigProperty experimentConfig) Sets the value ofCfnProcessingJobProps.getExperimentConfig()
- Parameters:
experimentConfig
- Associates a SageMaker job as a trial component with an experiment and trial. Specified when you call the CreateProcessingJob API.- Returns:
this
-
networkConfig
Sets the value ofCfnProcessingJobProps.getNetworkConfig()
- Parameters:
networkConfig
- Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.- Returns:
this
-
networkConfig
@Stability(Stable) public CfnProcessingJobProps.Builder networkConfig(CfnProcessingJob.NetworkConfigProperty networkConfig) Sets the value ofCfnProcessingJobProps.getNetworkConfig()
- Parameters:
networkConfig
- Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.- Returns:
this
-
processingInputs
@Stability(Stable) public CfnProcessingJobProps.Builder processingInputs(IResolvable processingInputs) Sets the value ofCfnProcessingJobProps.getProcessingInputs()
- Parameters:
processingInputs
- List of input configurations for the processing job.- Returns:
this
-
processingInputs
@Stability(Stable) public CfnProcessingJobProps.Builder processingInputs(List<? extends Object> processingInputs) Sets the value ofCfnProcessingJobProps.getProcessingInputs()
- Parameters:
processingInputs
- List of input configurations for the processing job.- Returns:
this
-
processingJobName
Sets the value ofCfnProcessingJobProps.getProcessingJobName()
- Parameters:
processingJobName
- The name of the processing job. If you don't provide a job name, then a unique name is automatically created for the job.- Returns:
this
-
processingOutputConfig
@Stability(Stable) public CfnProcessingJobProps.Builder processingOutputConfig(IResolvable processingOutputConfig) Sets the value ofCfnProcessingJobProps.getProcessingOutputConfig()
- Parameters:
processingOutputConfig
- Contains information about the output location for the compiled model and the target device that the model runs on.TargetDevice
andTargetPlatform
are mutually exclusive, so you need to choose one between the two to specify your target device or platform. If you cannot find your device you want to use from theTargetDevice
list, useTargetPlatform
to describe the platform of your edge device andCompilerOptions
if there are specific settings that are required or recommended to use for particular TargetPlatform.- Returns:
this
-
processingOutputConfig
@Stability(Stable) public CfnProcessingJobProps.Builder processingOutputConfig(CfnProcessingJob.ProcessingOutputConfigProperty processingOutputConfig) Sets the value ofCfnProcessingJobProps.getProcessingOutputConfig()
- Parameters:
processingOutputConfig
- Contains information about the output location for the compiled model and the target device that the model runs on.TargetDevice
andTargetPlatform
are mutually exclusive, so you need to choose one between the two to specify your target device or platform. If you cannot find your device you want to use from theTargetDevice
list, useTargetPlatform
to describe the platform of your edge device andCompilerOptions
if there are specific settings that are required or recommended to use for particular TargetPlatform.- Returns:
this
-
stoppingCondition
@Stability(Stable) public CfnProcessingJobProps.Builder stoppingCondition(IResolvable stoppingCondition) Sets the value ofCfnProcessingJobProps.getStoppingCondition()
- Parameters:
stoppingCondition
- Configures conditions under which the processing job should be stopped, such as how long the processing job has been running. After the condition is met, the processing job is stopped.- Returns:
this
-
stoppingCondition
@Stability(Stable) public CfnProcessingJobProps.Builder stoppingCondition(CfnProcessingJob.StoppingConditionProperty stoppingCondition) Sets the value ofCfnProcessingJobProps.getStoppingCondition()
- Parameters:
stoppingCondition
- Configures conditions under which the processing job should be stopped, such as how long the processing job has been running. After the condition is met, the processing job is stopped.- Returns:
this
-
tags
Sets the value ofCfnProcessingJobProps.getTags()
- Parameters:
tags
- An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProcessingJobProps>
- Returns:
- a new instance of
CfnProcessingJobProps
- Throws:
NullPointerException
- if any required attribute was not provided
-