Class ScalableInstanceCount.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.alpha.ScalableInstanceCount.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalableInstanceCount>
- Enclosing class:
ScalableInstanceCount
@Stability(Experimental)
public static final class ScalableInstanceCount.Builder
extends Object
implements software.amazon.jsii.Builder<ScalableInstanceCount>
(experimental) A fluent builder for
ScalableInstanceCount
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Scalable dimension of the attribute.maxCapacity
(Number maxCapacity) Maximum capacity to scale to.minCapacity
(Number minCapacity) Minimum capacity to scale to.resourceId
(String resourceId) Resource ID of the attribute.Role to use for scaling.serviceNamespace
(ServiceNamespace serviceNamespace) Service namespace of the scalable attribute.
-
Method Details
-
create
@Stability(Experimental) public static ScalableInstanceCount.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ScalableInstanceCount.Builder
.
-
maxCapacity
Maximum capacity to scale to.- Parameters:
maxCapacity
- Maximum capacity to scale to. This parameter is required.- Returns:
this
-
minCapacity
Minimum capacity to scale to.Default: 1
- Parameters:
minCapacity
- Minimum capacity to scale to. This parameter is required.- Returns:
this
-
dimension
Scalable dimension of the attribute.- Parameters:
dimension
- Scalable dimension of the attribute. This parameter is required.- Returns:
this
-
resourceId
Resource ID of the attribute.- Parameters:
resourceId
- Resource ID of the attribute. This parameter is required.- Returns:
this
-
role
Role to use for scaling.- Parameters:
role
- Role to use for scaling. This parameter is required.- Returns:
this
-
serviceNamespace
@Stability(Stable) public ScalableInstanceCount.Builder serviceNamespace(ServiceNamespace serviceNamespace) Service namespace of the scalable attribute.- Parameters:
serviceNamespace
- Service namespace of the scalable attribute. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScalableInstanceCount>
- Returns:
- a newly built instance of
ScalableInstanceCount
.
-