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.BuilderapplicationSource(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
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaApplicationSource.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaScalingInstruction.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-