Class CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ServerlessConfigProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ServerlessConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ServerlessConfigProperty>
A builder for
CfnEndpointConfigPropsMixin.ServerlessConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxConcurrency(Number maxConcurrency) Sets the value ofCfnEndpointConfigPropsMixin.ServerlessConfigProperty.getMaxConcurrency()memorySizeInMb(Number memorySizeInMb) Sets the value ofCfnEndpointConfigPropsMixin.ServerlessConfigProperty.getMemorySizeInMb()provisionedConcurrency(Number provisionedConcurrency)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxConcurrency
@Stability(Stable) public CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder maxConcurrency(Number maxConcurrency) Sets the value ofCfnEndpointConfigPropsMixin.ServerlessConfigProperty.getMaxConcurrency()- Parameters:
maxConcurrency- The maximum number of concurrent invocations your serverless endpoint can process.- Returns:
this
-
memorySizeInMb
@Stability(Stable) public CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder memorySizeInMb(Number memorySizeInMb) Sets the value ofCfnEndpointConfigPropsMixin.ServerlessConfigProperty.getMemorySizeInMb()- Parameters:
memorySizeInMb- The memory size of your serverless endpoint. 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 CfnEndpointConfigPropsMixin.ServerlessConfigProperty.Builder provisionedConcurrency(Number provisionedConcurrency) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ServerlessConfigProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ServerlessConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-