Class ScalableTargetReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.applicationautoscaling.ScalableTargetReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalableTargetReference>
- Enclosing interface:
ScalableTargetReference
@Stability(Stable)
public static final class ScalableTargetReference.Builder
extends Object
implements software.amazon.jsii.Builder<ScalableTargetReference>
A builder for
ScalableTargetReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceId(String resourceId) Sets the value ofScalableTargetReference.getResourceId()scalableDimension(String scalableDimension) Sets the value ofScalableTargetReference.getScalableDimension()serviceNamespace(String serviceNamespace) Sets the value ofScalableTargetReference.getServiceNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceId
Sets the value ofScalableTargetReference.getResourceId()- Parameters:
resourceId- The ResourceId of the ScalableTarget resource. This parameter is required.- Returns:
this
-
scalableDimension
@Stability(Stable) public ScalableTargetReference.Builder scalableDimension(String scalableDimension) Sets the value ofScalableTargetReference.getScalableDimension()- Parameters:
scalableDimension- The ScalableDimension of the ScalableTarget resource. This parameter is required.- Returns:
this
-
serviceNamespace
Sets the value ofScalableTargetReference.getServiceNamespace()- Parameters:
serviceNamespace- The ServiceNamespace of the ScalableTarget resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScalableTargetReference>- Returns:
- a new instance of
ScalableTargetReference - Throws:
NullPointerException- if any required attribute was not provided
-