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