Class CfnEndpointConfig.PrefixAwareRoutingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.PrefixAwareRoutingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.PrefixAwareRoutingConfigProperty>
- Enclosing interface:
CfnEndpointConfig.PrefixAwareRoutingConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.PrefixAwareRoutingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.PrefixAwareRoutingConfigProperty>
A builder for
CfnEndpointConfig.PrefixAwareRoutingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.concurrencyThreshold(Number concurrencyThreshold) prefixLength(Number prefixLength) Sets the value ofCfnEndpointConfig.PrefixAwareRoutingConfigProperty.getPrefixLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
concurrencyThreshold
@Stability(Stable) public CfnEndpointConfig.PrefixAwareRoutingConfigProperty.Builder concurrencyThreshold(Number concurrencyThreshold) - Parameters:
concurrencyThreshold- The maximum number of in-flight requests on the target instance before the endpoint routes to another instance. Required when RoutingStrategy is PREFIX_AWARE. Valid values are 1 to 1024.- Returns:
this
-
prefixLength
@Stability(Stable) public CfnEndpointConfig.PrefixAwareRoutingConfigProperty.Builder prefixLength(Number prefixLength) Sets the value ofCfnEndpointConfig.PrefixAwareRoutingConfigProperty.getPrefixLength()- Parameters:
prefixLength- The maximum length of the prefix used for routing decisions. Required when RoutingStrategy is PREFIX_AWARE. Valid values are 1024 to 65536.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.PrefixAwareRoutingConfigProperty>- Returns:
- a new instance of
CfnEndpointConfig.PrefixAwareRoutingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-