Class CfnEndpointConfig.InstancePoolsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.InstancePoolsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolsProperty>
- Enclosing interface:
CfnEndpointConfig.InstancePoolsProperty
@Stability(Stable)
public static final class CfnEndpointConfig.InstancePoolsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolsProperty>
A builder for
CfnEndpointConfig.InstancePoolsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceType(String instanceType) Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getInstanceType()modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getModelNameOverride()Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnEndpointConfig.InstancePoolsProperty.Builder instanceType(String instanceType) Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getInstanceType()- Parameters:
instanceType- the value to be set. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getPriority()- Parameters:
priority- the value to be set. This parameter is required.- Returns:
this
-
modelNameOverride
@Stability(Stable) public CfnEndpointConfig.InstancePoolsProperty.Builder modelNameOverride(String modelNameOverride) Sets the value ofCfnEndpointConfig.InstancePoolsProperty.getModelNameOverride()- Parameters:
modelNameOverride- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.InstancePoolsProperty>- Returns:
- a new instance of
CfnEndpointConfig.InstancePoolsProperty - Throws:
NullPointerException- if any required attribute was not provided
-