Interface InferenceSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InferenceSpecification.Builder,InferenceSpecification>
,SdkBuilder<InferenceSpecification.Builder,InferenceSpecification>
,SdkPojo
- Enclosing class:
- InferenceSpecification
public static interface InferenceSpecification.Builder extends SdkPojo, CopyableBuilder<InferenceSpecification.Builder,InferenceSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InferenceSpecification.Builder
containers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.InferenceSpecification.Builder
containers(Consumer<ModelPackageContainerDefinition.Builder>... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.InferenceSpecification.Builder
containers(ModelPackageContainerDefinition... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.InferenceSpecification.Builder
supportedContentTypes(String... supportedContentTypes)
The supported MIME types for the input data.InferenceSpecification.Builder
supportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.InferenceSpecification.Builder
supportedRealtimeInferenceInstanceTypes(Collection<ProductionVariantInstanceType> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.InferenceSpecification.Builder
supportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.InferenceSpecification.Builder
supportedRealtimeInferenceInstanceTypesWithStrings(String... supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.InferenceSpecification.Builder
supportedRealtimeInferenceInstanceTypesWithStrings(Collection<String> supportedRealtimeInferenceInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.InferenceSpecification.Builder
supportedResponseMIMETypes(String... supportedResponseMIMETypes)
The supported MIME types for the output data.InferenceSpecification.Builder
supportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.InferenceSpecification.Builder
supportedTransformInstanceTypes(Collection<TransformInstanceType> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.InferenceSpecification.Builder
supportedTransformInstanceTypes(TransformInstanceType... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.InferenceSpecification.Builder
supportedTransformInstanceTypesWithStrings(String... supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.InferenceSpecification.Builder
supportedTransformInstanceTypesWithStrings(Collection<String> supportedTransformInstanceTypes)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
containers
InferenceSpecification.Builder containers(Collection<ModelPackageContainerDefinition> containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
- Parameters:
containers
- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
InferenceSpecification.Builder containers(ModelPackageContainerDefinition... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
- Parameters:
containers
- The Amazon ECR registry path of the Docker image that contains the inference code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
InferenceSpecification.Builder containers(Consumer<ModelPackageContainerDefinition.Builder>... containers)
The Amazon ECR registry path of the Docker image that contains the inference code.
This is a convenience method that creates an instance of theModelPackageContainerDefinition.Builder
avoiding the need to create one manually viaModelPackageContainerDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#containers(List
.) - Parameters:
containers
- a consumer that will call methods onModelPackageContainerDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#containers(java.util.Collection
)
-
supportedTransformInstanceTypesWithStrings
InferenceSpecification.Builder supportedTransformInstanceTypesWithStrings(Collection<String> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTransformInstanceTypesWithStrings
InferenceSpecification.Builder supportedTransformInstanceTypesWithStrings(String... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTransformInstanceTypes
InferenceSpecification.Builder supportedTransformInstanceTypes(Collection<TransformInstanceType> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTransformInstanceTypes
InferenceSpecification.Builder supportedTransformInstanceTypes(TransformInstanceType... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedRealtimeInferenceInstanceTypesWithStrings
InferenceSpecification.Builder supportedRealtimeInferenceInstanceTypesWithStrings(Collection<String> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedRealtimeInferenceInstanceTypesWithStrings
InferenceSpecification.Builder supportedRealtimeInferenceInstanceTypesWithStrings(String... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedRealtimeInferenceInstanceTypes
InferenceSpecification.Builder supportedRealtimeInferenceInstanceTypes(Collection<ProductionVariantInstanceType> 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedRealtimeInferenceInstanceTypes
InferenceSpecification.Builder supportedRealtimeInferenceInstanceTypes(ProductionVariantInstanceType... 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
supportedContentTypes
InferenceSpecification.Builder supportedContentTypes(Collection<String> supportedContentTypes)
The supported MIME types for the input data.
- Parameters:
supportedContentTypes
- The supported MIME types for the input data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedContentTypes
InferenceSpecification.Builder supportedContentTypes(String... supportedContentTypes)
The supported MIME types for the input data.
- Parameters:
supportedContentTypes
- The supported MIME types for the input data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedResponseMIMETypes
InferenceSpecification.Builder supportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.
- Parameters:
supportedResponseMIMETypes
- The supported MIME types for the output data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedResponseMIMETypes
InferenceSpecification.Builder supportedResponseMIMETypes(String... supportedResponseMIMETypes)
The supported MIME types for the output data.
- Parameters:
supportedResponseMIMETypes
- The supported MIME types for the output data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-