Class ScalableTaskCountProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ScalableTaskCountProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalableTaskCountProps>
- Enclosing interface:
ScalableTaskCountProps
@Stability(Stable)
public static final class ScalableTaskCountProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScalableTaskCountProps>
A builder for
ScalableTaskCountProps
-
Constructor Summary
-
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 ScalableTaskCountProps.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:
build
in interfacesoftware.amazon.jsii.Builder<ScalableTaskCountProps>
- Returns:
- a new instance of
ScalableTaskCountProps
- Throws:
NullPointerException
- if any required attribute was not provided
-