![JAR search and dependency download from the Maven repository](/logo.png)
com.aliyun.sdk.service.edas20170801.models.DescribeApplicationScalingRulesResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-edas20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.edas20170801.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* DescribeApplicationScalingRulesResponseBody
*/
public class DescribeApplicationScalingRulesResponseBody extends TeaModel {
@NameInMap("AppScalingRules")
private AppScalingRules appScalingRules;
@NameInMap("Code")
private Integer code;
@NameInMap("Message")
private String message;
@NameInMap("RequestId")
private String requestId;
private DescribeApplicationScalingRulesResponseBody(Builder builder) {
this.appScalingRules = builder.appScalingRules;
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationScalingRulesResponseBody create() {
return builder().build();
}
/**
* @return appScalingRules
*/
public AppScalingRules getAppScalingRules() {
return this.appScalingRules;
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private AppScalingRules appScalingRules;
private Integer code;
private String message;
private String requestId;
/**
* The auto scaling policies of the application.
*/
public Builder appScalingRules(AppScalingRules appScalingRules) {
this.appScalingRules = appScalingRules;
return this;
}
/**
* The HTTP status code that is returned.
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* The message that is returned.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeApplicationScalingRulesResponseBody build() {
return new DescribeApplicationScalingRulesResponseBody(this);
}
}
public static class Policies extends TeaModel {
@NameInMap("PeriodSeconds")
private Integer periodSeconds;
@NameInMap("Type")
private String type;
@NameInMap("Value")
private String value;
private Policies(Builder builder) {
this.periodSeconds = builder.periodSeconds;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Policies create() {
return builder().build();
}
/**
* @return periodSeconds
*/
public Integer getPeriodSeconds() {
return this.periodSeconds;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private Integer periodSeconds;
private String type;
private String value;
/**
* PeriodSeconds.
*/
public Builder periodSeconds(Integer periodSeconds) {
this.periodSeconds = periodSeconds;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Policies build() {
return new Policies(this);
}
}
}
public static class ScaleDown extends TeaModel {
@NameInMap("Policies")
private java.util.List < Policies> policies;
@NameInMap("SelectPolicy")
private String selectPolicy;
@NameInMap("StabilizationWindowSeconds")
private Integer stabilizationWindowSeconds;
private ScaleDown(Builder builder) {
this.policies = builder.policies;
this.selectPolicy = builder.selectPolicy;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
}
public static Builder builder() {
return new Builder();
}
public static ScaleDown create() {
return builder().build();
}
/**
* @return policies
*/
public java.util.List < Policies> getPolicies() {
return this.policies;
}
/**
* @return selectPolicy
*/
public String getSelectPolicy() {
return this.selectPolicy;
}
/**
* @return stabilizationWindowSeconds
*/
public Integer getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
public static final class Builder {
private java.util.List < Policies> policies;
private String selectPolicy;
private Integer stabilizationWindowSeconds;
/**
* Policies.
*/
public Builder policies(java.util.List < Policies> policies) {
this.policies = policies;
return this;
}
/**
* SelectPolicy.
*/
public Builder selectPolicy(String selectPolicy) {
this.selectPolicy = selectPolicy;
return this;
}
/**
* StabilizationWindowSeconds.
*/
public Builder stabilizationWindowSeconds(Integer stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
public ScaleDown build() {
return new ScaleDown(this);
}
}
}
public static class ScaleUpPolicies extends TeaModel {
@NameInMap("PeriodSeconds")
private Integer periodSeconds;
@NameInMap("Type")
private String type;
@NameInMap("Value")
private String value;
private ScaleUpPolicies(Builder builder) {
this.periodSeconds = builder.periodSeconds;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static ScaleUpPolicies create() {
return builder().build();
}
/**
* @return periodSeconds
*/
public Integer getPeriodSeconds() {
return this.periodSeconds;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private Integer periodSeconds;
private String type;
private String value;
/**
* PeriodSeconds.
*/
public Builder periodSeconds(Integer periodSeconds) {
this.periodSeconds = periodSeconds;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public ScaleUpPolicies build() {
return new ScaleUpPolicies(this);
}
}
}
public static class ScaleUp extends TeaModel {
@NameInMap("Policies")
private java.util.List < ScaleUpPolicies> policies;
@NameInMap("SelectPolicy")
private String selectPolicy;
@NameInMap("StabilizationWindowSeconds")
private Integer stabilizationWindowSeconds;
private ScaleUp(Builder builder) {
this.policies = builder.policies;
this.selectPolicy = builder.selectPolicy;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
}
public static Builder builder() {
return new Builder();
}
public static ScaleUp create() {
return builder().build();
}
/**
* @return policies
*/
public java.util.List < ScaleUpPolicies> getPolicies() {
return this.policies;
}
/**
* @return selectPolicy
*/
public String getSelectPolicy() {
return this.selectPolicy;
}
/**
* @return stabilizationWindowSeconds
*/
public Integer getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
public static final class Builder {
private java.util.List < ScaleUpPolicies> policies;
private String selectPolicy;
private Integer stabilizationWindowSeconds;
/**
* Policies.
*/
public Builder policies(java.util.List < ScaleUpPolicies> policies) {
this.policies = policies;
return this;
}
/**
* SelectPolicy.
*/
public Builder selectPolicy(String selectPolicy) {
this.selectPolicy = selectPolicy;
return this;
}
/**
* StabilizationWindowSeconds.
*/
public Builder stabilizationWindowSeconds(Integer stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
public ScaleUp build() {
return new ScaleUp(this);
}
}
}
public static class Behaviour extends TeaModel {
@NameInMap("ScaleDown")
private ScaleDown scaleDown;
@NameInMap("ScaleUp")
private ScaleUp scaleUp;
private Behaviour(Builder builder) {
this.scaleDown = builder.scaleDown;
this.scaleUp = builder.scaleUp;
}
public static Builder builder() {
return new Builder();
}
public static Behaviour create() {
return builder().build();
}
/**
* @return scaleDown
*/
public ScaleDown getScaleDown() {
return this.scaleDown;
}
/**
* @return scaleUp
*/
public ScaleUp getScaleUp() {
return this.scaleUp;
}
public static final class Builder {
private ScaleDown scaleDown;
private ScaleUp scaleUp;
/**
* ScaleDown.
*/
public Builder scaleDown(ScaleDown scaleDown) {
this.scaleDown = scaleDown;
return this;
}
/**
* ScaleUp.
*/
public Builder scaleUp(ScaleUp scaleUp) {
this.scaleUp = scaleUp;
return this;
}
public Behaviour build() {
return new Behaviour(this);
}
}
}
public static class Metrics extends TeaModel {
@NameInMap("MetricTargetAverageUtilization")
private Integer metricTargetAverageUtilization;
@NameInMap("MetricType")
private String metricType;
private Metrics(Builder builder) {
this.metricTargetAverageUtilization = builder.metricTargetAverageUtilization;
this.metricType = builder.metricType;
}
public static Builder builder() {
return new Builder();
}
public static Metrics create() {
return builder().build();
}
/**
* @return metricTargetAverageUtilization
*/
public Integer getMetricTargetAverageUtilization() {
return this.metricTargetAverageUtilization;
}
/**
* @return metricType
*/
public String getMetricType() {
return this.metricType;
}
public static final class Builder {
private Integer metricTargetAverageUtilization;
private String metricType;
/**
* This parameter is deprecated.
*/
public Builder metricTargetAverageUtilization(Integer metricTargetAverageUtilization) {
this.metricTargetAverageUtilization = metricTargetAverageUtilization;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder metricType(String metricType) {
this.metricType = metricType;
return this;
}
public Metrics build() {
return new Metrics(this);
}
}
}
public static class Metric extends TeaModel {
@NameInMap("MaxReplicas")
private Integer maxReplicas;
@NameInMap("Metrics")
private java.util.List < Metrics> metrics;
@NameInMap("MinReplicas")
private Integer minReplicas;
private Metric(Builder builder) {
this.maxReplicas = builder.maxReplicas;
this.metrics = builder.metrics;
this.minReplicas = builder.minReplicas;
}
public static Builder builder() {
return new Builder();
}
public static Metric create() {
return builder().build();
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return metrics
*/
public java.util.List < Metrics> getMetrics() {
return this.metrics;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
public static final class Builder {
private Integer maxReplicas;
private java.util.List < Metrics> metrics;
private Integer minReplicas;
/**
* This parameter is deprecated.
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder metrics(java.util.List < Metrics> metrics) {
this.metrics = metrics;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
public Metric build() {
return new Metric(this);
}
}
}
public static class Triggers extends TeaModel {
@NameInMap("MetaData")
private String metaData;
@NameInMap("Name")
private String name;
@NameInMap("Type")
private String type;
private Triggers(Builder builder) {
this.metaData = builder.metaData;
this.name = builder.name;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Triggers create() {
return builder().build();
}
/**
* @return metaData
*/
public String getMetaData() {
return this.metaData;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String metaData;
private String name;
private String type;
/**
* The metadata of the trigger.
*/
public Builder metaData(String metaData) {
this.metaData = metaData;
return this;
}
/**
* The name of the trigger.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* The type of the trigger. Valid values: cron and app_metric.
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Triggers build() {
return new Triggers(this);
}
}
}
public static class Trigger extends TeaModel {
@NameInMap("MaxReplicas")
private Integer maxReplicas;
@NameInMap("MinReplicas")
private Integer minReplicas;
@NameInMap("Triggers")
private java.util.List < Triggers> triggers;
private Trigger(Builder builder) {
this.maxReplicas = builder.maxReplicas;
this.minReplicas = builder.minReplicas;
this.triggers = builder.triggers;
}
public static Builder builder() {
return new Builder();
}
public static Trigger create() {
return builder().build();
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
/**
* @return triggers
*/
public java.util.List < Triggers> getTriggers() {
return this.triggers;
}
public static final class Builder {
private Integer maxReplicas;
private Integer minReplicas;
private java.util.List < Triggers> triggers;
/**
* The maximum number of replicas. The upper limit is 1000.
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* The minimum number of replicas. The lower limit is 0.
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* The configurations of the trigger.
*/
public Builder triggers(java.util.List < Triggers> triggers) {
this.triggers = triggers;
return this;
}
public Trigger build() {
return new Trigger(this);
}
}
}
public static class Result extends TeaModel {
@NameInMap("AppId")
private String appId;
@NameInMap("Behaviour")
private Behaviour behaviour;
@NameInMap("CreateTime")
private Long createTime;
@NameInMap("LastDisableTime")
private Long lastDisableTime;
@NameInMap("MaxReplicas")
private Integer maxReplicas;
@NameInMap("Metric")
private Metric metric;
@NameInMap("MinReplicas")
private Integer minReplicas;
@NameInMap("ScaleRuleEnabled")
private Boolean scaleRuleEnabled;
@NameInMap("ScaleRuleName")
private String scaleRuleName;
@NameInMap("ScaleRuleType")
private String scaleRuleType;
@NameInMap("Trigger")
private Trigger trigger;
@NameInMap("UpdateTime")
private Long updateTime;
private Result(Builder builder) {
this.appId = builder.appId;
this.behaviour = builder.behaviour;
this.createTime = builder.createTime;
this.lastDisableTime = builder.lastDisableTime;
this.maxReplicas = builder.maxReplicas;
this.metric = builder.metric;
this.minReplicas = builder.minReplicas;
this.scaleRuleEnabled = builder.scaleRuleEnabled;
this.scaleRuleName = builder.scaleRuleName;
this.scaleRuleType = builder.scaleRuleType;
this.trigger = builder.trigger;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Result create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return behaviour
*/
public Behaviour getBehaviour() {
return this.behaviour;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return lastDisableTime
*/
public Long getLastDisableTime() {
return this.lastDisableTime;
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return metric
*/
public Metric getMetric() {
return this.metric;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
/**
* @return scaleRuleEnabled
*/
public Boolean getScaleRuleEnabled() {
return this.scaleRuleEnabled;
}
/**
* @return scaleRuleName
*/
public String getScaleRuleName() {
return this.scaleRuleName;
}
/**
* @return scaleRuleType
*/
public String getScaleRuleType() {
return this.scaleRuleType;
}
/**
* @return trigger
*/
public Trigger getTrigger() {
return this.trigger;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String appId;
private Behaviour behaviour;
private Long createTime;
private Long lastDisableTime;
private Integer maxReplicas;
private Metric metric;
private Integer minReplicas;
private Boolean scaleRuleEnabled;
private String scaleRuleName;
private String scaleRuleType;
private Trigger trigger;
private Long updateTime;
/**
* The ID of the application to which the auto scaling policy belongs.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* Behaviour.
*/
public Builder behaviour(Behaviour behaviour) {
this.behaviour = behaviour;
return this;
}
/**
* The time when the auto scaling policy was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* The time when the auto scaling policy was last disabled. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
*/
public Builder lastDisableTime(Long lastDisableTime) {
this.lastDisableTime = lastDisableTime;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder metric(Metric metric) {
this.metric = metric;
return this;
}
/**
* This parameter is deprecated.
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* Indicates whether the auto scaling policy is enabled. Valid values:
*
*
* * **true**: The auto scaling policy is enabled.
* * **false**: The auto scaling policy is disabled.
*/
public Builder scaleRuleEnabled(Boolean scaleRuleEnabled) {
this.scaleRuleEnabled = scaleRuleEnabled;
return this;
}
/**
* The name of the auto scaling policy.
*/
public Builder scaleRuleName(String scaleRuleName) {
this.scaleRuleName = scaleRuleName;
return this;
}
/**
* The type of the auto scaling policy. The value is fixed to trigger.
*/
public Builder scaleRuleType(String scaleRuleType) {
this.scaleRuleType = scaleRuleType;
return this;
}
/**
* The configurations of the trigger.
*/
public Builder trigger(Trigger trigger) {
this.trigger = trigger;
return this;
}
/**
* The time when the auto scaling policy was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Result build() {
return new Result(this);
}
}
}
public static class AppScalingRules extends TeaModel {
@NameInMap("CurrentPage")
private Integer currentPage;
@NameInMap("PageSize")
private Integer pageSize;
@NameInMap("Result")
private java.util.List < Result> result;
@NameInMap("TotalSize")
private Long totalSize;
private AppScalingRules(Builder builder) {
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.result = builder.result;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static AppScalingRules create() {
return builder().build();
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return result
*/
public java.util.List < Result> getResult() {
return this.result;
}
/**
* @return totalSize
*/
public Long getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private Integer currentPage;
private Integer pageSize;
private java.util.List < Result> result;
private Long totalSize;
/**
* The page number of the returned page.
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* The number of auto scaling policies returned per page.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The information about auto scaling policies.
*/
public Builder result(java.util.List < Result> result) {
this.result = result;
return this;
}
/**
* The total number of auto scaling policies.
*/
public Builder totalSize(Long totalSize) {
this.totalSize = totalSize;
return this;
}
public AppScalingRules build() {
return new AppScalingRules(this);
}
}
}
}