Class CfnScalingPlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.autoscalingplans.CfnScalingPlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPlanProps>
- Enclosing interface:
CfnScalingPlanProps
@Stability(Stable)
public static final class CfnScalingPlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPlanProps>
A builder for
CfnScalingPlanProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationSource
(IResolvable applicationSource) Sets the value ofCfnScalingPlanProps.getApplicationSource()
applicationSource
(CfnScalingPlan.ApplicationSourceProperty applicationSource) Sets the value ofCfnScalingPlanProps.getApplicationSource()
build()
Builds the configured instance.scalingInstructions
(List<? extends Object> scalingInstructions) Sets the value ofCfnScalingPlanProps.getScalingInstructions()
scalingInstructions
(IResolvable scalingInstructions) Sets the value ofCfnScalingPlanProps.getScalingInstructions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationSource
@Stability(Stable) public CfnScalingPlanProps.Builder applicationSource(IResolvable applicationSource) Sets the value ofCfnScalingPlanProps.getApplicationSource()
- Parameters:
applicationSource
- A CloudFormation stack or a set of tags. This parameter is required. You can create one scaling plan per application source. TheApplicationSource
property must be present to ensure interoperability with the AWS Auto Scaling console.- Returns:
this
-
applicationSource
@Stability(Stable) public CfnScalingPlanProps.Builder applicationSource(CfnScalingPlan.ApplicationSourceProperty applicationSource) Sets the value ofCfnScalingPlanProps.getApplicationSource()
- Parameters:
applicationSource
- A CloudFormation stack or a set of tags. This parameter is required. You can create one scaling plan per application source. TheApplicationSource
property must be present to ensure interoperability with the AWS Auto Scaling console.- Returns:
this
-
scalingInstructions
@Stability(Stable) public CfnScalingPlanProps.Builder scalingInstructions(IResolvable scalingInstructions) Sets the value ofCfnScalingPlanProps.getScalingInstructions()
- Parameters:
scalingInstructions
- The scaling instructions. This parameter is required.- Returns:
this
-
scalingInstructions
@Stability(Stable) public CfnScalingPlanProps.Builder scalingInstructions(List<? extends Object> scalingInstructions) Sets the value ofCfnScalingPlanProps.getScalingInstructions()
- Parameters:
scalingInstructions
- The scaling instructions. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScalingPlanProps>
- Returns:
- a new instance of
CfnScalingPlanProps
- Throws:
NullPointerException
- if any required attribute was not provided
-