Class CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.InstancePoolProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.InstancePoolProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.InstancePoolProperty>
A builder for
CfnEndpointConfigPropsMixin.InstancePoolProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceType(String instanceType) Sets the value ofCfnEndpointConfigPropsMixin.InstancePoolProperty.getInstanceType()modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfigPropsMixin.InstancePoolProperty.getModelNameOverride()Sets the value ofCfnEndpointConfigPropsMixin.InstancePoolProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder instanceType(String instanceType) Sets the value ofCfnEndpointConfigPropsMixin.InstancePoolProperty.getInstanceType()- Parameters:
instanceType- The ML compute instance type for the instance pool.- Returns:
this
-
modelNameOverride
@Stability(Stable) public CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfigPropsMixin.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
-
priority
@Stability(Stable) public CfnEndpointConfigPropsMixin.InstancePoolProperty.Builder priority(Number priority) Sets the value ofCfnEndpointConfigPropsMixin.InstancePoolProperty.getPriority()- Parameters:
priority- The priority for the instance pool. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.InstancePoolProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.InstancePoolProperty - Throws:
NullPointerException- if any required attribute was not provided
-