Class CfnEndpointConfig.ServerlessConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ServerlessConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.ServerlessConfigProperty>
- Enclosing interface:
CfnEndpointConfig.ServerlessConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.ServerlessConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.ServerlessConfigProperty>
A builder for
CfnEndpointConfig.ServerlessConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxConcurrency
(Number maxConcurrency) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getMaxConcurrency()
memorySizeInMb
(Number memorySizeInMb) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getMemorySizeInMb()
provisionedConcurrency
(Number provisionedConcurrency) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getProvisionedConcurrency()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxConcurrency
@Stability(Stable) public CfnEndpointConfig.ServerlessConfigProperty.Builder maxConcurrency(Number maxConcurrency) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getMaxConcurrency()
- Parameters:
maxConcurrency
- The maximum number of concurrent invocations your serverless endpoint can process. This parameter is required.- Returns:
this
-
memorySizeInMb
@Stability(Stable) public CfnEndpointConfig.ServerlessConfigProperty.Builder memorySizeInMb(Number memorySizeInMb) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getMemorySizeInMb()
- Parameters:
memorySizeInMb
- The memory size of your serverless endpoint. This parameter is required. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB.- Returns:
this
-
provisionedConcurrency
@Stability(Stable) public CfnEndpointConfig.ServerlessConfigProperty.Builder provisionedConcurrency(Number provisionedConcurrency) Sets the value ofCfnEndpointConfig.ServerlessConfigProperty.getProvisionedConcurrency()
- Parameters:
provisionedConcurrency
- The amount of provisioned concurrency to allocate for the serverless endpoint. Should be less than or equal toMaxConcurrency
.This field is not supported for serverless endpoint recommendations for Inference Recommender jobs. For more information about creating an Inference Recommender job, see CreateInferenceRecommendationsJobs .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.ServerlessConfigProperty>
- Returns:
- a new instance of
CfnEndpointConfig.ServerlessConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-