All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.emr20210320.models.ByLoadScalingRule Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.emr20210320.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ByLoadScalingRule} extends {@link TeaModel}
 *
 * 

ByLoadScalingRule

*/ public class ByLoadScalingRule extends TeaModel { @com.aliyun.core.annotation.NameInMap("ComparisonOperator") @com.aliyun.core.annotation.Validation(required = true) private String comparisonOperator; @com.aliyun.core.annotation.NameInMap("CoolDownInterval") private Integer coolDownInterval; @com.aliyun.core.annotation.NameInMap("EvaluationCount") @com.aliyun.core.annotation.Validation(required = true) private Integer evaluationCount; @com.aliyun.core.annotation.NameInMap("MetricName") @com.aliyun.core.annotation.Validation(required = true) private String metricName; @com.aliyun.core.annotation.NameInMap("Statistics") @com.aliyun.core.annotation.Validation(required = true) private String statistics; @com.aliyun.core.annotation.NameInMap("Threshold") @com.aliyun.core.annotation.Validation(required = true) private Double threshold; @com.aliyun.core.annotation.NameInMap("TimeWindow") @com.aliyun.core.annotation.Validation(required = true) private Integer timeWindow; private ByLoadScalingRule(Builder builder) { this.comparisonOperator = builder.comparisonOperator; this.coolDownInterval = builder.coolDownInterval; this.evaluationCount = builder.evaluationCount; this.metricName = builder.metricName; this.statistics = builder.statistics; this.threshold = builder.threshold; this.timeWindow = builder.timeWindow; } public static Builder builder() { return new Builder(); } public static ByLoadScalingRule create() { return builder().build(); } /** * @return comparisonOperator */ public String getComparisonOperator() { return this.comparisonOperator; } /** * @return coolDownInterval */ public Integer getCoolDownInterval() { return this.coolDownInterval; } /** * @return evaluationCount */ public Integer getEvaluationCount() { return this.evaluationCount; } /** * @return metricName */ public String getMetricName() { return this.metricName; } /** * @return statistics */ public String getStatistics() { return this.statistics; } /** * @return threshold */ public Double getThreshold() { return this.threshold; } /** * @return timeWindow */ public Integer getTimeWindow() { return this.timeWindow; } public static final class Builder { private String comparisonOperator; private Integer coolDownInterval; private Integer evaluationCount; private String metricName; private String statistics; private Double threshold; private Integer timeWindow; /** * 比较符。 */ public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = comparisonOperator; return this; } /** * CoolDownInterval. */ public Builder coolDownInterval(Integer coolDownInterval) { this.coolDownInterval = coolDownInterval; return this; } /** * 统计次数。 */ public Builder evaluationCount(Integer evaluationCount) { this.evaluationCount = evaluationCount; return this; } /** * 指标名称。指标名称需要在 ListAutoScalingMetrics 接口返回的指标名称列表中。 */ public Builder metricName(String metricName) { this.metricName = metricName; return this; } /** * 统计量名称。 */ public Builder statistics(String statistics) { this.statistics = statistics; return this; } /** * 阈值。 */ public Builder threshold(Double threshold) { this.threshold = threshold; return this; } /** * 统计窗口。单位为秒。 */ public Builder timeWindow(Integer timeWindow) { this.timeWindow = timeWindow; return this; } public ByLoadScalingRule build() { return new ByLoadScalingRule(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy