Interface PredictiveScalingMetricSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PredictiveScalingMetricSpecification.Builder,
,PredictiveScalingMetricSpecification> SdkBuilder<PredictiveScalingMetricSpecification.Builder,
,PredictiveScalingMetricSpecification> SdkPojo
- Enclosing class:
PredictiveScalingMetricSpecification
-
Method Summary
Modifier and TypeMethodDescriptioncustomizedCapacityMetricSpecification
(Consumer<PredictiveScalingCustomizedCapacityMetric.Builder> customizedCapacityMetricSpecification) The customized capacity metric specification.customizedCapacityMetricSpecification
(PredictiveScalingCustomizedCapacityMetric customizedCapacityMetricSpecification) The customized capacity metric specification.customizedLoadMetricSpecification
(Consumer<PredictiveScalingCustomizedLoadMetric.Builder> customizedLoadMetricSpecification) The customized load metric specification.customizedLoadMetricSpecification
(PredictiveScalingCustomizedLoadMetric customizedLoadMetricSpecification) The customized load metric specification.customizedScalingMetricSpecification
(Consumer<PredictiveScalingCustomizedScalingMetric.Builder> customizedScalingMetricSpecification) The customized scaling metric specification.customizedScalingMetricSpecification
(PredictiveScalingCustomizedScalingMetric customizedScalingMetricSpecification) The customized scaling metric specification.predefinedLoadMetricSpecification
(Consumer<PredictiveScalingPredefinedLoadMetric.Builder> predefinedLoadMetricSpecification) The predefined load metric specification.predefinedLoadMetricSpecification
(PredictiveScalingPredefinedLoadMetric predefinedLoadMetricSpecification) The predefined load metric specification.predefinedMetricPairSpecification
(Consumer<PredictiveScalingPredefinedMetricPair.Builder> predefinedMetricPairSpecification) The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.predefinedMetricPairSpecification
(PredictiveScalingPredefinedMetricPair predefinedMetricPairSpecification) The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.predefinedScalingMetricSpecification
(Consumer<PredictiveScalingPredefinedScalingMetric.Builder> predefinedScalingMetricSpecification) The predefined scaling metric specification.predefinedScalingMetricSpecification
(PredictiveScalingPredefinedScalingMetric predefinedScalingMetricSpecification) The predefined scaling metric specification.targetValue
(Double targetValue) Specifies the target utilization.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
-
targetValue
Specifies the target utilization.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
- Parameters:
targetValue
- Specifies the target utilization.Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predefinedMetricPairSpecification
PredictiveScalingMetricSpecification.Builder predefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPair predefinedMetricPairSpecification) The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
- Parameters:
predefinedMetricPairSpecification
- The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predefinedMetricPairSpecification
default PredictiveScalingMetricSpecification.Builder predefinedMetricPairSpecification(Consumer<PredictiveScalingPredefinedMetricPair.Builder> predefinedMetricPairSpecification) The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
This is a convenience method that creates an instance of thePredictiveScalingPredefinedMetricPair.Builder
avoiding the need to create one manually viaPredictiveScalingPredefinedMetricPair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topredefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPair)
.- Parameters:
predefinedMetricPairSpecification
- a consumer that will call methods onPredictiveScalingPredefinedMetricPair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
predefinedScalingMetricSpecification
PredictiveScalingMetricSpecification.Builder predefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetric predefinedScalingMetricSpecification) The predefined scaling metric specification.
- Parameters:
predefinedScalingMetricSpecification
- The predefined scaling metric specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predefinedScalingMetricSpecification
default PredictiveScalingMetricSpecification.Builder predefinedScalingMetricSpecification(Consumer<PredictiveScalingPredefinedScalingMetric.Builder> predefinedScalingMetricSpecification) The predefined scaling metric specification.
This is a convenience method that creates an instance of thePredictiveScalingPredefinedScalingMetric.Builder
avoiding the need to create one manually viaPredictiveScalingPredefinedScalingMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topredefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetric)
.- Parameters:
predefinedScalingMetricSpecification
- a consumer that will call methods onPredictiveScalingPredefinedScalingMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
predefinedLoadMetricSpecification
PredictiveScalingMetricSpecification.Builder predefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetric predefinedLoadMetricSpecification) The predefined load metric specification.
- Parameters:
predefinedLoadMetricSpecification
- The predefined load metric specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predefinedLoadMetricSpecification
default PredictiveScalingMetricSpecification.Builder predefinedLoadMetricSpecification(Consumer<PredictiveScalingPredefinedLoadMetric.Builder> predefinedLoadMetricSpecification) The predefined load metric specification.
This is a convenience method that creates an instance of thePredictiveScalingPredefinedLoadMetric.Builder
avoiding the need to create one manually viaPredictiveScalingPredefinedLoadMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topredefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetric)
.- Parameters:
predefinedLoadMetricSpecification
- a consumer that will call methods onPredictiveScalingPredefinedLoadMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customizedScalingMetricSpecification
PredictiveScalingMetricSpecification.Builder customizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetric customizedScalingMetricSpecification) The customized scaling metric specification.
- Parameters:
customizedScalingMetricSpecification
- The customized scaling metric specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizedScalingMetricSpecification
default PredictiveScalingMetricSpecification.Builder customizedScalingMetricSpecification(Consumer<PredictiveScalingCustomizedScalingMetric.Builder> customizedScalingMetricSpecification) The customized scaling metric specification.
This is a convenience method that creates an instance of thePredictiveScalingCustomizedScalingMetric.Builder
avoiding the need to create one manually viaPredictiveScalingCustomizedScalingMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetric)
.- Parameters:
customizedScalingMetricSpecification
- a consumer that will call methods onPredictiveScalingCustomizedScalingMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customizedLoadMetricSpecification
PredictiveScalingMetricSpecification.Builder customizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetric customizedLoadMetricSpecification) The customized load metric specification.
- Parameters:
customizedLoadMetricSpecification
- The customized load metric specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizedLoadMetricSpecification
default PredictiveScalingMetricSpecification.Builder customizedLoadMetricSpecification(Consumer<PredictiveScalingCustomizedLoadMetric.Builder> customizedLoadMetricSpecification) The customized load metric specification.
This is a convenience method that creates an instance of thePredictiveScalingCustomizedLoadMetric.Builder
avoiding the need to create one manually viaPredictiveScalingCustomizedLoadMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetric)
.- Parameters:
customizedLoadMetricSpecification
- a consumer that will call methods onPredictiveScalingCustomizedLoadMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customizedCapacityMetricSpecification
PredictiveScalingMetricSpecification.Builder customizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetric customizedCapacityMetricSpecification) The customized capacity metric specification.
- Parameters:
customizedCapacityMetricSpecification
- The customized capacity metric specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizedCapacityMetricSpecification
default PredictiveScalingMetricSpecification.Builder customizedCapacityMetricSpecification(Consumer<PredictiveScalingCustomizedCapacityMetric.Builder> customizedCapacityMetricSpecification) The customized capacity metric specification.
This is a convenience method that creates an instance of thePredictiveScalingCustomizedCapacityMetric.Builder
avoiding the need to create one manually viaPredictiveScalingCustomizedCapacityMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetric)
.- Parameters:
customizedCapacityMetricSpecification
- a consumer that will call methods onPredictiveScalingCustomizedCapacityMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-