Class ScalableTargetAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.ScalableTargetAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalableTargetAttributes>
- Enclosing interface:
ScalableTargetAttributes
@Stability(Stable)
public static final class ScalableTargetAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ScalableTargetAttributes>
A builder for
ScalableTargetAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scalableDimension(String scalableDimension) Sets the value ofScalableTargetAttributes.getScalableDimension()scalableTargetId(String scalableTargetId) Sets the value ofScalableTargetAttributes.getScalableTargetId()serviceNamespace(String serviceNamespace) Sets the value ofScalableTargetAttributes.getServiceNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scalableDimension
@Stability(Stable) public ScalableTargetAttributes.Builder scalableDimension(String scalableDimension) Sets the value ofScalableTargetAttributes.getScalableDimension()- Parameters:
scalableDimension- The scalable dimension that's associated with the scalable target. This parameter is required.- Returns:
this
-
scalableTargetId
@Stability(Stable) public ScalableTargetAttributes.Builder scalableTargetId(String scalableTargetId) Sets the value ofScalableTargetAttributes.getScalableTargetId()- Parameters:
scalableTargetId- The scalable target ID. This parameter is required.- Returns:
this
-
serviceNamespace
@Stability(Stable) public ScalableTargetAttributes.Builder serviceNamespace(String serviceNamespace) Sets the value ofScalableTargetAttributes.getServiceNamespace()- Parameters:
serviceNamespace- The namespace of the AWS service that provides the resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScalableTargetAttributes>- Returns:
- a new instance of
ScalableTargetAttributes - Throws:
NullPointerException- if any required attribute was not provided
-