Class CfnEndpointConfig.InstancePoolProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.InstancePoolProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolProperty>
- Enclosing interface:
CfnEndpointConfig.InstancePoolProperty
@Stability(Stable)
public static final class CfnEndpointConfig.InstancePoolProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolProperty>
A builder for
CfnEndpointConfig.InstancePoolProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceType(String instanceType) Sets the value ofCfnEndpointConfig.InstancePoolProperty.getInstanceType()modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfig.InstancePoolProperty.getModelNameOverride()Sets the value ofCfnEndpointConfig.InstancePoolProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnEndpointConfig.InstancePoolProperty.Builder instanceType(String instanceType) Sets the value ofCfnEndpointConfig.InstancePoolProperty.getInstanceType()- Parameters:
instanceType- The ML compute instance type for the instance pool. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnEndpointConfig.InstancePoolProperty.getPriority()- Parameters:
priority- The priority for the instance pool. This parameter is required. SageMaker attempts to provision instances in order of priority, starting with the lowest value. If instances for a higher-priority pool are unavailable, SageMaker attempts to provision from the next pool. Valid values: 1 to 5, where 1 is the highest priority.- Returns:
this
-
modelNameOverride
@Stability(Stable) public CfnEndpointConfig.InstancePoolProperty.Builder modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfig.InstancePoolProperty.getModelNameOverride()- Parameters:
modelNameOverride- The name of a SageMaker model to use for this instance pool instead of the model specified for the production variant. Use this to deploy a different model optimized for the instance type in this pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolProperty>- Returns:
- a new instance of
CfnEndpointConfig.InstancePoolProperty - Throws:
NullPointerException- if any required attribute was not provided
-