Class CfnTransformJobPropsMixin.TransformResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnTransformJobPropsMixin.TransformResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformJobPropsMixin.TransformResourcesProperty>
- Enclosing interface:
CfnTransformJobPropsMixin.TransformResourcesProperty
@Stability(Stable)
public static final class CfnTransformJobPropsMixin.TransformResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformJobPropsMixin.TransformResourcesProperty>
A builder for
CfnTransformJobPropsMixin.TransformResourcesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceCount(Number instanceCount) Sets the value ofCfnTransformJobPropsMixin.TransformResourcesProperty.getInstanceCount()instanceType(String instanceType) Sets the value ofCfnTransformJobPropsMixin.TransformResourcesProperty.getInstanceType()volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnTransformJobPropsMixin.TransformResourcesProperty.getVolumeKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
@Stability(Stable) public CfnTransformJobPropsMixin.TransformResourcesProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnTransformJobPropsMixin.TransformResourcesProperty.getInstanceCount()- Parameters:
instanceCount- The number of ML compute instances to use in the transform job.- Returns:
this
-
instanceType
@Stability(Stable) public CfnTransformJobPropsMixin.TransformResourcesProperty.Builder instanceType(String instanceType) Sets the value ofCfnTransformJobPropsMixin.TransformResourcesProperty.getInstanceType()- Parameters:
instanceType- The ML compute instance type for the transform job.- Returns:
this
-
volumeKmsKeyId
@Stability(Stable) public CfnTransformJobPropsMixin.TransformResourcesProperty.Builder volumeKmsKeyId(String volumeKmsKeyId) Sets the value ofCfnTransformJobPropsMixin.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<CfnTransformJobPropsMixin.TransformResourcesProperty>- Returns:
- a new instance of
CfnTransformJobPropsMixin.TransformResourcesProperty - Throws:
NullPointerException- if any required attribute was not provided
-