Class CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackagePropsMixin.InferenceSpecificationProperty>
- Enclosing interface:
CfnModelPackagePropsMixin.InferenceSpecificationProperty
@Stability(Stable)
public static final class CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackagePropsMixin.InferenceSpecificationProperty>
A builder for
CfnModelPackagePropsMixin.InferenceSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containers(List<? extends Object> containers) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getContainers()containers(IResolvable containers) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getContainers()supportedContentTypes(List<String> supportedContentTypes) supportedRealtimeInferenceInstanceTypes(List<String> supportedRealtimeInferenceInstanceTypes) supportedResponseMimeTypes(List<String> supportedResponseMimeTypes) supportedTransformInstanceTypes(List<String> supportedTransformInstanceTypes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containers
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder containers(IResolvable containers) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getContainers()- Parameters:
containers- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
this
-
containers
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder containers(List<? extends Object> containers) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getContainers()- Parameters:
containers- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
this
-
supportedContentTypes
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder supportedContentTypes(List<String> supportedContentTypes) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getSupportedContentTypes()- Parameters:
supportedContentTypes- The supported MIME types for the input data.- Returns:
this
-
supportedRealtimeInferenceInstanceTypes
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder supportedRealtimeInferenceInstanceTypes(List<String> supportedRealtimeInferenceInstanceTypes) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getSupportedRealtimeInferenceInstanceTypes()- Parameters:
supportedRealtimeInferenceInstanceTypes- A list of the instance types that are used to generate inferences in real-time. This parameter is required for unversioned models, and optional for versioned models.- Returns:
this
-
supportedResponseMimeTypes
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder supportedResponseMimeTypes(List<String> supportedResponseMimeTypes) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getSupportedResponseMimeTypes()- Parameters:
supportedResponseMimeTypes- The supported MIME types for the output data.- Returns:
this
-
supportedTransformInstanceTypes
@Stability(Stable) public CfnModelPackagePropsMixin.InferenceSpecificationProperty.Builder supportedTransformInstanceTypes(List<String> supportedTransformInstanceTypes) Sets the value ofCfnModelPackagePropsMixin.InferenceSpecificationProperty.getSupportedTransformInstanceTypes()- Parameters:
supportedTransformInstanceTypes- A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. This parameter is required for unversioned models, and optional for versioned models.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackagePropsMixin.InferenceSpecificationProperty>- Returns:
- a new instance of
CfnModelPackagePropsMixin.InferenceSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-