com.aliyun.ess20220222.models.DescribeScalingRulesResponseBody Maven / Gradle / Ivy
Show all versions of ess20220222 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ess20220222.models;
import com.aliyun.tea.*;
public class DescribeScalingRulesResponseBody extends TeaModel {
/**
* The page number of the returned page.
*
* example:
* 1
*/
@NameInMap("PageNumber")
public Integer pageNumber;
/**
* The number of entries returned per page.
*
* example:
* 50
*/
@NameInMap("PageSize")
public Integer pageSize;
/**
* The ID of the request.
*
* example:
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
*/
@NameInMap("RequestId")
public String requestId;
/**
* The scaling rules.
*/
@NameInMap("ScalingRules")
public java.util.List scalingRules;
/**
* The total number of scaling rules.
*
* example:
* 1
*/
@NameInMap("TotalCount")
public Integer totalCount;
public static DescribeScalingRulesResponseBody build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBody self = new DescribeScalingRulesResponseBody();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBody setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
public Integer getPageNumber() {
return this.pageNumber;
}
public DescribeScalingRulesResponseBody setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public Integer getPageSize() {
return this.pageSize;
}
public DescribeScalingRulesResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeScalingRulesResponseBody setScalingRules(java.util.List scalingRules) {
this.scalingRules = scalingRules;
return this;
}
public java.util.List getScalingRules() {
return this.scalingRules;
}
public DescribeScalingRulesResponseBody setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public Integer getTotalCount() {
return this.totalCount;
}
public static class DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions extends TeaModel {
/**
* The dimension key of the metric.
*
* example:
* rulePool
*/
@NameInMap("DimensionKey")
public String dimensionKey;
/**
* The dimension value of the metric.
*
* example:
* sgp-l1cbirz451yxu2dxxx
*/
@NameInMap("DimensionValue")
public String dimensionValue;
public static DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions self = new DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions setDimensionKey(String dimensionKey) {
this.dimensionKey = dimensionKey;
return this;
}
public String getDimensionKey() {
return this.dimensionKey;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions setDimensionValue(String dimensionValue) {
this.dimensionValue = dimensionValue;
return this;
}
public String getDimensionValue() {
return this.dimensionValue;
}
}
public static class DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions extends TeaModel {
/**
* The key of the dimension that is associated with the metric. Valid values:
*
* - ScalingGroupId: the ID of the scaling group.
* - userId: the ID of the user account.
*
*
* example:
* scaling_group
*/
@NameInMap("DimensionKey")
public String dimensionKey;
/**
* The value of the dimension that is associated with the metric.
*
* example:
* asg-bp18p2yfxow2dloq****
*/
@NameInMap("DimensionValue")
public String dimensionValue;
public static DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions self = new DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions setDimensionKey(String dimensionKey) {
this.dimensionKey = dimensionKey;
return this;
}
public String getDimensionKey() {
return this.dimensionKey;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions setDimensionValue(String dimensionValue) {
this.dimensionValue = dimensionValue;
return this;
}
public String getDimensionValue() {
return this.dimensionValue;
}
}
public static class DescribeScalingRulesResponseBodyScalingRulesAlarms extends TeaModel {
/**
* The ID of the event-triggered task that is associated with the scaling rule.
*
* example:
* asg-bp18p2yfxow2dloq****_1f9458d1-70e1-4bee-8c7f-7a47695b****
*/
@NameInMap("AlarmTaskId")
public String alarmTaskId;
/**
* The name of the event-triggered task that is associated with the scaling rule.
*
* example:
* alarmtask****
*/
@NameInMap("AlarmTaskName")
public String alarmTaskName;
/**
* The comparison operator between the statistical value and the threshold of the metric of the event-triggered task that is associated with the scaling rule. The comparison operator indicates the relationship in which the metric value and the metric threshold can meet the alert condition.
*
* - Valid value if the metric value is greater than or equal to the threshold: >=
* - Valid value if the metric value is less than or equal to the threshold: <=
* - Valid value if the metric value is greater than the threshold: >
* - Valid value if the metric value is less than the threshold: <
*
*
* example:
*
* =
*
*/
@NameInMap("ComparisonOperator")
public String comparisonOperator;
/**
* The dimensions of the event-triggered task that is associated with the scaling rule.
*/
@NameInMap("Dimensions")
public java.util.List dimensions;
/**
* The number of consecutive times when the event-triggered task that is associated with the scaling rule must meet the alert condition before an alert is triggered.
*
* example:
* 3
*/
@NameInMap("EvaluationCount")
public Integer evaluationCount;
/**
* The name of the metric of the event-triggered task that is associated with the scaling rule.
*
* example:
* CpuUtilization
*/
@NameInMap("MetricName")
public String metricName;
/**
* The type of the metric of the event-triggered task that is associated with the scaling rule. Valid values:
*
* - system: system metrics
* - custom: custom metrics
*
*
* example:
* system
*/
@NameInMap("MetricType")
public String metricType;
/**
* The statistical method of the event-triggered task that is associated with the scaling rule. Valid values:
*
* - Average
* - Maximum
* - Minimum
*
*
* example:
* Average
*/
@NameInMap("Statistics")
public String statistics;
/**
* The alert threshold of the event-triggered task that is associated with the scaling rule.
*
* example:
* 50
*/
@NameInMap("Threshold")
public Float threshold;
public static DescribeScalingRulesResponseBodyScalingRulesAlarms build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesAlarms self = new DescribeScalingRulesResponseBodyScalingRulesAlarms();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setAlarmTaskId(String alarmTaskId) {
this.alarmTaskId = alarmTaskId;
return this;
}
public String getAlarmTaskId() {
return this.alarmTaskId;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setAlarmTaskName(String alarmTaskName) {
this.alarmTaskName = alarmTaskName;
return this;
}
public String getAlarmTaskName() {
return this.alarmTaskName;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setComparisonOperator(String comparisonOperator) {
this.comparisonOperator = comparisonOperator;
return this;
}
public String getComparisonOperator() {
return this.comparisonOperator;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setDimensions(java.util.List dimensions) {
this.dimensions = dimensions;
return this;
}
public java.util.List getDimensions() {
return this.dimensions;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setEvaluationCount(Integer evaluationCount) {
this.evaluationCount = evaluationCount;
return this;
}
public Integer getEvaluationCount() {
return this.evaluationCount;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getMetricName() {
return this.metricName;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setMetricType(String metricType) {
this.metricType = metricType;
return this;
}
public String getMetricType() {
return this.metricType;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setStatistics(String statistics) {
this.statistics = statistics;
return this;
}
public String getStatistics() {
return this.statistics;
}
public DescribeScalingRulesResponseBodyScalingRulesAlarms setThreshold(Float threshold) {
this.threshold = threshold;
return this;
}
public Float getThreshold() {
return this.threshold;
}
}
public static class DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions extends TeaModel {
@NameInMap("DimensionKey")
public String dimensionKey;
@NameInMap("DimensionValue")
public String dimensionValue;
public static DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions self = new DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions setDimensionKey(String dimensionKey) {
this.dimensionKey = dimensionKey;
return this;
}
public String getDimensionKey() {
return this.dimensionKey;
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetricsDimensions setDimensionValue(String dimensionValue) {
this.dimensionValue = dimensionValue;
return this;
}
public String getDimensionValue() {
return this.dimensionValue;
}
}
public static class DescribeScalingRulesResponseBodyScalingRulesHybridMetrics extends TeaModel {
@NameInMap("Dimensions")
public java.util.List dimensions;
@NameInMap("Expression")
public String expression;
@NameInMap("Id")
public String id;
@NameInMap("MetricName")
public String metricName;
@NameInMap("Statistic")
public String statistic;
public static DescribeScalingRulesResponseBodyScalingRulesHybridMetrics build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesHybridMetrics self = new DescribeScalingRulesResponseBodyScalingRulesHybridMetrics();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetrics setDimensions(java.util.List dimensions) {
this.dimensions = dimensions;
return this;
}
public java.util.List getDimensions() {
return this.dimensions;
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetrics setExpression(String expression) {
this.expression = expression;
return this;
}
public String getExpression() {
return this.expression;
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetrics setId(String id) {
this.id = id;
return this;
}
public String getId() {
return this.id;
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetrics setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getMetricName() {
return this.metricName;
}
public DescribeScalingRulesResponseBodyScalingRulesHybridMetrics setStatistic(String statistic) {
this.statistic = statistic;
return this;
}
public String getStatistic() {
return this.statistic;
}
}
public static class DescribeScalingRulesResponseBodyScalingRulesStepAdjustments extends TeaModel {
/**
* The lower limit of a step adjustment. Valid values: -9.999999E18 to 9.999999E18.
*
* example:
* 1.0
*/
@NameInMap("MetricIntervalLowerBound")
public Float metricIntervalLowerBound;
/**
* The upper limit of a step adjustment. Valid values: -9.999999E18 to 9.999999E18.
*
* example:
* 5.0
*/
@NameInMap("MetricIntervalUpperBound")
public Float metricIntervalUpperBound;
/**
* The number of ECS instances that are scaled in a step adjustment.
*
* example:
* 1
*/
@NameInMap("ScalingAdjustment")
public Integer scalingAdjustment;
public static DescribeScalingRulesResponseBodyScalingRulesStepAdjustments build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRulesStepAdjustments self = new DescribeScalingRulesResponseBodyScalingRulesStepAdjustments();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRulesStepAdjustments setMetricIntervalLowerBound(Float metricIntervalLowerBound) {
this.metricIntervalLowerBound = metricIntervalLowerBound;
return this;
}
public Float getMetricIntervalLowerBound() {
return this.metricIntervalLowerBound;
}
public DescribeScalingRulesResponseBodyScalingRulesStepAdjustments setMetricIntervalUpperBound(Float metricIntervalUpperBound) {
this.metricIntervalUpperBound = metricIntervalUpperBound;
return this;
}
public Float getMetricIntervalUpperBound() {
return this.metricIntervalUpperBound;
}
public DescribeScalingRulesResponseBodyScalingRulesStepAdjustments setScalingAdjustment(Integer scalingAdjustment) {
this.scalingAdjustment = scalingAdjustment;
return this;
}
public Integer getScalingAdjustment() {
return this.scalingAdjustment;
}
}
public static class DescribeScalingRulesResponseBodyScalingRules extends TeaModel {
/**
* The adjustment method of the scaling rule. Valid values:
*
* - QuantityChangeInCapacity: adds or removes the specified number of Elastic Compute Service (ECS) instances to or from the scaling group.
* - PercentChangeInCapacity: adds or removes the specified percentage of ECS instances to or from the scaling group.
* - TotalCapacity: adjusts the number of ECS instances in the scaling group to the specified number.
*
*
* example:
* QuantityChangeInCapacity
*/
@NameInMap("AdjustmentType")
public String adjustmentType;
/**
* The number of instances that must be scaled based on the scaling rule.
*
* example:
* 1
*/
@NameInMap("AdjustmentValue")
public Integer adjustmentValue;
/**
* The dimensions. This parameter is applicable to target tracking scaling rules. You can specify this parameter if your predefined metric requires extra dimensions. For example, if you predefine the LoadBalancerRealServerAverageQps metric, you must use this parameter to specify the rulePool dimension.
*/
@NameInMap("AlarmDimensions")
public java.util.List alarmDimensions;
/**
* The event-triggered tasks that are associated with the scaling rule. The value of this parameter is returned only if you set ShowAlarmRules to true. Otherwise, null is returned.
*/
@NameInMap("Alarms")
public java.util.List alarms;
/**
* The cooldown period of the scaling rule. This parameter is available only if you set ScalingRuleType to SimpleScalingRule. Valid values: 0 to 86400. Unit: seconds.
*
* example:
* 20
*/
@NameInMap("Cooldown")
public Integer cooldown;
/**
* Indicates whether scale-in is disabled. This parameter takes effect only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values:
*
* - true
* - false
*
*
* example:
* true
*/
@NameInMap("DisableScaleIn")
public Boolean disableScaleIn;
/**
* The warm-up period of instances. During the warm-up period, a series of preparation measures are taken for the new instances. Performance metrics of instances being warmed up are not counted towards the monitoring range.
*
* example:
* 300
*/
@NameInMap("EstimatedInstanceWarmup")
public Integer estimatedInstanceWarmup;
@NameInMap("HybridMetrics")
public java.util.List hybridMetrics;
@NameInMap("HybridMonitorNamespace")
public String hybridMonitorNamespace;
/**
* The maximum number of ECS instances that can be contained in the scaling group. If you specify this parameter, you must also specify PredictiveValueBehavior.
*
* example:
* 100
*/
@NameInMap("InitialMaxSize")
public Integer initialMaxSize;
/**
* The maximum number of ECS instances that can be contained in the scaling group.
*
* example:
* 2
*/
@NameInMap("MaxSize")
public Integer maxSize;
/**
* The name of the metric of the event-triggered task that is associated with the scaling rule.
*
* example:
* CpuUtilization
*/
@NameInMap("MetricName")
public String metricName;
@NameInMap("MetricType")
public String metricType;
/**
* The minimum number of instances that must be scaled. This parameter takes effect only if you set ScalingRuleType to SimpleScalingRule or StepScalingRule and set AdjustmentType to PercentChangeInCapacity.
*
* example:
* 1
*/
@NameInMap("MinAdjustmentMagnitude")
public Integer minAdjustmentMagnitude;
/**
* The minimum number of ECS instances that must be contained in the scaling group.
*
* example:
* 1
*/
@NameInMap("MinSize")
public Integer minSize;
/**
* The mode of the predictive scaling rule. Valid values:
*
* - PredictAndScale: provides predictions and creates prediction tasks.
* - PredictOnly: provides predictions but does not create prediction tasks.
*
*
* example:
* PredictAndScale
*/
@NameInMap("PredictiveScalingMode")
public String predictiveScalingMode;
/**
* The amount of buffer time before prediction tasks are executed. By default, all prediction tasks that are automatically created based on a predictive scaling rule are executed on the hour. You can specify a buffer time for resource preparation before prediction tasks are executed. Valid values: 0 to 60. Unit: minutes.
*
* example:
* 30
*/
@NameInMap("PredictiveTaskBufferTime")
public Integer predictiveTaskBufferTime;
/**
* The action on the predicted maximum value. Valid values:
*
* - MaxOverridePredictiveValue: uses the initial maximum capacity as the maximum value for prediction tasks if the predicted value is greater than the initial maximum capacity.
* - PredictiveValueOverrideMax: uses the predicted value as the maximum value for prediction tasks when the predicted value is greater than the initial maximum capacity.
* - PredictiveValueOverrideMaxWithBuffer: increases the predicted value by a ratio that is specified by PredictiveValueBuffer, and uses the increased value as the maximum value for prediction tasks if the predicted value increased by this ratio is greater than the initial maximum capacity.
*
*
* example:
* MaxOverridePredictiveValue
*/
@NameInMap("PredictiveValueBehavior")
public String predictiveValueBehavior;
/**
* The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. If the predicted value increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks. Valid values: 0 to 100.
*
* example:
* 50
*/
@NameInMap("PredictiveValueBuffer")
public Integer predictiveValueBuffer;
/**
* The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered. After a target tracking scaling rule is created, an event-triggered task is automatically created and associated with the target tracking scaling rule.
*
* example:
* 15
*/
@NameInMap("ScaleInEvaluationCount")
public Integer scaleInEvaluationCount;
/**
* The number of consecutive times that the event-triggered task created for scale-out purposes must meet the threshold conditions before an alert is triggered. After a target tracking scaling rule is created, an event-triggered task is automatically created and associated with the target tracking scaling rule.
*
* example:
* 3
*/
@NameInMap("ScaleOutEvaluationCount")
public Integer scaleOutEvaluationCount;
/**
* The ID of the scaling group.
*
* example:
* asg-bp1ffogfdauy0jw0****
*/
@NameInMap("ScalingGroupId")
public String scalingGroupId;
/**
* The unique identifier of the scaling rule.
*
* example:
* ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7****
*/
@NameInMap("ScalingRuleAri")
public String scalingRuleAri;
/**
* The ID of the scaling rule.
*
* example:
* asr-bp1dvirgwkoowxk7****
*/
@NameInMap("ScalingRuleId")
public String scalingRuleId;
/**
* The name of the scaling rule.
*
* example:
* scalingrule****
*/
@NameInMap("ScalingRuleName")
public String scalingRuleName;
/**
* The type of the scaling rule. Valid values:
*
* - SimpleScalingRule: a simple scaling rule. Once a simple scaling rule is executed, Auto Scaling adjusts the number of ECS instances in the scaling group based on the values of AdjustmentType and AdjustmentValue.
* - TargetTrackingScalingRule: a target tracking scaling rule. Once a target tracking scaling rule is executed, Auto Scaling dynamically calculates the number of ECS instances or elastic container instances to scale based on the predefined metric (MetricName) and attempts to maintain the metric value close to the specified target value (TargetValue).
* - StepScalingRule: a step scaling rule. Once a step scaling rule is executed, Auto Scaling scales instances step by step based on the predefined thresholds and metric values.
* - PredictiveScalingRule: a predictive scaling rule. Once a predictive scaling rule is executed, Auto Scaling analyzes the historical monitoring data based on the machine learning technology and predicts the trends of metric data. Auto Scaling also creates scheduled tasks to enable dynamic adjustment of the boundary values for the scaling group.
*
*
* example:
* SimpleScalingRule
*/
@NameInMap("ScalingRuleType")
public String scalingRuleType;
/**
* The step adjustments of the step scaling rule.
*/
@NameInMap("StepAdjustments")
public java.util.List stepAdjustments;
/**
* The target value of the metric. If you set ScalingRuleType to TargetTrackingScalingRule or PredictiveScalingRule, Auto Scaling keeps the metric value close to the target value by adding instances to or removing instances from the scaling group.
*
* example:
* 0.125
*/
@NameInMap("TargetValue")
public Float targetValue;
public static DescribeScalingRulesResponseBodyScalingRules build(java.util.Map map) throws Exception {
DescribeScalingRulesResponseBodyScalingRules self = new DescribeScalingRulesResponseBodyScalingRules();
return TeaModel.build(map, self);
}
public DescribeScalingRulesResponseBodyScalingRules setAdjustmentType(String adjustmentType) {
this.adjustmentType = adjustmentType;
return this;
}
public String getAdjustmentType() {
return this.adjustmentType;
}
public DescribeScalingRulesResponseBodyScalingRules setAdjustmentValue(Integer adjustmentValue) {
this.adjustmentValue = adjustmentValue;
return this;
}
public Integer getAdjustmentValue() {
return this.adjustmentValue;
}
public DescribeScalingRulesResponseBodyScalingRules setAlarmDimensions(java.util.List alarmDimensions) {
this.alarmDimensions = alarmDimensions;
return this;
}
public java.util.List getAlarmDimensions() {
return this.alarmDimensions;
}
public DescribeScalingRulesResponseBodyScalingRules setAlarms(java.util.List alarms) {
this.alarms = alarms;
return this;
}
public java.util.List getAlarms() {
return this.alarms;
}
public DescribeScalingRulesResponseBodyScalingRules setCooldown(Integer cooldown) {
this.cooldown = cooldown;
return this;
}
public Integer getCooldown() {
return this.cooldown;
}
public DescribeScalingRulesResponseBodyScalingRules setDisableScaleIn(Boolean disableScaleIn) {
this.disableScaleIn = disableScaleIn;
return this;
}
public Boolean getDisableScaleIn() {
return this.disableScaleIn;
}
public DescribeScalingRulesResponseBodyScalingRules setEstimatedInstanceWarmup(Integer estimatedInstanceWarmup) {
this.estimatedInstanceWarmup = estimatedInstanceWarmup;
return this;
}
public Integer getEstimatedInstanceWarmup() {
return this.estimatedInstanceWarmup;
}
public DescribeScalingRulesResponseBodyScalingRules setHybridMetrics(java.util.List hybridMetrics) {
this.hybridMetrics = hybridMetrics;
return this;
}
public java.util.List getHybridMetrics() {
return this.hybridMetrics;
}
public DescribeScalingRulesResponseBodyScalingRules setHybridMonitorNamespace(String hybridMonitorNamespace) {
this.hybridMonitorNamespace = hybridMonitorNamespace;
return this;
}
public String getHybridMonitorNamespace() {
return this.hybridMonitorNamespace;
}
public DescribeScalingRulesResponseBodyScalingRules setInitialMaxSize(Integer initialMaxSize) {
this.initialMaxSize = initialMaxSize;
return this;
}
public Integer getInitialMaxSize() {
return this.initialMaxSize;
}
public DescribeScalingRulesResponseBodyScalingRules setMaxSize(Integer maxSize) {
this.maxSize = maxSize;
return this;
}
public Integer getMaxSize() {
return this.maxSize;
}
public DescribeScalingRulesResponseBodyScalingRules setMetricName(String metricName) {
this.metricName = metricName;
return this;
}
public String getMetricName() {
return this.metricName;
}
public DescribeScalingRulesResponseBodyScalingRules setMetricType(String metricType) {
this.metricType = metricType;
return this;
}
public String getMetricType() {
return this.metricType;
}
public DescribeScalingRulesResponseBodyScalingRules setMinAdjustmentMagnitude(Integer minAdjustmentMagnitude) {
this.minAdjustmentMagnitude = minAdjustmentMagnitude;
return this;
}
public Integer getMinAdjustmentMagnitude() {
return this.minAdjustmentMagnitude;
}
public DescribeScalingRulesResponseBodyScalingRules setMinSize(Integer minSize) {
this.minSize = minSize;
return this;
}
public Integer getMinSize() {
return this.minSize;
}
public DescribeScalingRulesResponseBodyScalingRules setPredictiveScalingMode(String predictiveScalingMode) {
this.predictiveScalingMode = predictiveScalingMode;
return this;
}
public String getPredictiveScalingMode() {
return this.predictiveScalingMode;
}
public DescribeScalingRulesResponseBodyScalingRules setPredictiveTaskBufferTime(Integer predictiveTaskBufferTime) {
this.predictiveTaskBufferTime = predictiveTaskBufferTime;
return this;
}
public Integer getPredictiveTaskBufferTime() {
return this.predictiveTaskBufferTime;
}
public DescribeScalingRulesResponseBodyScalingRules setPredictiveValueBehavior(String predictiveValueBehavior) {
this.predictiveValueBehavior = predictiveValueBehavior;
return this;
}
public String getPredictiveValueBehavior() {
return this.predictiveValueBehavior;
}
public DescribeScalingRulesResponseBodyScalingRules setPredictiveValueBuffer(Integer predictiveValueBuffer) {
this.predictiveValueBuffer = predictiveValueBuffer;
return this;
}
public Integer getPredictiveValueBuffer() {
return this.predictiveValueBuffer;
}
public DescribeScalingRulesResponseBodyScalingRules setScaleInEvaluationCount(Integer scaleInEvaluationCount) {
this.scaleInEvaluationCount = scaleInEvaluationCount;
return this;
}
public Integer getScaleInEvaluationCount() {
return this.scaleInEvaluationCount;
}
public DescribeScalingRulesResponseBodyScalingRules setScaleOutEvaluationCount(Integer scaleOutEvaluationCount) {
this.scaleOutEvaluationCount = scaleOutEvaluationCount;
return this;
}
public Integer getScaleOutEvaluationCount() {
return this.scaleOutEvaluationCount;
}
public DescribeScalingRulesResponseBodyScalingRules setScalingGroupId(String scalingGroupId) {
this.scalingGroupId = scalingGroupId;
return this;
}
public String getScalingGroupId() {
return this.scalingGroupId;
}
public DescribeScalingRulesResponseBodyScalingRules setScalingRuleAri(String scalingRuleAri) {
this.scalingRuleAri = scalingRuleAri;
return this;
}
public String getScalingRuleAri() {
return this.scalingRuleAri;
}
public DescribeScalingRulesResponseBodyScalingRules setScalingRuleId(String scalingRuleId) {
this.scalingRuleId = scalingRuleId;
return this;
}
public String getScalingRuleId() {
return this.scalingRuleId;
}
public DescribeScalingRulesResponseBodyScalingRules setScalingRuleName(String scalingRuleName) {
this.scalingRuleName = scalingRuleName;
return this;
}
public String getScalingRuleName() {
return this.scalingRuleName;
}
public DescribeScalingRulesResponseBodyScalingRules setScalingRuleType(String scalingRuleType) {
this.scalingRuleType = scalingRuleType;
return this;
}
public String getScalingRuleType() {
return this.scalingRuleType;
}
public DescribeScalingRulesResponseBodyScalingRules setStepAdjustments(java.util.List stepAdjustments) {
this.stepAdjustments = stepAdjustments;
return this;
}
public java.util.List getStepAdjustments() {
return this.stepAdjustments;
}
public DescribeScalingRulesResponseBodyScalingRules setTargetValue(Float targetValue) {
this.targetValue = targetValue;
return this;
}
public Float getTargetValue() {
return this.targetValue;
}
}
}