Class CfnTransformJob.TransformResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnTransformJob.TransformResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformJob.TransformResourcesProperty>
- Enclosing interface:
CfnTransformJob.TransformResourcesProperty
@Stability(Stable)
public static final class CfnTransformJob.TransformResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformJob.TransformResourcesProperty>
A builder for
CfnTransformJob.TransformResourcesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceCount(Number instanceCount) Sets the value ofCfnTransformJob.TransformResourcesProperty.getInstanceCount()instanceType(String instanceType) Sets the value ofCfnTransformJob.TransformResourcesProperty.getInstanceType()volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnTransformJob.TransformResourcesProperty.getVolumeKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
@Stability(Stable) public CfnTransformJob.TransformResourcesProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnTransformJob.TransformResourcesProperty.getInstanceCount()- Parameters:
instanceCount- The number of ML compute instances to use in the transform job. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public CfnTransformJob.TransformResourcesProperty.Builder instanceType(String instanceType) Sets the value ofCfnTransformJob.TransformResourcesProperty.getInstanceType()- Parameters:
instanceType- The ML compute instance type for the transform job. This parameter is required.- Returns:
this
-
volumeKmsKeyId
@Stability(Stable) public CfnTransformJob.TransformResourcesProperty.Builder volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnTransformJob.TransformResourcesProperty.getVolumeKmsKeyId()- Parameters:
volumeKmsKeyId- The AWS KMS key that Amazon SageMaker uses to encrypt model data on the storage volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformJob.TransformResourcesProperty>- Returns:
- a new instance of
CfnTransformJob.TransformResourcesProperty - Throws:
NullPointerException- if any required attribute was not provided
-