public static final class BaseScalableAttributeProps.Builder
extends java.lang.Object
BaseScalableAttributeProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BaseScalableAttributeProps |
build()
Builds the configured instance.
|
BaseScalableAttributeProps.Builder |
dimension(java.lang.String dimension)
Sets the value of
BaseScalableAttributeProps.getDimension() |
BaseScalableAttributeProps.Builder |
maxCapacity(java.lang.Number maxCapacity)
Sets the value of
EnableScalingProps.getMaxCapacity() |
BaseScalableAttributeProps.Builder |
minCapacity(java.lang.Number minCapacity)
Sets the value of
EnableScalingProps.getMinCapacity() |
BaseScalableAttributeProps.Builder |
resourceId(java.lang.String resourceId)
Sets the value of
BaseScalableAttributeProps.getResourceId() |
BaseScalableAttributeProps.Builder |
role(IRole role)
Sets the value of
BaseScalableAttributeProps.getRole() |
BaseScalableAttributeProps.Builder |
serviceNamespace(ServiceNamespace serviceNamespace)
Sets the value of
BaseScalableAttributeProps.getServiceNamespace() |
public BaseScalableAttributeProps.Builder dimension(java.lang.String dimension)
BaseScalableAttributeProps.getDimension()
dimension
- Scalable dimension of the attribute. This parameter is required.this
public BaseScalableAttributeProps.Builder resourceId(java.lang.String resourceId)
BaseScalableAttributeProps.getResourceId()
resourceId
- Resource ID of the attribute. This parameter is required.this
public BaseScalableAttributeProps.Builder role(IRole role)
BaseScalableAttributeProps.getRole()
role
- Role to use for scaling. This parameter is required.this
public BaseScalableAttributeProps.Builder serviceNamespace(ServiceNamespace serviceNamespace)
BaseScalableAttributeProps.getServiceNamespace()
serviceNamespace
- Service namespace of the scalable attribute. This parameter is required.this
public BaseScalableAttributeProps.Builder maxCapacity(java.lang.Number maxCapacity)
EnableScalingProps.getMaxCapacity()
maxCapacity
- Maximum capacity to scale to. This parameter is required.this
public BaseScalableAttributeProps.Builder minCapacity(java.lang.Number minCapacity)
EnableScalingProps.getMinCapacity()
minCapacity
- Minimum capacity to scale to.this
public BaseScalableAttributeProps build()
BaseScalableAttributeProps
java.lang.NullPointerException
- if any required attribute was not provided