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