Class CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty>
- Enclosing interface:
CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty
@Stability(Stable)
public static final class CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containers(List<? extends Object> containers) containers(IResolvable containers) description(String description) 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.AdditionalInferenceSpecificationDefinitionProperty.Builder containers(IResolvable containers) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getContainers()- Parameters:
containers- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
this
-
containers
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder containers(List<? extends Object> containers) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getContainers()- Parameters:
containers- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
this
-
description
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder description(String description) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getDescription()- Parameters:
description- A description of the additional Inference specification.- Returns:
this
-
name
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder name(String name) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getName()- Parameters:
name- A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.- Returns:
this
-
supportedContentTypes
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder supportedContentTypes(List<String> supportedContentTypes) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getSupportedContentTypes()- Parameters:
supportedContentTypes- The supported MIME types for the input data.- Returns:
this
-
supportedRealtimeInferenceInstanceTypes
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder supportedRealtimeInferenceInstanceTypes(List<String> supportedRealtimeInferenceInstanceTypes) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getSupportedRealtimeInferenceInstanceTypes()- Parameters:
supportedRealtimeInferenceInstanceTypes- A list of the instance types that are used to generate inferences in real-time.- Returns:
this
-
supportedResponseMimeTypes
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder supportedResponseMimeTypes(List<String> supportedResponseMimeTypes) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.getSupportedResponseMimeTypes()- Parameters:
supportedResponseMimeTypes- The supported MIME types for the output data.- Returns:
this
-
supportedTransformInstanceTypes
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder supportedTransformInstanceTypes(List<String> supportedTransformInstanceTypes) Sets the value ofCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.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.- Returns:
this
-
build
@Stability(Stable) public CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty>- Returns:
- a new instance of
CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-