Class CfnModelPackage.TransformJobDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformJobDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackage.TransformJobDefinitionProperty>
- Enclosing interface:
- CfnModelPackage.TransformJobDefinitionProperty
@Stability(Stable)
public static final class CfnModelPackage.TransformJobDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackage.TransformJobDefinitionProperty>
A builder for
CfnModelPackage.TransformJobDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchStrategy(String batchStrategy) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getBatchStrategy()build()Builds the configured instance.environment(Map<String, String> environment) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getEnvironment()environment(IResolvable environment) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getEnvironment()maxConcurrentTransforms(Number maxConcurrentTransforms) maxPayloadInMb(Number maxPayloadInMb) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getMaxPayloadInMb()transformInput(IResolvable transformInput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformInput()transformInput(CfnModelPackage.TransformInputProperty transformInput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformInput()transformOutput(IResolvable transformOutput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformOutput()transformOutput(CfnModelPackage.TransformOutputProperty transformOutput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformOutput()transformResources(IResolvable transformResources) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformResources()transformResources(CfnModelPackage.TransformResourcesProperty transformResources) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformResources()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transformInput
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformInput(IResolvable transformInput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformInput()- Parameters:
transformInput- A description of the input source and the way the transform job consumes it. This parameter is required.- Returns:
this
-
transformInput
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformInput(CfnModelPackage.TransformInputProperty transformInput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformInput()- Parameters:
transformInput- A description of the input source and the way the transform job consumes it. This parameter is required.- Returns:
this
-
transformOutput
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformOutput(IResolvable transformOutput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformOutput()- Parameters:
transformOutput- Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job. This parameter is required.- Returns:
this
-
transformOutput
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformOutput(CfnModelPackage.TransformOutputProperty transformOutput) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformOutput()- Parameters:
transformOutput- Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job. This parameter is required.- Returns:
this
-
transformResources
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformResources(IResolvable transformResources) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformResources()- Parameters:
transformResources- Identifies the ML compute instances for the transform job. This parameter is required.- Returns:
this
-
transformResources
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder transformResources(CfnModelPackage.TransformResourcesProperty transformResources) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getTransformResources()- Parameters:
transformResources- Identifies the ML compute instances for the transform job. This parameter is required.- Returns:
this
-
batchStrategy
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder batchStrategy(String batchStrategy) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getBatchStrategy()- Parameters:
batchStrategy- A string that determines the number of records included in a single mini-batch.SingleRecordmeans only one record is used per mini-batch.MultiRecordmeans a mini-batch is set to contain as many records that can fit within theMaxPayloadInMBlimit.- Returns:
this
-
environment
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder environment(IResolvable environment) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.- Returns:
this
-
environment
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder environment(Map<String, String> environment) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.- Returns:
this
-
maxConcurrentTransforms
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder maxConcurrentTransforms(Number maxConcurrentTransforms) - Parameters:
maxConcurrentTransforms- The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.- Returns:
this
-
maxPayloadInMb
@Stability(Stable) public CfnModelPackage.TransformJobDefinitionProperty.Builder maxPayloadInMb(Number maxPayloadInMb) Sets the value ofCfnModelPackage.TransformJobDefinitionProperty.getMaxPayloadInMb()- Parameters:
maxPayloadInMb- The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackage.TransformJobDefinitionProperty>- Returns:
- a new instance of
CfnModelPackage.TransformJobDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-