Interface ScalingPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScalingPolicy.Builder,
,ScalingPolicy> SdkBuilder<ScalingPolicy.Builder,
,ScalingPolicy> SdkPojo
- Enclosing class:
ScalingPolicy
@Mutable
@NotThreadSafe
public static interface ScalingPolicy.Builder
extends SdkPojo, CopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionpolicyName
(String policyName) The name of the scaling policy.policyType
(String policyType) The type of scaling policy.policyType
(PolicyType policyType) The type of scaling policy.default ScalingPolicy.Builder
targetTrackingConfiguration
(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration) The target tracking scaling policy.targetTrackingConfiguration
(TargetTrackingConfiguration targetTrackingConfiguration) The target tracking scaling policy.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, sdkFieldNameToField, sdkFields
-
Method Details
-
policyName
The name of the scaling policy.
- Parameters:
policyName
- The name of the scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyType
The type of scaling policy.
- Parameters:
policyType
- The type of scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
The type of scaling policy.
- Parameters:
policyType
- The type of scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetTrackingConfiguration
ScalingPolicy.Builder targetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration) The target tracking scaling policy. Includes support for predefined or customized metrics.
- Parameters:
targetTrackingConfiguration
- The target tracking scaling policy. Includes support for predefined or customized metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTrackingConfiguration
default ScalingPolicy.Builder targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration) The target tracking scaling policy. Includes support for predefined or customized metrics.
This is a convenience method that creates an instance of theTargetTrackingConfiguration.Builder
avoiding the need to create one manually viaTargetTrackingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetTrackingConfiguration(TargetTrackingConfiguration)
.- Parameters:
targetTrackingConfiguration
- a consumer that will call methods onTargetTrackingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-