Class ScalableInstanceCountProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.alpha.ScalableInstanceCountProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalableInstanceCountProps>
- Enclosing interface:
ScalableInstanceCountProps
@Stability(Experimental)
public static final class ScalableInstanceCountProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScalableInstanceCountProps>
A builder for
ScalableInstanceCountProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofBaseScalableAttributeProps.getDimension()maxCapacity(Number maxCapacity) Sets the value ofEnableScalingProps.getMaxCapacity()minCapacity(Number minCapacity) Sets the value ofEnableScalingProps.getMinCapacity()resourceId(String resourceId) Sets the value ofBaseScalableAttributeProps.getResourceId()Sets the value ofBaseScalableAttributeProps.getRole()serviceNamespace(ServiceNamespace serviceNamespace) Sets the value ofBaseScalableAttributeProps.getServiceNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimension
Sets the value ofBaseScalableAttributeProps.getDimension()- Parameters:
dimension- Scalable dimension of the attribute. This parameter is required.- Returns:
this
-
resourceId
Sets the value ofBaseScalableAttributeProps.getResourceId()- Parameters:
resourceId- Resource ID of the attribute. This parameter is required.- Returns:
this
-
role
Sets the value ofBaseScalableAttributeProps.getRole()- Parameters:
role- Role to use for scaling. This parameter is required.- Returns:
this
-
serviceNamespace
@Stability(Stable) public ScalableInstanceCountProps.Builder serviceNamespace(ServiceNamespace serviceNamespace) Sets the value ofBaseScalableAttributeProps.getServiceNamespace()- Parameters:
serviceNamespace- Service namespace of the scalable attribute. This parameter is required.- Returns:
this
-
maxCapacity
Sets the value ofEnableScalingProps.getMaxCapacity()- Parameters:
maxCapacity- Maximum capacity to scale to. This parameter is required.- Returns:
this
-
minCapacity
Sets the value ofEnableScalingProps.getMinCapacity()- Parameters:
minCapacity- Minimum capacity to scale to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScalableInstanceCountProps>- Returns:
- a new instance of
ScalableInstanceCountProps - Throws:
NullPointerException- if any required attribute was not provided
-