Class CfnTransformJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnTransformJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformJobProps>
- Enclosing interface:
CfnTransformJobProps
@Stability(Stable)
public static final class CfnTransformJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformJobProps>
A builder for
CfnTransformJobProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchStrategy(String batchStrategy) Sets the value ofCfnTransformJobProps.getBatchStrategy()build()Builds the configured instance.dataCaptureConfig(IResolvable dataCaptureConfig) Sets the value ofCfnTransformJobProps.getDataCaptureConfig()dataCaptureConfig(CfnTransformJob.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnTransformJobProps.getDataCaptureConfig()dataProcessing(IResolvable dataProcessing) Sets the value ofCfnTransformJobProps.getDataProcessing()dataProcessing(CfnTransformJob.DataProcessingProperty dataProcessing) Sets the value ofCfnTransformJobProps.getDataProcessing()environment(Map<String, String> environment) Sets the value ofCfnTransformJobProps.getEnvironment()environment(IResolvable environment) Sets the value ofCfnTransformJobProps.getEnvironment()experimentConfig(IResolvable experimentConfig) Sets the value ofCfnTransformJobProps.getExperimentConfig()experimentConfig(CfnTransformJob.ExperimentConfigProperty experimentConfig) Sets the value ofCfnTransformJobProps.getExperimentConfig()maxConcurrentTransforms(Number maxConcurrentTransforms) Sets the value ofCfnTransformJobProps.getMaxConcurrentTransforms()maxPayloadInMb(Number maxPayloadInMb) Sets the value ofCfnTransformJobProps.getMaxPayloadInMb()modelClientConfig(IResolvable modelClientConfig) Sets the value ofCfnTransformJobProps.getModelClientConfig()modelClientConfig(CfnTransformJob.ModelClientConfigProperty modelClientConfig) Sets the value ofCfnTransformJobProps.getModelClientConfig()Sets the value ofCfnTransformJobProps.getModelName()tags(List<? extends CfnTransformJob.TagsItemsProperty> tags) Sets the value ofCfnTransformJobProps.getTags()transformInput(IResolvable transformInput) Sets the value ofCfnTransformJobProps.getTransformInput()transformInput(CfnTransformJob.TransformInputProperty transformInput) Sets the value ofCfnTransformJobProps.getTransformInput()transformOutput(IResolvable transformOutput) Sets the value ofCfnTransformJobProps.getTransformOutput()transformOutput(CfnTransformJob.TransformOutputProperty transformOutput) Sets the value ofCfnTransformJobProps.getTransformOutput()transformResources(IResolvable transformResources) Sets the value ofCfnTransformJobProps.getTransformResources()transformResources(CfnTransformJob.TransformResourcesProperty transformResources) Sets the value ofCfnTransformJobProps.getTransformResources()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelName
Sets the value ofCfnTransformJobProps.getModelName()- Parameters:
modelName- The name of the model that you want to use for the transform job. This parameter is required.- Returns:
this
-
transformInput
Sets the value ofCfnTransformJobProps.getTransformInput()- Parameters:
transformInput- Describes the input source and the way the transform job consumes it. This parameter is required.- Returns:
this
-
transformInput
@Stability(Stable) public CfnTransformJobProps.Builder transformInput(CfnTransformJob.TransformInputProperty transformInput) Sets the value ofCfnTransformJobProps.getTransformInput()- Parameters:
transformInput- Describes the input source and the way the transform job consumes it. This parameter is required.- Returns:
this
-
transformOutput
Sets the value ofCfnTransformJobProps.getTransformOutput()- Parameters:
transformOutput- Describes the results of the transform job. This parameter is required.- Returns:
this
-
transformOutput
@Stability(Stable) public CfnTransformJobProps.Builder transformOutput(CfnTransformJob.TransformOutputProperty transformOutput) Sets the value ofCfnTransformJobProps.getTransformOutput()- Parameters:
transformOutput- Describes the results of the transform job. This parameter is required.- Returns:
this
-
transformResources
@Stability(Stable) public CfnTransformJobProps.Builder transformResources(IResolvable transformResources) Sets the value ofCfnTransformJobProps.getTransformResources()- Parameters:
transformResources- Describes the resources, including ML instance types and ML instance count, to use for the transform job. This parameter is required.- Returns:
this
-
transformResources
@Stability(Stable) public CfnTransformJobProps.Builder transformResources(CfnTransformJob.TransformResourcesProperty transformResources) Sets the value ofCfnTransformJobProps.getTransformResources()- Parameters:
transformResources- Describes the resources, including ML instance types and ML instance count, to use for the transform job. This parameter is required.- Returns:
this
-
batchStrategy
Sets the value ofCfnTransformJobProps.getBatchStrategy()- Parameters:
batchStrategy- Specifies the number of records to include in a mini-batch for an HTTP inference request.- Returns:
this
-
dataCaptureConfig
@Stability(Stable) public CfnTransformJobProps.Builder dataCaptureConfig(IResolvable dataCaptureConfig) Sets the value ofCfnTransformJobProps.getDataCaptureConfig()- Parameters:
dataCaptureConfig- Configuration to control how SageMaker captures inference data.- Returns:
this
-
dataCaptureConfig
@Stability(Stable) public CfnTransformJobProps.Builder dataCaptureConfig(CfnTransformJob.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnTransformJobProps.getDataCaptureConfig()- Parameters:
dataCaptureConfig- Configuration to control how SageMaker captures inference data.- Returns:
this
-
dataProcessing
Sets the value ofCfnTransformJobProps.getDataProcessing()- Parameters:
dataProcessing- The data structure used to specify the data to be used for inference in a batch transform job.- Returns:
this
-
dataProcessing
@Stability(Stable) public CfnTransformJobProps.Builder dataProcessing(CfnTransformJob.DataProcessingProperty dataProcessing) Sets the value ofCfnTransformJobProps.getDataProcessing()- Parameters:
dataProcessing- The data structure used to specify the data to be used for inference in a batch transform job.- Returns:
this
-
environment
Sets the value ofCfnTransformJobProps.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container.- Returns:
this
-
environment
Sets the value ofCfnTransformJobProps.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container.- Returns:
this
-
experimentConfig
@Stability(Stable) public CfnTransformJobProps.Builder experimentConfig(IResolvable experimentConfig) Sets the value ofCfnTransformJobProps.getExperimentConfig()- Parameters:
experimentConfig- Associates a SageMaker job as a trial component with an experiment and trial.- Returns:
this
-
experimentConfig
@Stability(Stable) public CfnTransformJobProps.Builder experimentConfig(CfnTransformJob.ExperimentConfigProperty experimentConfig) Sets the value ofCfnTransformJobProps.getExperimentConfig()- Parameters:
experimentConfig- Associates a SageMaker job as a trial component with an experiment and trial.- Returns:
this
-
maxConcurrentTransforms
@Stability(Stable) public CfnTransformJobProps.Builder maxConcurrentTransforms(Number maxConcurrentTransforms) Sets the value ofCfnTransformJobProps.getMaxConcurrentTransforms()- Parameters:
maxConcurrentTransforms- The maximum number of parallel requests that can be sent to each instance in a transform job.- Returns:
this
-
maxPayloadInMb
Sets the value ofCfnTransformJobProps.getMaxPayloadInMb()- Parameters:
maxPayloadInMb- The maximum allowed size of the payload, in MB.- Returns:
this
-
modelClientConfig
@Stability(Stable) public CfnTransformJobProps.Builder modelClientConfig(IResolvable modelClientConfig) Sets the value ofCfnTransformJobProps.getModelClientConfig()- Parameters:
modelClientConfig- Configures the timeout and maximum number of retries for processing a transform job invocation.- Returns:
this
-
modelClientConfig
@Stability(Stable) public CfnTransformJobProps.Builder modelClientConfig(CfnTransformJob.ModelClientConfigProperty modelClientConfig) Sets the value ofCfnTransformJobProps.getModelClientConfig()- Parameters:
modelClientConfig- Configures the timeout and maximum number of retries for processing a transform job invocation.- Returns:
this
-
tags
@Stability(Stable) public CfnTransformJobProps.Builder tags(List<? extends CfnTransformJob.TagsItemsProperty> tags) Sets the value ofCfnTransformJobProps.getTags()- Parameters:
tags- An array of key-value pairs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformJobProps>- Returns:
- a new instance of
CfnTransformJobProps - Throws:
NullPointerException- if any required attribute was not provided
-