Interface CreateScalingPlanRequest.Builder
- All Superinterfaces:
AutoScalingPlansRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateScalingPlanRequest.Builder,
,CreateScalingPlanRequest> SdkBuilder<CreateScalingPlanRequest.Builder,
,CreateScalingPlanRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateScalingPlanRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateScalingPlanRequest.Builder
applicationSource
(Consumer<ApplicationSource.Builder> applicationSource) A CloudFormation stack or set of tags.applicationSource
(ApplicationSource applicationSource) A CloudFormation stack or set of tags.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.scalingInstructions
(Collection<ScalingInstruction> scalingInstructions) The scaling instructions.scalingInstructions
(Consumer<ScalingInstruction.Builder>... scalingInstructions) The scaling instructions.scalingInstructions
(ScalingInstruction... scalingInstructions) The scaling instructions.scalingPlanName
(String scalingPlanName) The name of the scaling plan.Methods inherited from interface software.amazon.awssdk.services.autoscalingplans.model.AutoScalingPlansRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
scalingPlanName
The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.
- Parameters:
scalingPlanName
- The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationSource
A CloudFormation stack or set of tags. You can create one scaling plan per application source.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
- Parameters:
applicationSource
- A CloudFormation stack or set of tags. You can create one scaling plan per application source.For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationSource
default CreateScalingPlanRequest.Builder applicationSource(Consumer<ApplicationSource.Builder> applicationSource) A CloudFormation stack or set of tags. You can create one scaling plan per application source.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
This is a convenience method that creates an instance of theApplicationSource.Builder
avoiding the need to create one manually viaApplicationSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapplicationSource(ApplicationSource)
.- Parameters:
applicationSource
- a consumer that will call methods onApplicationSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scalingInstructions
CreateScalingPlanRequest.Builder scalingInstructions(Collection<ScalingInstruction> scalingInstructions) The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
- Parameters:
scalingInstructions
- The scaling instructions.For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingInstructions
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
- Parameters:
scalingInstructions
- The scaling instructions.For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingInstructions
CreateScalingPlanRequest.Builder scalingInstructions(Consumer<ScalingInstruction.Builder>... scalingInstructions) The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
This is a convenience method that creates an instance of theScalingInstruction.Builder
avoiding the need to create one manually viaScalingInstruction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscalingInstructions(List<ScalingInstruction>)
.- Parameters:
scalingInstructions
- a consumer that will call methods onScalingInstruction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateScalingPlanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateScalingPlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-