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

com.aliyun.sdk.service.ens20171110.models.RescaleDeviceServiceRequest Maven / Gradle / Ivy

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

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

/**
 * 
 * {@link RescaleDeviceServiceRequest} extends {@link RequestModel}
 *
 * 

RescaleDeviceServiceRequest

*/ public class RescaleDeviceServiceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AppId") private String appId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ImageId") private String imageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpType") private Integer ipType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RescaleLevel") @com.aliyun.core.annotation.Validation(required = true) private String rescaleLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RescaleType") @com.aliyun.core.annotation.Validation(required = true) private String rescaleType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ResourceInfo") private String resourceInfo; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ResourceSelector") @com.aliyun.core.annotation.Validation(required = true) private String resourceSelector; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceSpec") private String resourceSpec; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServiceId") private String serviceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Timeout") private Long timeout; private RescaleDeviceServiceRequest(Builder builder) { super(builder); this.appId = builder.appId; this.imageId = builder.imageId; this.ipType = builder.ipType; this.rescaleLevel = builder.rescaleLevel; this.rescaleType = builder.rescaleType; this.resourceInfo = builder.resourceInfo; this.resourceSelector = builder.resourceSelector; this.resourceSpec = builder.resourceSpec; this.serviceId = builder.serviceId; this.timeout = builder.timeout; } public static Builder builder() { return new Builder(); } public static RescaleDeviceServiceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appId */ public String getAppId() { return this.appId; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return ipType */ public Integer getIpType() { return this.ipType; } /** * @return rescaleLevel */ public String getRescaleLevel() { return this.rescaleLevel; } /** * @return rescaleType */ public String getRescaleType() { return this.rescaleType; } /** * @return resourceInfo */ public String getResourceInfo() { return this.resourceInfo; } /** * @return resourceSelector */ public String getResourceSelector() { return this.resourceSelector; } /** * @return resourceSpec */ public String getResourceSpec() { return this.resourceSpec; } /** * @return serviceId */ public String getServiceId() { return this.serviceId; } /** * @return timeout */ public Long getTimeout() { return this.timeout; } public static final class Builder extends Request.Builder { private String appId; private String imageId; private Integer ipType; private String rescaleLevel; private String rescaleType; private String resourceInfo; private String resourceSelector; private String resourceSpec; private String serviceId; private Long timeout; private Builder() { super(); } private Builder(RescaleDeviceServiceRequest request) { super(request); this.appId = request.appId; this.imageId = request.imageId; this.ipType = request.ipType; this.rescaleLevel = request.rescaleLevel; this.rescaleType = request.rescaleType; this.resourceInfo = request.resourceInfo; this.resourceSelector = request.resourceSelector; this.resourceSpec = request.resourceSpec; this.serviceId = request.serviceId; this.timeout = request.timeout; } /** *

The ID of the application.

* * example: *

7aedc50b-b1cb-4a7c-9e3d-4cf3c9ee55a4

*/ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** *

The ID of the image.

* * example: *

m-5rynw9g1ow1e928lb83bqmbnf

*/ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** *

The type of the network. The value must be of the enumerated data type. Valid values:

*
    *
  • 1 (default): Internet
  • *
  • 2: internal network
  • *
* * example: *

1

*/ public Builder ipType(Integer ipType) { this.putQueryParameter("IpType", ipType); this.ipType = ipType; return this; } /** *

The region level of the scale-out. Set the value to RegionId. RegionId specifies that resource scale-out is performed based on the ID of the edge node.

*

This parameter is required.

* * example: *

RegionId

*/ public Builder rescaleLevel(String rescaleLevel) { this.putQueryParameter("RescaleLevel", rescaleLevel); this.rescaleLevel = rescaleLevel; return this; } /** *

The scaling operation. Set the value to Add to add new resources.

*

This parameter is required.

* * example: *

Add

*/ public Builder rescaleType(String rescaleType) { this.putQueryParameter("RescaleType", rescaleType); this.rescaleType = rescaleType; return this; } /** *

The information about the resource specification template. The value must be a JSON string.

* * example: *

{"imageId":"m-5s4z4c10avgwvwtn33gl2vgob","ipType":2,"specName":"ens.pfb-c3m7.medium"}

*/ public Builder resourceInfo(String resourceInfo) { this.putBodyParameter("ResourceInfo", resourceInfo); this.resourceInfo = resourceInfo; return this; } /** *

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 }]

*/ public Builder resourceSelector(String resourceSelector) { this.putBodyParameter("ResourceSelector", resourceSelector); this.resourceSelector = resourceSelector; return this; } /** *

The resource specification.

* * example: *

ens.a6e.large

*/ public Builder resourceSpec(String resourceSpec) { this.putQueryParameter("ResourceSpec", resourceSpec); this.resourceSpec = resourceSpec; return this; } /** *

The ID of the service.

* * example: *

service-01c6dd6e93f040698566

*/ public Builder serviceId(String serviceId) { this.putQueryParameter("ServiceId", serviceId); this.serviceId = serviceId; return this; } /** *

The timeout period for asynchronous scale-out. Unit: seconds. Default value: 300.

* * example: *

1800

*/ public Builder timeout(Long timeout) { this.putQueryParameter("Timeout", timeout); this.timeout = timeout; return this; } @Override public RescaleDeviceServiceRequest build() { return new RescaleDeviceServiceRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy