Class ServerlessProductionVariantProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.alpha.ServerlessProductionVariantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServerlessProductionVariantProps>
- Enclosing interface:
ServerlessProductionVariantProps
@Stability(Experimental)
public static final class ServerlessProductionVariantProps.Builder
extends Object
implements software.amazon.jsii.Builder<ServerlessProductionVariantProps>
A builder for
ServerlessProductionVariantProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.initialVariantWeight(Number initialVariantWeight) Sets the value ofServerlessProductionVariantProps.getInitialVariantWeight()maxConcurrency(Number maxConcurrency) Sets the value ofServerlessProductionVariantProps.getMaxConcurrency()memorySizeInMb(Number memorySizeInMb) Sets the value ofinvalid reference
ServerlessProductionVariantProps#getMemorySizeInMbSets the value ofServerlessProductionVariantProps.getModel()provisionedConcurrency(Number provisionedConcurrency) Sets the value ofServerlessProductionVariantProps.getProvisionedConcurrency()variantName(String variantName) Sets the value ofServerlessProductionVariantProps.getVariantName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxConcurrency
@Stability(Experimental) public ServerlessProductionVariantProps.Builder maxConcurrency(Number maxConcurrency) Sets the value ofServerlessProductionVariantProps.getMaxConcurrency()- Parameters:
maxConcurrency- The maximum number of concurrent invocations your serverless endpoint can process. This parameter is required. Valid range: 1-200- Returns:
this
-
memorySizeInMb
@Stability(Experimental) public ServerlessProductionVariantProps.Builder memorySizeInMb(Number memorySizeInMb) Sets the value ofinvalid reference
ServerlessProductionVariantProps#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
-
model
Sets the value ofServerlessProductionVariantProps.getModel()- Parameters:
model- The model to host. This parameter is required.- Returns:
this
-
variantName
@Stability(Experimental) public ServerlessProductionVariantProps.Builder variantName(String variantName) Sets the value ofServerlessProductionVariantProps.getVariantName()- Parameters:
variantName- Name of the production variant. This parameter is required.- Returns:
this
-
initialVariantWeight
@Stability(Experimental) public ServerlessProductionVariantProps.Builder initialVariantWeight(Number initialVariantWeight) Sets the value ofServerlessProductionVariantProps.getInitialVariantWeight()- Parameters:
initialVariantWeight- Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the variant weight to the sum of all variant weight values across all production variants.- Returns:
this
-
provisionedConcurrency
@Stability(Experimental) public ServerlessProductionVariantProps.Builder provisionedConcurrency(Number provisionedConcurrency) Sets the value ofServerlessProductionVariantProps.getProvisionedConcurrency()- Parameters:
provisionedConcurrency- The number of concurrent invocations that are provisioned and ready to respond to your endpoint. Valid range: 1-200, must be less than or equal to maxConcurrency.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServerlessProductionVariantProps>- Returns:
- a new instance of
ServerlessProductionVariantProps - Throws:
NullPointerException- if any required attribute was not provided
-