Interface RecommendationJobContainerConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<RecommendationJobContainerConfig.Builder,RecommendationJobContainerConfig>
,SdkBuilder<RecommendationJobContainerConfig.Builder,RecommendationJobContainerConfig>
,SdkPojo
- Enclosing class:
- RecommendationJobContainerConfig
public static interface RecommendationJobContainerConfig.Builder extends SdkPojo, CopyableBuilder<RecommendationJobContainerConfig.Builder,RecommendationJobContainerConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RecommendationJobContainerConfig.Builder
dataInputConfig(String dataInputConfig)
Specifies the name and shape of the expected data inputs for your trained model with a JSON dictionary form.RecommendationJobContainerConfig.Builder
domain(String domain)
The machine learning domain of the model and its components.RecommendationJobContainerConfig.Builder
framework(String framework)
The machine learning framework of the container image.RecommendationJobContainerConfig.Builder
frameworkVersion(String frameworkVersion)
The framework version of the container image.RecommendationJobContainerConfig.Builder
nearestModelName(String nearestModelName)
The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that matches your model.default RecommendationJobContainerConfig.Builder
payloadConfig(Consumer<RecommendationJobPayloadConfig.Builder> payloadConfig)
Specifies theSamplePayloadUrl
and all other sample payload-related fields.RecommendationJobContainerConfig.Builder
payloadConfig(RecommendationJobPayloadConfig payloadConfig)
Specifies theSamplePayloadUrl
and all other sample payload-related fields.RecommendationJobContainerConfig.Builder
supportedEndpointType(String supportedEndpointType)
The endpoint type to receive recommendations for.RecommendationJobContainerConfig.Builder
supportedEndpointType(RecommendationJobSupportedEndpointType supportedEndpointType)
The endpoint type to receive recommendations for.RecommendationJobContainerConfig.Builder
supportedInstanceTypes(String... supportedInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.RecommendationJobContainerConfig.Builder
supportedInstanceTypes(Collection<String> supportedInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.RecommendationJobContainerConfig.Builder
supportedResponseMIMETypes(String... supportedResponseMIMETypes)
The supported MIME types for the output data.RecommendationJobContainerConfig.Builder
supportedResponseMIMETypes(Collection<String> supportedResponseMIMETypes)
The supported MIME types for the output data.RecommendationJobContainerConfig.Builder
task(String task)
The machine learning task that the model accomplishes.-
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
-
domain
RecommendationJobContainerConfig.Builder domain(String domain)
The machine learning domain of the model and its components.
Valid Values:
COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING
- Parameters:
domain
- The machine learning domain of the model and its components.Valid Values:
COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
RecommendationJobContainerConfig.Builder task(String task)
The machine learning task that the model accomplishes.
Valid Values:
IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER
- Parameters:
task
- The machine learning task that the model accomplishes.Valid Values:
IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
framework
RecommendationJobContainerConfig.Builder framework(String framework)
The machine learning framework of the container image.
Valid Values:
TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN
- Parameters:
framework
- The machine learning framework of the container image.Valid Values:
TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
frameworkVersion
RecommendationJobContainerConfig.Builder frameworkVersion(String frameworkVersion)
The framework version of the container image.
- Parameters:
frameworkVersion
- The framework version of the container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payloadConfig
RecommendationJobContainerConfig.Builder payloadConfig(RecommendationJobPayloadConfig payloadConfig)
Specifies the
SamplePayloadUrl
and all other sample payload-related fields.- Parameters:
payloadConfig
- Specifies theSamplePayloadUrl
and all other sample payload-related fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payloadConfig
default RecommendationJobContainerConfig.Builder payloadConfig(Consumer<RecommendationJobPayloadConfig.Builder> payloadConfig)
Specifies the
This is a convenience method that creates an instance of theSamplePayloadUrl
and all other sample payload-related fields.RecommendationJobPayloadConfig.Builder
avoiding the need to create one manually viaRecommendationJobPayloadConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topayloadConfig(RecommendationJobPayloadConfig)
.- Parameters:
payloadConfig
- a consumer that will call methods onRecommendationJobPayloadConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
payloadConfig(RecommendationJobPayloadConfig)
-
nearestModelName
RecommendationJobContainerConfig.Builder nearestModelName(String nearestModelName)
The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that matches your model.
Valid Values:
efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased | xceptionV1-keras | resnet50 | retinanet
- Parameters:
nearestModelName
- The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that matches your model.Valid Values:
efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased | xceptionV1-keras | resnet50 | retinanet
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedInstanceTypes
RecommendationJobContainerConfig.Builder supportedInstanceTypes(Collection<String> supportedInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
- Parameters:
supportedInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedInstanceTypes
RecommendationJobContainerConfig.Builder supportedInstanceTypes(String... supportedInstanceTypes)
A list of the instance types that are used to generate inferences in real-time.
- Parameters:
supportedInstanceTypes
- A list of the instance types that are used to generate inferences in real-time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedEndpointType
RecommendationJobContainerConfig.Builder supportedEndpointType(String supportedEndpointType)
The endpoint type to receive recommendations for. By default this is null, and the results of the inference recommendation job return a combined list of both real-time and serverless benchmarks. By specifying a value for this field, you can receive a longer list of benchmarks for the desired endpoint type.
- Parameters:
supportedEndpointType
- The endpoint type to receive recommendations for. By default this is null, and the results of the inference recommendation job return a combined list of both real-time and serverless benchmarks. By specifying a value for this field, you can receive a longer list of benchmarks for the desired endpoint type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecommendationJobSupportedEndpointType
,RecommendationJobSupportedEndpointType
-
supportedEndpointType
RecommendationJobContainerConfig.Builder supportedEndpointType(RecommendationJobSupportedEndpointType supportedEndpointType)
The endpoint type to receive recommendations for. By default this is null, and the results of the inference recommendation job return a combined list of both real-time and serverless benchmarks. By specifying a value for this field, you can receive a longer list of benchmarks for the desired endpoint type.
- Parameters:
supportedEndpointType
- The endpoint type to receive recommendations for. By default this is null, and the results of the inference recommendation job return a combined list of both real-time and serverless benchmarks. By specifying a value for this field, you can receive a longer list of benchmarks for the desired endpoint type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecommendationJobSupportedEndpointType
,RecommendationJobSupportedEndpointType
-
dataInputConfig
RecommendationJobContainerConfig.Builder dataInputConfig(String dataInputConfig)
Specifies the name and shape of the expected data inputs for your trained model with a JSON dictionary form. This field is used for optimizing your model using SageMaker Neo. For more information, see DataInputConfig.
- Parameters:
dataInputConfig
- Specifies the name and shape of the expected data inputs for your trained model with a JSON dictionary form. This field is used for optimizing your model using SageMaker Neo. For more information, see DataInputConfig.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedResponseMIMETypes
RecommendationJobContainerConfig.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
RecommendationJobContainerConfig.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.
-
-