public static interface TargetTrackingConfiguration.Builder extends CopyableBuilder<TargetTrackingConfiguration.Builder,TargetTrackingConfiguration>
Modifier and Type | Method and Description |
---|---|
default TargetTrackingConfiguration.Builder |
customizedMetricSpecification(Consumer<CustomizedMetricSpecification.Builder> customizedMetricSpecification)
A customized metric.
|
TargetTrackingConfiguration.Builder |
customizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
|
TargetTrackingConfiguration.Builder |
disableScaleIn(Boolean disableScaleIn)
Indicates whether scale in by the target tracking policy is disabled.
|
default TargetTrackingConfiguration.Builder |
predefinedMetricSpecification(Consumer<PredefinedMetricSpecification.Builder> predefinedMetricSpecification)
A predefined metric.
|
TargetTrackingConfiguration.Builder |
predefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric.
|
TargetTrackingConfiguration.Builder |
targetValue(Double targetValue)
The target value for the metric.
|
copy
apply, build
TargetTrackingConfiguration.Builder predefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric. You can specify either a predefined metric or a customized metric.
predefinedMetricSpecification
- A predefined metric. You can specify either a predefined metric or a customized metric.default TargetTrackingConfiguration.Builder predefinedMetricSpecification(Consumer<PredefinedMetricSpecification.Builder> predefinedMetricSpecification)
A predefined metric. You can specify either a predefined metric or a customized metric.
This is a convenience that creates an instance of thePredefinedMetricSpecification.Builder
avoiding
the need to create one manually via PredefinedMetricSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to predefinedMetricSpecification(PredefinedMetricSpecification)
.predefinedMetricSpecification
- a consumer that will call methods on PredefinedMetricSpecification.Builder
predefinedMetricSpecification(PredefinedMetricSpecification)
TargetTrackingConfiguration.Builder customizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
customizedMetricSpecification
- A customized metric.default TargetTrackingConfiguration.Builder customizedMetricSpecification(Consumer<CustomizedMetricSpecification.Builder> customizedMetricSpecification)
A customized metric.
This is a convenience that creates an instance of theCustomizedMetricSpecification.Builder
avoiding
the need to create one manually via CustomizedMetricSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to customizedMetricSpecification(CustomizedMetricSpecification)
.customizedMetricSpecification
- a consumer that will call methods on CustomizedMetricSpecification.Builder
customizedMetricSpecification(CustomizedMetricSpecification)
TargetTrackingConfiguration.Builder targetValue(Double targetValue)
The target value for the metric.
targetValue
- The target value for the metric.TargetTrackingConfiguration.Builder disableScaleIn(Boolean disableScaleIn)
Indicates whether scale in by the target tracking policy is disabled. If the value is true
,
scale in is disabled and the target tracking policy won't remove instances from the Auto Scaling group.
Otherwise, scale in is enabled and the target tracking policy can remove instances from the Auto Scaling
group. The default value is false
.
disableScaleIn
- Indicates whether scale in by the target tracking policy is disabled. If the value is
true
, scale in is disabled and the target tracking policy won't remove instances from the
Auto Scaling group. Otherwise, scale in is enabled and the target tracking policy can remove instances
from the Auto Scaling group. The default value is false
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.