com.aliyun.ens20171110.models.RescaleApplicationRequest Maven / Gradle / Ivy
Show all versions of ens20171110 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;
import com.aliyun.tea.*;
public class RescaleApplicationRequest extends TeaModel {
/**
* The ID of the application. You can query the application ID by calling the ListApplications operation.
* This parameter is required.
*
* example:
* 474bdef0-d149-4695-abfb-52912d9143f0
*/
@NameInMap("AppId")
public String appId;
/**
* The level of resource scaling. The value must be of the enumerated data type. Valid values:
*
* - AreaIspCode (default): scales resources based on the Internet service provider (ISP).
* - RegionId: scales resources based on the edge node.
* - InstanceId: scales resources based on the instance ID. Resource scale-out specifies resource hosting and scale-in specifies resource release.
*
*
* example:
* RegionId
*/
@NameInMap("RescaleLevel")
public String rescaleLevel;
/**
* The scaling operation. The value must be of the enumerated data type. Valid values:
*
* - Add: adds new resources.
* - Del: releases resources.
*
* This parameter is required.
*
* example:
* Add
*/
@NameInMap("RescaleType")
public String rescaleType;
/**
* The required resources. The value must be a JSON string.
* This parameter is required.
*
* example:
* [{\"regionCode\": \"cn-wuxi-telecom_unicom_cmcc-3\", \"ispCode\": \"telecom\", \"count\": 2 },{ \"regionCode\": \"cn-shanghai-cmcc\", \"count\": 4 }]
*/
@NameInMap("ResourceSelector")
public String resourceSelector;
/**
* The timeout period for asynchronous scaling. Unit: seconds. Default value: 300.
*
* example:
* 1800
*/
@NameInMap("Timeout")
public Integer timeout;
/**
* The version number of the application deployment package. By default, the stable version number is used. This parameter takes effect only when you perform resource scale-out.
*
* example:
* v2
*/
@NameInMap("ToAppVersion")
public String toAppVersion;
public static RescaleApplicationRequest build(java.util.Map map) throws Exception {
RescaleApplicationRequest self = new RescaleApplicationRequest();
return TeaModel.build(map, self);
}
public RescaleApplicationRequest setAppId(String appId) {
this.appId = appId;
return this;
}
public String getAppId() {
return this.appId;
}
public RescaleApplicationRequest setRescaleLevel(String rescaleLevel) {
this.rescaleLevel = rescaleLevel;
return this;
}
public String getRescaleLevel() {
return this.rescaleLevel;
}
public RescaleApplicationRequest setRescaleType(String rescaleType) {
this.rescaleType = rescaleType;
return this;
}
public String getRescaleType() {
return this.rescaleType;
}
public RescaleApplicationRequest setResourceSelector(String resourceSelector) {
this.resourceSelector = resourceSelector;
return this;
}
public String getResourceSelector() {
return this.resourceSelector;
}
public RescaleApplicationRequest setTimeout(Integer timeout) {
this.timeout = timeout;
return this;
}
public Integer getTimeout() {
return this.timeout;
}
public RescaleApplicationRequest setToAppVersion(String toAppVersion) {
this.toAppVersion = toAppVersion;
return this;
}
public String getToAppVersion() {
return this.toAppVersion;
}
}