index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationConfigRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationConfigRequest</p>
*/
public class DescribeApplicationConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VersionId")
private String versionId;
private DescribeApplicationConfigRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.versionId = builder.versionId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return versionId
*/
public String getVersionId() {
return this.versionId;
}
public static final class Builder extends Request.Builder<DescribeApplicationConfigRequest, Builder> {
private String appId;
private String versionId;
private Builder() {
super();
}
private Builder(DescribeApplicationConfigRequest request) {
super(request);
this.appId = request.appId;
this.versionId = request.versionId;
}
/**
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>0026ff7f-2b57-4127-bdd0-9bf202bb****</p>
*
* <strong>example:</strong>
* <p>0026ff7f-2b57-4127-bdd0-9bf202bb****</p>
*/
public Builder versionId(String versionId) {
this.putQueryParameter("VersionId", versionId);
this.versionId = versionId;
return this;
}
@Override
public DescribeApplicationConfigRequest build() {
return new DescribeApplicationConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationConfigResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponse</p>
*/
public class DescribeApplicationConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationConfigResponseBody body;
private DescribeApplicationConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationConfigResponseBody body);
@Override
DescribeApplicationConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationConfigResponse build() {
return new DescribeApplicationConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public class DescribeApplicationConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationConfigResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationConfigResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the application.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The returned error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the "<strong>Error codes</strong>" section of this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned information.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>01CF26C7-00A3-4AA6-BA76-7E95F2A3****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the configurations of an application were obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The configurations were obtained.</li>
* <li><strong>false</strong>: The configurations failed to be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>ac1a0b2215622246421415014e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationConfigResponseBody build() {
return new DescribeApplicationConfigResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class ConfigMapMountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
@com.aliyun.core.annotation.NameInMap("ConfigMapName")
private String configMapName;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
private ConfigMapMountDesc(Builder builder) {
this.configMapId = builder.configMapId;
this.configMapName = builder.configMapName;
this.key = builder.key;
this.mountPath = builder.mountPath;
}
public static Builder builder() {
return new Builder();
}
public static ConfigMapMountDesc create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
/**
* @return configMapName
*/
public String getConfigMapName() {
return this.configMapName;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
public static final class Builder {
private Long configMapId;
private String configMapName;
private String key;
private String mountPath;
private Builder() {
}
private Builder(ConfigMapMountDesc model) {
this.configMapId = model.configMapId;
this.configMapName = model.configMapName;
this.key = model.key;
this.mountPath = model.mountPath;
}
/**
* <p>The ID of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
return this;
}
/**
* <p>The name of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder configMapName(String configMapName) {
this.configMapName = configMapName;
return this;
}
/**
* <p>The key-value pair that is stored in the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The path on which the ConfigMap is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
public ConfigMapMountDesc build() {
return new ConfigMapMountDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class InitContainersConfigConfigMapMountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
@com.aliyun.core.annotation.NameInMap("ConfigMapName")
private String configMapName;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
private InitContainersConfigConfigMapMountDesc(Builder builder) {
this.configMapId = builder.configMapId;
this.configMapName = builder.configMapName;
this.key = builder.key;
this.mountPath = builder.mountPath;
}
public static Builder builder() {
return new Builder();
}
public static InitContainersConfigConfigMapMountDesc create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
/**
* @return configMapName
*/
public String getConfigMapName() {
return this.configMapName;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
public static final class Builder {
private Long configMapId;
private String configMapName;
private String key;
private String mountPath;
private Builder() {
}
private Builder(InitContainersConfigConfigMapMountDesc model) {
this.configMapId = model.configMapId;
this.configMapName = model.configMapName;
this.key = model.key;
this.mountPath = model.mountPath;
}
/**
* <p>The ID of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
return this;
}
/**
* <p>The name of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder configMapName(String configMapName) {
this.configMapName = configMapName;
return this;
}
/**
* <p>The key-value pair that is stored in the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The path on which the ConfigMap is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
public InitContainersConfigConfigMapMountDesc build() {
return new InitContainersConfigConfigMapMountDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class InitContainersConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private java.util.List<InitContainersConfigConfigMapMountDesc> configMapMountDesc;
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private InitContainersConfig(Builder builder) {
this.command = builder.command;
this.commandArgs = builder.commandArgs;
this.configMapMountDesc = builder.configMapMountDesc;
this.envs = builder.envs;
this.imageUrl = builder.imageUrl;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static InitContainersConfig create() {
return builder().build();
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return configMapMountDesc
*/
public java.util.List<InitContainersConfigConfigMapMountDesc> getConfigMapMountDesc() {
return this.configMapMountDesc;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String command;
private String commandArgs;
private java.util.List<InitContainersConfigConfigMapMountDesc> configMapMountDesc;
private String envs;
private String imageUrl;
private String name;
private Builder() {
}
private Builder(InitContainersConfig model) {
this.command = model.command;
this.commandArgs = model.commandArgs;
this.configMapMountDesc = model.configMapMountDesc;
this.envs = model.envs;
this.imageUrl = model.imageUrl;
this.name = model.name;
}
/**
* Command.
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* CommandArgs.
*/
public Builder commandArgs(String commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* ConfigMapMountDesc.
*/
public Builder configMapMountDesc(java.util.List<InitContainersConfigConfigMapMountDesc> configMapMountDesc) {
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* Envs.
*/
public Builder envs(String envs) {
this.envs = envs;
return this;
}
/**
* ImageUrl.
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
public InitContainersConfig build() {
return new InitContainersConfig(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class MountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("NasPath")
private String nasPath;
private MountDesc(Builder builder) {
this.mountPath = builder.mountPath;
this.nasPath = builder.nasPath;
}
public static Builder builder() {
return new Builder();
}
public static MountDesc create() {
return builder().build();
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return nasPath
*/
public String getNasPath() {
return this.nasPath;
}
public static final class Builder {
private String mountPath;
private String nasPath;
private Builder() {
}
private Builder(MountDesc model) {
this.mountPath = model.mountPath;
this.nasPath = model.nasPath;
}
/**
* <p>The path on which the NAS file system is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* <p>The directory in the NAS file system.</p>
*
* <strong>example:</strong>
* <p>/</p>
*/
public Builder nasPath(String nasPath) {
this.nasPath = nasPath;
return this;
}
public MountDesc build() {
return new MountDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class OssMountDescs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("bucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("bucketPath")
private String bucketPath;
@com.aliyun.core.annotation.NameInMap("mountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("readOnly")
private Boolean readOnly;
private OssMountDescs(Builder builder) {
this.bucketName = builder.bucketName;
this.bucketPath = builder.bucketPath;
this.mountPath = builder.mountPath;
this.readOnly = builder.readOnly;
}
public static Builder builder() {
return new Builder();
}
public static OssMountDescs create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return bucketPath
*/
public String getBucketPath() {
return this.bucketPath;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return readOnly
*/
public Boolean getReadOnly() {
return this.readOnly;
}
public static final class Builder {
private String bucketName;
private String bucketPath;
private String mountPath;
private Boolean readOnly;
private Builder() {
}
private Builder(OssMountDescs model) {
this.bucketName = model.bucketName;
this.bucketPath = model.bucketPath;
this.mountPath = model.mountPath;
this.readOnly = model.readOnly;
}
/**
* <p>The name of the OSS bucket.</p>
*
* <strong>example:</strong>
* <p>oss-bucket</p>
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* <p>The directory or object in OSS. If the specified directory or object does not exist, an error is returned.</p>
*
* <strong>example:</strong>
* <p>data/user.data</p>
*/
public Builder bucketPath(String bucketPath) {
this.bucketPath = bucketPath;
return this;
}
/**
* <p>The path of the container in SAE. The parameter value that you specified overwrites the original value. If the specified path does not exist, SAE automatically creates the path.</p>
*
* <strong>example:</strong>
* <p>/usr/data/user.data</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* <p>Indicates whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application has the read-only permissions.</li>
* <li><strong>false</strong>: The application has the read and write permissions.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public OssMountDescs build() {
return new OssMountDescs(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class SecretMountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("SecretId")
private Long secretId;
@com.aliyun.core.annotation.NameInMap("SecretName")
private String secretName;
private SecretMountDesc(Builder builder) {
this.key = builder.key;
this.mountPath = builder.mountPath;
this.secretId = builder.secretId;
this.secretName = builder.secretName;
}
public static Builder builder() {
return new Builder();
}
public static SecretMountDesc create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return secretId
*/
public Long getSecretId() {
return this.secretId;
}
/**
* @return secretName
*/
public String getSecretName() {
return this.secretName;
}
public static final class Builder {
private String key;
private String mountPath;
private Long secretId;
private String secretName;
private Builder() {
}
private Builder(SecretMountDesc model) {
this.key = model.key;
this.mountPath = model.mountPath;
this.secretId = model.secretId;
this.secretName = model.secretName;
}
/**
* <p>The key-value pair that is stored in the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The path on which the NAS file system is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* SecretId.
*/
public Builder secretId(Long secretId) {
this.secretId = secretId;
return this;
}
/**
* SecretName.
*/
public Builder secretName(String secretName) {
this.secretName = secretName;
return this;
}
public SecretMountDesc build() {
return new SecretMountDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class SidecarContainersConfigConfigMapMountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
@com.aliyun.core.annotation.NameInMap("ConfigMapName")
private String configMapName;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
private SidecarContainersConfigConfigMapMountDesc(Builder builder) {
this.configMapId = builder.configMapId;
this.configMapName = builder.configMapName;
this.key = builder.key;
this.mountPath = builder.mountPath;
}
public static Builder builder() {
return new Builder();
}
public static SidecarContainersConfigConfigMapMountDesc create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
/**
* @return configMapName
*/
public String getConfigMapName() {
return this.configMapName;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
public static final class Builder {
private Long configMapId;
private String configMapName;
private String key;
private String mountPath;
private Builder() {
}
private Builder(SidecarContainersConfigConfigMapMountDesc model) {
this.configMapId = model.configMapId;
this.configMapName = model.configMapName;
this.key = model.key;
this.mountPath = model.mountPath;
}
/**
* <p>The ID of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
return this;
}
/**
* <p>The name of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder configMapName(String configMapName) {
this.configMapName = configMapName;
return this;
}
/**
* <p>The key-value pair that is stored in the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The path on which the NAS file system is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
public SidecarContainersConfigConfigMapMountDesc build() {
return new SidecarContainersConfigConfigMapMountDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class EmptyDirDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private EmptyDirDesc(Builder builder) {
this.mountPath = builder.mountPath;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static EmptyDirDesc create() {
return builder().build();
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String mountPath;
private String name;
private Builder() {
}
private Builder(EmptyDirDesc model) {
this.mountPath = model.mountPath;
this.name = model.name;
}
/**
* <p>The path on which the NAS file system is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
public EmptyDirDesc build() {
return new EmptyDirDesc(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class SidecarContainersConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private java.util.List<SidecarContainersConfigConfigMapMountDesc> configMapMountDesc;
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("EmptyDirDesc")
private java.util.List<EmptyDirDesc> emptyDirDesc;
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private SidecarContainersConfig(Builder builder) {
this.acrInstanceId = builder.acrInstanceId;
this.command = builder.command;
this.commandArgs = builder.commandArgs;
this.configMapMountDesc = builder.configMapMountDesc;
this.cpu = builder.cpu;
this.emptyDirDesc = builder.emptyDirDesc;
this.envs = builder.envs;
this.imageUrl = builder.imageUrl;
this.memory = builder.memory;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static SidecarContainersConfig create() {
return builder().build();
}
/**
* @return acrInstanceId
*/
public String getAcrInstanceId() {
return this.acrInstanceId;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return configMapMountDesc
*/
public java.util.List<SidecarContainersConfigConfigMapMountDesc> getConfigMapMountDesc() {
return this.configMapMountDesc;
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return emptyDirDesc
*/
public java.util.List<EmptyDirDesc> getEmptyDirDesc() {
return this.emptyDirDesc;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String acrInstanceId;
private String command;
private String commandArgs;
private java.util.List<SidecarContainersConfigConfigMapMountDesc> configMapMountDesc;
private Integer cpu;
private java.util.List<EmptyDirDesc> emptyDirDesc;
private String envs;
private String imageUrl;
private Integer memory;
private String name;
private Builder() {
}
private Builder(SidecarContainersConfig model) {
this.acrInstanceId = model.acrInstanceId;
this.command = model.command;
this.commandArgs = model.commandArgs;
this.configMapMountDesc = model.configMapMountDesc;
this.cpu = model.cpu;
this.emptyDirDesc = model.emptyDirDesc;
this.envs = model.envs;
this.imageUrl = model.imageUrl;
this.memory = model.memory;
this.name = model.name;
}
/**
* AcrInstanceId.
*/
public Builder acrInstanceId(String acrInstanceId) {
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* Command.
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* CommandArgs.
*/
public Builder commandArgs(String commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* ConfigMapMountDesc.
*/
public Builder configMapMountDesc(java.util.List<SidecarContainersConfigConfigMapMountDesc> configMapMountDesc) {
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* Cpu.
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* EmptyDirDesc.
*/
public Builder emptyDirDesc(java.util.List<EmptyDirDesc> emptyDirDesc) {
this.emptyDirDesc = emptyDirDesc;
return this;
}
/**
* Envs.
*/
public Builder envs(String envs) {
this.envs = envs;
return this;
}
/**
* ImageUrl.
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Memory.
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
public SidecarContainersConfig build() {
return new SidecarContainersConfig(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeApplicationConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationConfigResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AcrAssumeRoleArn")
private String acrAssumeRoleArn;
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@com.aliyun.core.annotation.NameInMap("AppDescription")
private String appDescription;
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("AppSource")
private String appSource;
@com.aliyun.core.annotation.NameInMap("AssociateEip")
private Boolean associateEip;
@com.aliyun.core.annotation.NameInMap("BaseAppId")
private String baseAppId;
@com.aliyun.core.annotation.NameInMap("BatchWaitTime")
private Integer batchWaitTime;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private java.util.List<ConfigMapMountDesc> configMapMountDesc;
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("CustomHostAlias")
private String customHostAlias;
@com.aliyun.core.annotation.NameInMap("CustomImageNetworkType")
private String customImageNetworkType;
@com.aliyun.core.annotation.NameInMap("DiskSize")
private Integer diskSize;
@com.aliyun.core.annotation.NameInMap("Dotnet")
private String dotnet;
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.NameInMap("EnableAhas")
private String enableAhas;
@com.aliyun.core.annotation.NameInMap("EnableCpuBurst")
private String enableCpuBurst;
@com.aliyun.core.annotation.NameInMap("EnableGreyTagRoute")
private Boolean enableGreyTagRoute;
@com.aliyun.core.annotation.NameInMap("EnableIdle")
private Boolean enableIdle;
@com.aliyun.core.annotation.NameInMap("EnableNewArms")
private Boolean enableNewArms;
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.NameInMap("GpuCount")
private String gpuCount;
@com.aliyun.core.annotation.NameInMap("GpuType")
private String gpuType;
@com.aliyun.core.annotation.NameInMap("ImagePullSecrets")
private String imagePullSecrets;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("InitContainersConfig")
private java.util.List<InitContainersConfig> initContainersConfig;
@com.aliyun.core.annotation.NameInMap("JarStartArgs")
private String jarStartArgs;
@com.aliyun.core.annotation.NameInMap("JarStartOptions")
private String jarStartOptions;
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.NameInMap("KafkaConfigs")
private String kafkaConfigs;
@com.aliyun.core.annotation.NameInMap("Liveness")
private String liveness;
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.NameInMap("MicroRegistration")
private String microRegistration;
@com.aliyun.core.annotation.NameInMap("MicroRegistrationConfig")
private String microRegistrationConfig;
@com.aliyun.core.annotation.NameInMap("MicroserviceEngineConfig")
private String microserviceEngineConfig;
@com.aliyun.core.annotation.NameInMap("MinReadyInstanceRatio")
private Integer minReadyInstanceRatio;
@com.aliyun.core.annotation.NameInMap("MinReadyInstances")
private Integer minReadyInstances;
@com.aliyun.core.annotation.NameInMap("MountDesc")
private java.util.List<MountDesc> mountDesc;
@com.aliyun.core.annotation.NameInMap("MountHost")
private String mountHost;
@com.aliyun.core.annotation.NameInMap("MseApplicationId")
private String mseApplicationId;
@com.aliyun.core.annotation.NameInMap("MseApplicationName")
private String mseApplicationName;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NasConfigs")
private String nasConfigs;
@com.aliyun.core.annotation.NameInMap("NasId")
private String nasId;
@com.aliyun.core.annotation.NameInMap("NewSaeVersion")
private String newSaeVersion;
@com.aliyun.core.annotation.NameInMap("OidcRoleName")
private String oidcRoleName;
@com.aliyun.core.annotation.NameInMap("OssAkId")
private String ossAkId;
@com.aliyun.core.annotation.NameInMap("OssAkSecret")
private String ossAkSecret;
@com.aliyun.core.annotation.NameInMap("OssMountDescs")
private java.util.List<OssMountDescs> ossMountDescs;
@com.aliyun.core.annotation.NameInMap("PackageType")
private String packageType;
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.NameInMap("Php")
private String php;
@com.aliyun.core.annotation.NameInMap("PhpArmsConfigLocation")
private String phpArmsConfigLocation;
@com.aliyun.core.annotation.NameInMap("PhpConfig")
private String phpConfig;
@com.aliyun.core.annotation.NameInMap("PhpConfigLocation")
private String phpConfigLocation;
@com.aliyun.core.annotation.NameInMap("PostStart")
private String postStart;
@com.aliyun.core.annotation.NameInMap("PreStop")
private String preStop;
@com.aliyun.core.annotation.NameInMap("ProgrammingLanguage")
private String programmingLanguage;
@com.aliyun.core.annotation.NameInMap("PvtzDiscovery")
private String pvtzDiscovery;
@com.aliyun.core.annotation.NameInMap("Python")
private String python;
@com.aliyun.core.annotation.NameInMap("PythonModules")
private String pythonModules;
@com.aliyun.core.annotation.NameInMap("Readiness")
private String readiness;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Replicas")
private Integer replicas;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("SecretMountDesc")
private java.util.List<SecretMountDesc> secretMountDesc;
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("ServiceTags")
private java.util.Map<String, String> serviceTags;
@com.aliyun.core.annotation.NameInMap("SidecarContainersConfig")
private java.util.List<SidecarContainersConfig> sidecarContainersConfig;
@com.aliyun.core.annotation.NameInMap("SlsConfigs")
private String slsConfigs;
@com.aliyun.core.annotation.NameInMap("StartupProbe")
private String startupProbe;
@com.aliyun.core.annotation.NameInMap("SwimlanePvtzDiscovery")
private String swimlanePvtzDiscovery;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.NameInMap("TerminationGracePeriodSeconds")
private Integer terminationGracePeriodSeconds;
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.NameInMap("TomcatConfig")
private String tomcatConfig;
@com.aliyun.core.annotation.NameInMap("UpdateStrategy")
private String updateStrategy;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("WarStartOptions")
private String warStartOptions;
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
private Data(Builder builder) {
this.acrAssumeRoleArn = builder.acrAssumeRoleArn;
this.acrInstanceId = builder.acrInstanceId;
this.appDescription = builder.appDescription;
this.appId = builder.appId;
this.appName = builder.appName;
this.appSource = builder.appSource;
this.associateEip = builder.associateEip;
this.baseAppId = builder.baseAppId;
this.batchWaitTime = builder.batchWaitTime;
this.clusterId = builder.clusterId;
this.command = builder.command;
this.commandArgs = builder.commandArgs;
this.configMapMountDesc = builder.configMapMountDesc;
this.cpu = builder.cpu;
this.customHostAlias = builder.customHostAlias;
this.customImageNetworkType = builder.customImageNetworkType;
this.diskSize = builder.diskSize;
this.dotnet = builder.dotnet;
this.edasContainerVersion = builder.edasContainerVersion;
this.enableAhas = builder.enableAhas;
this.enableCpuBurst = builder.enableCpuBurst;
this.enableGreyTagRoute = builder.enableGreyTagRoute;
this.enableIdle = builder.enableIdle;
this.enableNewArms = builder.enableNewArms;
this.envs = builder.envs;
this.gpuCount = builder.gpuCount;
this.gpuType = builder.gpuType;
this.imagePullSecrets = builder.imagePullSecrets;
this.imageUrl = builder.imageUrl;
this.initContainersConfig = builder.initContainersConfig;
this.jarStartArgs = builder.jarStartArgs;
this.jarStartOptions = builder.jarStartOptions;
this.jdk = builder.jdk;
this.kafkaConfigs = builder.kafkaConfigs;
this.liveness = builder.liveness;
this.memory = builder.memory;
this.microRegistration = builder.microRegistration;
this.microRegistrationConfig = builder.microRegistrationConfig;
this.microserviceEngineConfig = builder.microserviceEngineConfig;
this.minReadyInstanceRatio = builder.minReadyInstanceRatio;
this.minReadyInstances = builder.minReadyInstances;
this.mountDesc = builder.mountDesc;
this.mountHost = builder.mountHost;
this.mseApplicationId = builder.mseApplicationId;
this.mseApplicationName = builder.mseApplicationName;
this.namespaceId = builder.namespaceId;
this.nasConfigs = builder.nasConfigs;
this.nasId = builder.nasId;
this.newSaeVersion = builder.newSaeVersion;
this.oidcRoleName = builder.oidcRoleName;
this.ossAkId = builder.ossAkId;
this.ossAkSecret = builder.ossAkSecret;
this.ossMountDescs = builder.ossMountDescs;
this.packageType = builder.packageType;
this.packageUrl = builder.packageUrl;
this.packageVersion = builder.packageVersion;
this.php = builder.php;
this.phpArmsConfigLocation = builder.phpArmsConfigLocation;
this.phpConfig = builder.phpConfig;
this.phpConfigLocation = builder.phpConfigLocation;
this.postStart = builder.postStart;
this.preStop = builder.preStop;
this.programmingLanguage = builder.programmingLanguage;
this.pvtzDiscovery = builder.pvtzDiscovery;
this.python = builder.python;
this.pythonModules = builder.pythonModules;
this.readiness = builder.readiness;
this.regionId = builder.regionId;
this.replicas = builder.replicas;
this.resourceType = builder.resourceType;
this.secretMountDesc = builder.secretMountDesc;
this.securityGroupId = builder.securityGroupId;
this.serviceTags = builder.serviceTags;
this.sidecarContainersConfig = builder.sidecarContainersConfig;
this.slsConfigs = builder.slsConfigs;
this.startupProbe = builder.startupProbe;
this.swimlanePvtzDiscovery = builder.swimlanePvtzDiscovery;
this.tags = builder.tags;
this.terminationGracePeriodSeconds = builder.terminationGracePeriodSeconds;
this.timezone = builder.timezone;
this.tomcatConfig = builder.tomcatConfig;
this.updateStrategy = builder.updateStrategy;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.warStartOptions = builder.warStartOptions;
this.webContainer = builder.webContainer;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return acrAssumeRoleArn
*/
public String getAcrAssumeRoleArn() {
return this.acrAssumeRoleArn;
}
/**
* @return acrInstanceId
*/
public String getAcrInstanceId() {
return this.acrInstanceId;
}
/**
* @return appDescription
*/
public String getAppDescription() {
return this.appDescription;
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appSource
*/
public String getAppSource() {
return this.appSource;
}
/**
* @return associateEip
*/
public Boolean getAssociateEip() {
return this.associateEip;
}
/**
* @return baseAppId
*/
public String getBaseAppId() {
return this.baseAppId;
}
/**
* @return batchWaitTime
*/
public Integer getBatchWaitTime() {
return this.batchWaitTime;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return configMapMountDesc
*/
public java.util.List<ConfigMapMountDesc> getConfigMapMountDesc() {
return this.configMapMountDesc;
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return customHostAlias
*/
public String getCustomHostAlias() {
return this.customHostAlias;
}
/**
* @return customImageNetworkType
*/
public String getCustomImageNetworkType() {
return this.customImageNetworkType;
}
/**
* @return diskSize
*/
public Integer getDiskSize() {
return this.diskSize;
}
/**
* @return dotnet
*/
public String getDotnet() {
return this.dotnet;
}
/**
* @return edasContainerVersion
*/
public String getEdasContainerVersion() {
return this.edasContainerVersion;
}
/**
* @return enableAhas
*/
public String getEnableAhas() {
return this.enableAhas;
}
/**
* @return enableCpuBurst
*/
public String getEnableCpuBurst() {
return this.enableCpuBurst;
}
/**
* @return enableGreyTagRoute
*/
public Boolean getEnableGreyTagRoute() {
return this.enableGreyTagRoute;
}
/**
* @return enableIdle
*/
public Boolean getEnableIdle() {
return this.enableIdle;
}
/**
* @return enableNewArms
*/
public Boolean getEnableNewArms() {
return this.enableNewArms;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return gpuCount
*/
public String getGpuCount() {
return this.gpuCount;
}
/**
* @return gpuType
*/
public String getGpuType() {
return this.gpuType;
}
/**
* @return imagePullSecrets
*/
public String getImagePullSecrets() {
return this.imagePullSecrets;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return initContainersConfig
*/
public java.util.List<InitContainersConfig> getInitContainersConfig() {
return this.initContainersConfig;
}
/**
* @return jarStartArgs
*/
public String getJarStartArgs() {
return this.jarStartArgs;
}
/**
* @return jarStartOptions
*/
public String getJarStartOptions() {
return this.jarStartOptions;
}
/**
* @return jdk
*/
public String getJdk() {
return this.jdk;
}
/**
* @return kafkaConfigs
*/
public String getKafkaConfigs() {
return this.kafkaConfigs;
}
/**
* @return liveness
*/
public String getLiveness() {
return this.liveness;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return microRegistration
*/
public String getMicroRegistration() {
return this.microRegistration;
}
/**
* @return microRegistrationConfig
*/
public String getMicroRegistrationConfig() {
return this.microRegistrationConfig;
}
/**
* @return microserviceEngineConfig
*/
public String getMicroserviceEngineConfig() {
return this.microserviceEngineConfig;
}
/**
* @return minReadyInstanceRatio
*/
public Integer getMinReadyInstanceRatio() {
return this.minReadyInstanceRatio;
}
/**
* @return minReadyInstances
*/
public Integer getMinReadyInstances() {
return this.minReadyInstances;
}
/**
* @return mountDesc
*/
public java.util.List<MountDesc> getMountDesc() {
return this.mountDesc;
}
/**
* @return mountHost
*/
public String getMountHost() {
return this.mountHost;
}
/**
* @return mseApplicationId
*/
public String getMseApplicationId() {
return this.mseApplicationId;
}
/**
* @return mseApplicationName
*/
public String getMseApplicationName() {
return this.mseApplicationName;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return nasConfigs
*/
public String getNasConfigs() {
return this.nasConfigs;
}
/**
* @return nasId
*/
public String getNasId() {
return this.nasId;
}
/**
* @return newSaeVersion
*/
public String getNewSaeVersion() {
return this.newSaeVersion;
}
/**
* @return oidcRoleName
*/
public String getOidcRoleName() {
return this.oidcRoleName;
}
/**
* @return ossAkId
*/
public String getOssAkId() {
return this.ossAkId;
}
/**
* @return ossAkSecret
*/
public String getOssAkSecret() {
return this.ossAkSecret;
}
/**
* @return ossMountDescs
*/
public java.util.List<OssMountDescs> getOssMountDescs() {
return this.ossMountDescs;
}
/**
* @return packageType
*/
public String getPackageType() {
return this.packageType;
}
/**
* @return packageUrl
*/
public String getPackageUrl() {
return this.packageUrl;
}
/**
* @return packageVersion
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
* @return php
*/
public String getPhp() {
return this.php;
}
/**
* @return phpArmsConfigLocation
*/
public String getPhpArmsConfigLocation() {
return this.phpArmsConfigLocation;
}
/**
* @return phpConfig
*/
public String getPhpConfig() {
return this.phpConfig;
}
/**
* @return phpConfigLocation
*/
public String getPhpConfigLocation() {
return this.phpConfigLocation;
}
/**
* @return postStart
*/
public String getPostStart() {
return this.postStart;
}
/**
* @return preStop
*/
public String getPreStop() {
return this.preStop;
}
/**
* @return programmingLanguage
*/
public String getProgrammingLanguage() {
return this.programmingLanguage;
}
/**
* @return pvtzDiscovery
*/
public String getPvtzDiscovery() {
return this.pvtzDiscovery;
}
/**
* @return python
*/
public String getPython() {
return this.python;
}
/**
* @return pythonModules
*/
public String getPythonModules() {
return this.pythonModules;
}
/**
* @return readiness
*/
public String getReadiness() {
return this.readiness;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return replicas
*/
public Integer getReplicas() {
return this.replicas;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return secretMountDesc
*/
public java.util.List<SecretMountDesc> getSecretMountDesc() {
return this.secretMountDesc;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return serviceTags
*/
public java.util.Map<String, String> getServiceTags() {
return this.serviceTags;
}
/**
* @return sidecarContainersConfig
*/
public java.util.List<SidecarContainersConfig> getSidecarContainersConfig() {
return this.sidecarContainersConfig;
}
/**
* @return slsConfigs
*/
public String getSlsConfigs() {
return this.slsConfigs;
}
/**
* @return startupProbe
*/
public String getStartupProbe() {
return this.startupProbe;
}
/**
* @return swimlanePvtzDiscovery
*/
public String getSwimlanePvtzDiscovery() {
return this.swimlanePvtzDiscovery;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return terminationGracePeriodSeconds
*/
public Integer getTerminationGracePeriodSeconds() {
return this.terminationGracePeriodSeconds;
}
/**
* @return timezone
*/
public String getTimezone() {
return this.timezone;
}
/**
* @return tomcatConfig
*/
public String getTomcatConfig() {
return this.tomcatConfig;
}
/**
* @return updateStrategy
*/
public String getUpdateStrategy() {
return this.updateStrategy;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return warStartOptions
*/
public String getWarStartOptions() {
return this.warStartOptions;
}
/**
* @return webContainer
*/
public String getWebContainer() {
return this.webContainer;
}
public static final class Builder {
private String acrAssumeRoleArn;
private String acrInstanceId;
private String appDescription;
private String appId;
private String appName;
private String appSource;
private Boolean associateEip;
private String baseAppId;
private Integer batchWaitTime;
private String clusterId;
private String command;
private String commandArgs;
private java.util.List<ConfigMapMountDesc> configMapMountDesc;
private Integer cpu;
private String customHostAlias;
private String customImageNetworkType;
private Integer diskSize;
private String dotnet;
private String edasContainerVersion;
private String enableAhas;
private String enableCpuBurst;
private Boolean enableGreyTagRoute;
private Boolean enableIdle;
private Boolean enableNewArms;
private String envs;
private String gpuCount;
private String gpuType;
private String imagePullSecrets;
private String imageUrl;
private java.util.List<InitContainersConfig> initContainersConfig;
private String jarStartArgs;
private String jarStartOptions;
private String jdk;
private String kafkaConfigs;
private String liveness;
private Integer memory;
private String microRegistration;
private String microRegistrationConfig;
private String microserviceEngineConfig;
private Integer minReadyInstanceRatio;
private Integer minReadyInstances;
private java.util.List<MountDesc> mountDesc;
private String mountHost;
private String mseApplicationId;
private String mseApplicationName;
private String namespaceId;
private String nasConfigs;
private String nasId;
private String newSaeVersion;
private String oidcRoleName;
private String ossAkId;
private String ossAkSecret;
private java.util.List<OssMountDescs> ossMountDescs;
private String packageType;
private String packageUrl;
private String packageVersion;
private String php;
private String phpArmsConfigLocation;
private String phpConfig;
private String phpConfigLocation;
private String postStart;
private String preStop;
private String programmingLanguage;
private String pvtzDiscovery;
private String python;
private String pythonModules;
private String readiness;
private String regionId;
private Integer replicas;
private String resourceType;
private java.util.List<SecretMountDesc> secretMountDesc;
private String securityGroupId;
private java.util.Map<String, String> serviceTags;
private java.util.List<SidecarContainersConfig> sidecarContainersConfig;
private String slsConfigs;
private String startupProbe;
private String swimlanePvtzDiscovery;
private java.util.List<Tags> tags;
private Integer terminationGracePeriodSeconds;
private String timezone;
private String tomcatConfig;
private String updateStrategy;
private String vSwitchId;
private String vpcId;
private String warStartOptions;
private String webContainer;
private Builder() {
}
private Builder(Data model) {
this.acrAssumeRoleArn = model.acrAssumeRoleArn;
this.acrInstanceId = model.acrInstanceId;
this.appDescription = model.appDescription;
this.appId = model.appId;
this.appName = model.appName;
this.appSource = model.appSource;
this.associateEip = model.associateEip;
this.baseAppId = model.baseAppId;
this.batchWaitTime = model.batchWaitTime;
this.clusterId = model.clusterId;
this.command = model.command;
this.commandArgs = model.commandArgs;
this.configMapMountDesc = model.configMapMountDesc;
this.cpu = model.cpu;
this.customHostAlias = model.customHostAlias;
this.customImageNetworkType = model.customImageNetworkType;
this.diskSize = model.diskSize;
this.dotnet = model.dotnet;
this.edasContainerVersion = model.edasContainerVersion;
this.enableAhas = model.enableAhas;
this.enableCpuBurst = model.enableCpuBurst;
this.enableGreyTagRoute = model.enableGreyTagRoute;
this.enableIdle = model.enableIdle;
this.enableNewArms = model.enableNewArms;
this.envs = model.envs;
this.gpuCount = model.gpuCount;
this.gpuType = model.gpuType;
this.imagePullSecrets = model.imagePullSecrets;
this.imageUrl = model.imageUrl;
this.initContainersConfig = model.initContainersConfig;
this.jarStartArgs = model.jarStartArgs;
this.jarStartOptions = model.jarStartOptions;
this.jdk = model.jdk;
this.kafkaConfigs = model.kafkaConfigs;
this.liveness = model.liveness;
this.memory = model.memory;
this.microRegistration = model.microRegistration;
this.microRegistrationConfig = model.microRegistrationConfig;
this.microserviceEngineConfig = model.microserviceEngineConfig;
this.minReadyInstanceRatio = model.minReadyInstanceRatio;
this.minReadyInstances = model.minReadyInstances;
this.mountDesc = model.mountDesc;
this.mountHost = model.mountHost;
this.mseApplicationId = model.mseApplicationId;
this.mseApplicationName = model.mseApplicationName;
this.namespaceId = model.namespaceId;
this.nasConfigs = model.nasConfigs;
this.nasId = model.nasId;
this.newSaeVersion = model.newSaeVersion;
this.oidcRoleName = model.oidcRoleName;
this.ossAkId = model.ossAkId;
this.ossAkSecret = model.ossAkSecret;
this.ossMountDescs = model.ossMountDescs;
this.packageType = model.packageType;
this.packageUrl = model.packageUrl;
this.packageVersion = model.packageVersion;
this.php = model.php;
this.phpArmsConfigLocation = model.phpArmsConfigLocation;
this.phpConfig = model.phpConfig;
this.phpConfigLocation = model.phpConfigLocation;
this.postStart = model.postStart;
this.preStop = model.preStop;
this.programmingLanguage = model.programmingLanguage;
this.pvtzDiscovery = model.pvtzDiscovery;
this.python = model.python;
this.pythonModules = model.pythonModules;
this.readiness = model.readiness;
this.regionId = model.regionId;
this.replicas = model.replicas;
this.resourceType = model.resourceType;
this.secretMountDesc = model.secretMountDesc;
this.securityGroupId = model.securityGroupId;
this.serviceTags = model.serviceTags;
this.sidecarContainersConfig = model.sidecarContainersConfig;
this.slsConfigs = model.slsConfigs;
this.startupProbe = model.startupProbe;
this.swimlanePvtzDiscovery = model.swimlanePvtzDiscovery;
this.tags = model.tags;
this.terminationGracePeriodSeconds = model.terminationGracePeriodSeconds;
this.timezone = model.timezone;
this.tomcatConfig = model.tomcatConfig;
this.updateStrategy = model.updateStrategy;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
this.warStartOptions = model.warStartOptions;
this.webContainer = model.webContainer;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts. For more information, see <a href="https://help.aliyun.com/document_detail/190675.html">Pull images across Alibaba Cloud accounts</a> and <a href="https://help.aliyun.com/document_detail/223585.html">Grant permissions across Alibaba Cloud accounts by using a RAM role</a>.</p>
*
* <strong>example:</strong>
* <p>acs:ram::123456789012****:role/adminrole</p>
*/
public Builder acrAssumeRoleArn(String acrAssumeRoleArn) {
this.acrAssumeRoleArn = acrAssumeRoleArn;
return this;
}
/**
* <p>The ID of the Container Registry Enterprise Edition instance.</p>
*
* <strong>example:</strong>
* <p>cri-xxxxxx</p>
*/
public Builder acrInstanceId(String acrInstanceId) {
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* <p>The description of the application.</p>
*/
public Builder appDescription(String appDescription) {
this.appDescription = appDescription;
return this;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>demo-app</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The SAE application type.</p>
* <ul>
* <li>micro_service</li>
* <li>web</li>
* <li>job</li>
* </ul>
*
* <strong>example:</strong>
* <p>micro_service</p>
*/
public Builder appSource(String appSource) {
this.appSource = appSource;
return this;
}
/**
* <p>Indicates whether an elastic IP address (EIP) is associated with the application instance. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The EIP is associated with the application instance.</li>
* <li><strong>false</strong>: The EIP is not associated with the application instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder associateEip(Boolean associateEip) {
this.associateEip = associateEip;
return this;
}
/**
* BaseAppId.
*/
public Builder baseAppId(String baseAppId) {
this.baseAppId = baseAppId;
return this;
}
/**
* <p>The interval between batches in a phased release. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder batchWaitTime(Integer batchWaitTime) {
this.batchWaitTime = batchWaitTime;
return this;
}
/**
* ClusterId.
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The command that is used to start the image. The command must be an existing executable object in the container. Example:</p>
* <pre><code>
* command:
* - echo
* - abc
* - >
* - file0
* </code></pre>
* <p>In this example, the Command parameter is set to <code>Command="echo", CommandArgs=["abc", ">", "file0"]</code>.</p>
*
* <strong>example:</strong>
* <p>echo</p>
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* <p>The parameters of the image startup command. The CommandArgs parameter contains the parameters that are required for the <strong>Command</strong> parameter. Format:</p>
* <p><code>["a","b"]</code></p>
* <p>In the preceding <strong>Command</strong> example, the CommandArgs parameter is set to <code>CommandArgs=["abc", ">", "file0"]</code>. The data type of <code>["abc", ">", "file0"]</code> must be an array of strings in the JSON format. You do not need to configure this parameter if it does not exist in the Command parameter.</p>
*
* <strong>example:</strong>
* <p>["a","b"]</p>
*/
public Builder commandArgs(String commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* <p>The details of the ConfigMap.</p>
*/
public Builder configMapMountDesc(java.util.List<ConfigMapMountDesc> configMapMountDesc) {
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* <p>The CPU specifications that are required for each instance. Unit: millicores. You cannot set this parameter to 0. Valid values:</p>
* <ul>
* <li><strong>500</strong></li>
* <li><strong>1000</strong></li>
* <li><strong>2000</strong></li>
* <li><strong>4000</strong></li>
* <li><strong>8000</strong></li>
* <li><strong>16000</strong></li>
* <li><strong>32000</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>The custom mappings between hostnames and IP addresses in the container. Valid values:</p>
* <ul>
* <li><strong>hostName</strong>: the domain name or hostname.</li>
* <li><strong>ip</strong>: the IP address.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"hostName":"test.host.name","ip":"0.0.0.0"}]</p>
*/
public Builder customHostAlias(String customHostAlias) {
this.customHostAlias = customHostAlias;
return this;
}
/**
* CustomImageNetworkType.
*/
public Builder customImageNetworkType(String customImageNetworkType) {
this.customImageNetworkType = customImageNetworkType;
return this;
}
/**
* DiskSize.
*/
public Builder diskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
/**
* Dotnet.
*/
public Builder dotnet(String dotnet) {
this.dotnet = dotnet;
return this;
}
/**
* <p>The version of the container, such as Ali-Tomcat, in which an application developed based on High-speed Service Framework (HSF) is deployed.</p>
*
* <strong>example:</strong>
* <p>3.5.3</p>
*/
public Builder edasContainerVersion(String edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* <p>Indicates whether access to Application High Availability Service (AHAS) is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Access to AHAS is enabled.</li>
* <li><strong>false</strong>: Access to AHAS is disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableAhas(String enableAhas) {
this.enableAhas = enableAhas;
return this;
}
/**
* EnableCpuBurst.
*/
public Builder enableCpuBurst(String enableCpuBurst) {
this.enableCpuBurst = enableCpuBurst;
return this;
}
/**
* <p>Indicates whether canary release rules are enabled. Canary release rules apply only to applications in Spring Cloud and Dubbo frameworks. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The canary release rules are enabled.</li>
* <li><strong>false</strong>: The canary release rules are disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableGreyTagRoute(Boolean enableGreyTagRoute) {
this.enableGreyTagRoute = enableGreyTagRoute;
return this;
}
/**
* EnableIdle.
*/
public Builder enableIdle(Boolean enableIdle) {
this.enableIdle = enableIdle;
return this;
}
/**
* EnableNewArms.
*/
public Builder enableNewArms(Boolean enableNewArms) {
this.enableNewArms = enableNewArms;
return this;
}
/**
* <p>The environment variables. Variable description:</p>
* <ul>
* <li><strong>name</strong>: the name of the environment variable.</li>
* <li><strong>value</strong>: the value or reference of the environment variable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]</p>
*/
public Builder envs(String envs) {
this.envs = envs;
return this;
}
/**
* GpuCount.
*/
public Builder gpuCount(String gpuCount) {
this.gpuCount = gpuCount;
return this;
}
/**
* GpuType.
*/
public Builder gpuType(String gpuType) {
this.gpuType = gpuType;
return this;
}
/**
* ImagePullSecrets.
*/
public Builder imagePullSecrets(String imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
return this;
}
/**
* <p>The URL of the image. This parameter is returned only if the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>docker.io/library/nginx:1.14.2</p>
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* InitContainersConfig.
*/
public Builder initContainersConfig(java.util.List<InitContainersConfig> initContainersConfig) {
this.initContainersConfig = initContainersConfig;
return this;
}
/**
* <p>The arguments in the JAR package. The arguments are used to start the application container. The default startup command is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>start</p>
*/
public Builder jarStartArgs(String jarStartArgs) {
this.jarStartArgs = jarStartArgs;
return this;
}
/**
* <p>The option settings in the JAR package. The settings are used to start the application container. The default startup command is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>-Dtest=true</p>
*/
public Builder jarStartOptions(String jarStartOptions) {
this.jarStartOptions = jarStartOptions;
return this;
}
/**
* <p>The version of the Java development kit (JDK) on which the deployment package of the application depends. The following versions are supported:</p>
* <ul>
* <li><strong>Open JDK 8</strong></li>
* <li><strong>Open JDK 7</strong></li>
* <li><strong>Dragonwell 11</strong></li>
* <li><strong>Dragonwell 8</strong></li>
* <li><strong>openjdk-8u191-jdk-alpine3.9</strong></li>
* <li><strong>openjdk-7u201-jdk-alpine3.9</strong></li>
* </ul>
* <p>This parameter is not returned if the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder jdk(String jdk) {
this.jdk = jdk;
return this;
}
/**
* <p>The logging configurations of Message Queue for Apache Kafka. The following parameters are involved:</p>
* <ul>
* <li><p><strong>KafkaConfigs</strong>: the configurations of Message Queue for Apache Kafka.</p>
* </li>
* <li><p><strong>createTime</strong>: the time when the Message Queue for Apache Kafka instance was created.</p>
* </li>
* <li><p><strong>kafkaTopic</strong>: the message topic that is used to classify messages.</p>
* </li>
* <li><p><strong>logDir</strong>: the path in which logs are stored.</p>
* </li>
* <li><p><strong>logType</strong>: the type of collected logs. Valid values:</p>
* <ul>
* <li><strong>file_log</strong>: the file log that is stored in the container. The path of the file logs in the container is returned.</li>
* <li><strong>stdout</strong>: the standard output log of the container. You can specify only one stdout value.</li>
* </ul>
* </li>
* <li><p><strong>kafkaEndpoint</strong>: the endpoint of the Message Queue for Apache Kafka service.</p>
* </li>
* <li><p><strong>kafkaInstanceId</strong>: the ID of the Message Queue for Apache Kafka instance.</p>
* </li>
* <li><p><strong>region</strong>: the region where the Message Queue for Apache Kafka instance resides.</p>
* </li>
* </ul>
*/
public Builder kafkaConfigs(String kafkaConfigs) {
this.kafkaConfigs = kafkaConfigs;
return this;
}
/**
* <p>The details of the availability check that was performed on the container. If the container fails this health check multiple times, the system disables and restarts the container. You can use one of the following methods to perform the health check:</p>
* <ul>
* <li>Sample code of the <strong>exec</strong> method: <code>{"exec":{"command":["sh","-c","cat/home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}</code></li>
* <li>Sample code of the <strong>httpGet</strong> method: <code>{"httpGet":{"path":"/","port":18091,"scheme":"HTTP","isContainKeyWord":true,"keyWord":"SAE"},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}</code></li>
* <li>Sample code of the <strong>tcpSocket</strong> method: <code>{"tcpSocket":{"port":18091},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}</code></li>
* </ul>
* <blockquote>
* <p> You can use only one method to perform the health check.</p>
* </blockquote>
* <p>The following parameters are involved:</p>
* <ul>
* <li><strong>exec.command</strong>: the health check command.</li>
* <li><strong>httpGet.path</strong>: the request path.</li>
* <li><strong>httpGet.scheme</strong>: the protocol that is used to perform the health check. Valid values: <strong>HTTP</strong> and <strong>HTTPS</strong>.</li>
* <li><strong>httpGet.isContainKeyWord</strong>: indicates whether the response contains keywords. Valid values: <strong>true</strong> and <strong>false</strong>. If this field is not returned, the advanced settings are not used.</li>
* <li><strong>httpGet.keyWord</strong>: the custom keyword. This parameter is available only if the <strong>isContainKeyWord</strong> field is returned.</li>
* <li><strong>tcpSocket.port</strong>: the port that is used to check the status of TCP connections.</li>
* <li><strong>initialDelaySeconds</strong>: the delay of the health check. Default value: 10. Unit: seconds.</li>
* <li><strong>periodSeconds</strong>: the interval at which health checks are performed. Default value: 30. Unit: seconds.</li>
* <li><strong>timeoutSeconds</strong>: the timeout period of the health check. Default value: 1. Unit: seconds. If you set this parameter to 0 or leave this parameter empty, the timeout period is automatically set to 1 second.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["curl <a href="http://localhost:8080%22%5D%7D,%22initialDelaySeconds%22:20,%22timeoutSeconds%22:3%7D">http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":3}</a></p>
*/
public Builder liveness(String liveness) {
this.liveness = liveness;
return this;
}
/**
* <p>The size of memory required by each instance. Unit: MB. You cannot set this parameter to 0. The values of this parameter correspond to the values of the Cpu parameter:</p>
* <ul>
* <li>This parameter is set to <strong>1024</strong> if the Cpu parameter is set to 500 or 1000.</li>
* <li>This parameter is set to <strong>2048</strong> if the Cpu parameter is set to 500, 1000, or 1000.</li>
* <li>This parameter is set to <strong>4096</strong> if the Cpu parameter is set to 1000, 2000, or 4000.</li>
* <li>This parameter is set to <strong>8192</strong> if the Cpu parameter is set to 2000, 4000, or 8000.</li>
* <li>This parameter is set to <strong>12288</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>16384</strong> if the Cpu parameter is set to 4000, 8000, or 16000.</li>
* <li>This parameter is set to <strong>24567</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>32768</strong> if the Cpu parameter is set to 16000.</li>
* <li>This parameter is set to <strong>65536</strong> if the Cpu parameter is set to 8000, 16000, or 32000.</li>
* <li>This parameter is set to <strong>131072</strong> if the Cpu parameter is set to 32000.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2048</p>
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
/**
* MicroRegistration.
*/
public Builder microRegistration(String microRegistration) {
this.microRegistration = microRegistration;
return this;
}
/**
* MicroRegistrationConfig.
*/
public Builder microRegistrationConfig(String microRegistrationConfig) {
this.microRegistrationConfig = microRegistrationConfig;
return this;
}
/**
* MicroserviceEngineConfig.
*/
public Builder microserviceEngineConfig(String microserviceEngineConfig) {
this.microserviceEngineConfig = microserviceEngineConfig;
return this;
}
/**
* <p>The percentage of the minimum number of available instances. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: the default value. This value indicates that the minimum number of available instances is not measured by percentage. If you do not configure this parameter, the default value <strong>-1</strong> is used.</li>
* <li><strong>0 to 100</strong>: indicates that the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). If the calculated result is not an integer, the result is rounded up to the nearest integer. For example, if the percentage is set to <strong>50</strong>% and five instances are available, the minimum number of available instances is 3.</li>
* </ul>
* <blockquote>
* <p> If the <strong>MinReadyInstance</strong> and <strong>MinReadyInstanceRatio</strong> parameters are returned and the value of the <strong>MinReadyInstanceRatio</strong> parameter is not <strong>-1</strong>, the value of the <strong>MinReadyInstanceRatio</strong> parameter takes effect. If the <strong>MinReadyInstances</strong> parameter is set to <strong>5</strong> and the <strong>MinReadyInstanceRatio</strong> parameter is set to <strong>50</strong>, the value of the <strong>MinReadyInstanceRatio</strong> parameter determines the minimum number of available instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
this.minReadyInstanceRatio = minReadyInstanceRatio;
return this;
}
/**
* <p>The minimum number of available instances. Valid values:</p>
* <ul>
* <li>If you set the value to <strong>0</strong>, business interruptions occur when the application is updated.</li>
* <li>If you set the value to <strong>-1</strong>, the minimum number of available instances is automatically set to a system-recommended value. The value is the nearest integer to which the calculated result of the following formula is rounded up: Current number of instances × 25%. For example, if five instances are available, the minimum number of available instances is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.</li>
* </ul>
* <blockquote>
* <p> Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReadyInstances(Integer minReadyInstances) {
this.minReadyInstances = minReadyInstances;
return this;
}
/**
* <p>The details of the mounted NAS file system.</p>
*/
public Builder mountDesc(java.util.List<MountDesc> mountDesc) {
this.mountDesc = mountDesc;
return this;
}
/**
* <p>The mount target of the NAS file system in the VPC where the application is deployed. If you do not need to modify this configuration during the deployment, configure the <strong>MountHost</strong> parameter only in the first request. You do not need to include this parameter in subsequent requests. If you need to remove this configuration, leave the <strong>MountHost</strong> parameter empty in the request.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder mountHost(String mountHost) {
this.mountHost = mountHost;
return this;
}
/**
* <p>The ID of the microservice application.</p>
*
* <strong>example:</strong>
* <p>xxxxxxx@xxxxx</p>
*/
public Builder mseApplicationId(String mseApplicationId) {
this.mseApplicationId = mseApplicationId;
return this;
}
/**
* MseApplicationName.
*/
public Builder mseApplicationName(String mseApplicationName) {
this.mseApplicationName = mseApplicationName;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* NasConfigs.
*/
public Builder nasConfigs(String nasConfigs) {
this.nasConfigs = nasConfigs;
return this;
}
/**
* <p>The ID of the NAS file system.</p>
*
* <strong>example:</strong>
* <p>AKSN89**</p>
*/
public Builder nasId(String nasId) {
this.nasId = nasId;
return this;
}
/**
* NewSaeVersion.
*/
public Builder newSaeVersion(String newSaeVersion) {
this.newSaeVersion = newSaeVersion;
return this;
}
/**
* OidcRoleName.
*/
public Builder oidcRoleName(String oidcRoleName) {
this.oidcRoleName = oidcRoleName;
return this;
}
/**
* <p>The AccessKey ID that is used to read data from and write data to Object Storage Service (OSS) buckets.</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkId(String ossAkId) {
this.ossAkId = ossAkId;
return this;
}
/**
* <p>The AccessKey secret that is used to read data from and write data to OSS buckets.</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkSecret(String ossAkSecret) {
this.ossAkSecret = ossAkSecret;
return this;
}
/**
* <p>The description of the mounted OSS bucket.</p>
*/
public Builder ossMountDescs(java.util.List<OssMountDescs> ossMountDescs) {
this.ossMountDescs = ossMountDescs;
return this;
}
/**
* <p>The type of the deployment package. Valid values:</p>
* <ul>
* <li><p>If you deploy the application by using a Java Archive (JAR) package, you can set this parameter to <strong>FatJar</strong>, <strong>War</strong>, or <strong>Image</strong>.</p>
* </li>
* <li><p>If you deploy the application by using a PHP package, you can set this parameter to one of the following values:</p>
* <ul>
* <li><strong>PhpZip</strong></li>
* <li><strong>IMAGE_PHP_5_4</strong></li>
* <li><strong>IMAGE_PHP_5_4_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_5</strong></li>
* <li><strong>IMAGE_PHP_5_5_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_6</strong></li>
* <li><strong>IMAGE_PHP_5_6_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_0</strong></li>
* <li><strong>IMAGE_PHP_7_0_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_1</strong></li>
* <li><strong>IMAGE_PHP_7_1_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_2</strong></li>
* <li><strong>IMAGE_PHP_7_2_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_3</strong></li>
* <li><strong>IMAGE_PHP_7_3_ALPINE</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>War</p>
*/
public Builder packageType(String packageType) {
this.packageType = packageType;
return this;
}
/**
* <p>The URL of the deployment package. This parameter is returned only if the <strong>PackageType</strong> parameter is set to <strong>FatJar</strong> or <strong>War</strong>.</p>
*/
public Builder packageUrl(String packageUrl) {
this.packageUrl = packageUrl;
return this;
}
/**
* <p>The version of the deployment package. This parameter is returned only if the <strong>PackageType</strong> parameter is set to <strong>FatJar</strong> or <strong>War</strong>.</p>
*
* <strong>example:</strong>
* <p>1.0</p>
*/
public Builder packageVersion(String packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* Php.
*/
public Builder php(String php) {
this.php = php;
return this;
}
/**
* <p>The path on which the PHP configuration file for application monitoring is mounted. Make sure that the PHP server loads the configuration file.</p>
* <p>SAE automatically generates the corresponding configuration file. No manual operations are required.</p>
*
* <strong>example:</strong>
* <p>/usr/local/etc/php/conf.d/arms.ini</p>
*/
public Builder phpArmsConfigLocation(String phpArmsConfigLocation) {
this.phpArmsConfigLocation = phpArmsConfigLocation;
return this;
}
/**
* <p>The details of the PHP configuration file.</p>
*
* <strong>example:</strong>
* <p>k1=v1</p>
*/
public Builder phpConfig(String phpConfig) {
this.phpConfig = phpConfig;
return this;
}
/**
* <p>The path on which the PHP configuration file for application startup is mounted. Make sure that the PHP server uses this configuration file during the startup.</p>
*
* <strong>example:</strong>
* <p>/usr/local/etc/php/php.ini</p>
*/
public Builder phpConfigLocation(String phpConfigLocation) {
this.phpConfigLocation = phpConfigLocation;
return this;
}
/**
* <p>The script that is run immediately after the container is started. Example: <code>{"exec":{"command":["cat","/etc/group"]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder postStart(String postStart) {
this.postStart = postStart;
return this;
}
/**
* <p>The script that is run before the container is stopped. Example: <code>{"exec":{"command":["cat","/etc/group"]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder preStop(String preStop) {
this.preStop = preStop;
return this;
}
/**
* <p>The programming language that is used to create the application. Valid values:</p>
* <ul>
* <li><strong>java</strong>: Java</li>
* <li><strong>php</strong>: PHP</li>
* <li><strong>other</strong>: Other programming languages, such as Python, C++, Go, .NET, and Node.js.</li>
* </ul>
*
* <strong>example:</strong>
* <p>java</p>
*/
public Builder programmingLanguage(String programmingLanguage) {
this.programmingLanguage = programmingLanguage;
return this;
}
/**
* PvtzDiscovery.
*/
public Builder pvtzDiscovery(String pvtzDiscovery) {
this.pvtzDiscovery = pvtzDiscovery;
return this;
}
/**
* Python.
*/
public Builder python(String python) {
this.python = python;
return this;
}
/**
* PythonModules.
*/
public Builder pythonModules(String pythonModules) {
this.pythonModules = pythonModules;
return this;
}
/**
* <p>The details of the health check that was performed on the container. If the container fails this health check multiple times, the system disables and restarts the container. Containers that fail health checks cannot receive traffic from Server Load Balancer (SLB) instances. You can use the <strong>exec</strong>, <strong>httpGet</strong>, or <strong>tcpSocket</strong> method to perform health checks. For more information, see the description of the <strong>Liveness</strong> parameter.</p>
* <blockquote>
* <p> You can use only one method to perform the health check.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["curl <a href="http://localhost:8080%22%5D%7D,%22initialDelaySeconds%22:20,%22timeoutSeconds%22:5%7D">http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":5}</a></p>
*/
public Builder readiness(String readiness) {
this.readiness = readiness;
return this;
}
/**
* <p>The ID of the region.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The number of application instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder replicas(Integer replicas) {
this.replicas = replicas;
return this;
}
/**
* ResourceType.
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* SecretMountDesc.
*/
public Builder secretMountDesc(java.util.List<SecretMountDesc> secretMountDesc) {
this.secretMountDesc = secretMountDesc;
return this;
}
/**
* <p>The ID of the security group.</p>
*
* <strong>example:</strong>
* <p>sg-wz969ngg2e49q5i4****</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>The canary tag configured for the application.</p>
*/
public Builder serviceTags(java.util.Map<String, String> serviceTags) {
this.serviceTags = serviceTags;
return this;
}
/**
* SidecarContainersConfig.
*/
public Builder sidecarContainersConfig(java.util.List<SidecarContainersConfig> sidecarContainersConfig) {
this.sidecarContainersConfig = sidecarContainersConfig;
return this;
}
/**
* <p>The logging configurations of Log Service.</p>
* <ul>
* <li>To use Log Service resources that are automatically created by SAE, set this parameter to <code>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</code>.</li>
* <li>To use custom Log Service resources, set this parameter to <code>[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]</code>.</li>
* </ul>
* <p>The following parameters are involved:</p>
* <ul>
* <li><strong>projectName</strong>: the name of the Log Service project.</li>
* <li><strong>logDir</strong>: the path in which logs are stored.</li>
* <li><strong>logType</strong>: the log type. <strong>stdout</strong>: the standard output log of the container. You can specify only one stdout value for this parameter. If you leave this parameter empty, file logs are collected.</li>
* <li><strong>logstoreName</strong>: the name of the Logstore in Log Service.</li>
* <li><strong>logtailName</strong>: the name of the Logtail configuration in Log Service. If you do not configure this parameter, a new Logtail configuration is created.</li>
* </ul>
* <p>If you do not need to modify the logging configurations when you deploy the application, configure the <strong>SlsConfigs</strong> parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use Log Service, leave the <strong>SlsConfigs</strong> parameter empty in the request.</p>
*
* <strong>example:</strong>
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*/
public Builder slsConfigs(String slsConfigs) {
this.slsConfigs = slsConfigs;
return this;
}
/**
* StartupProbe.
*/
public Builder startupProbe(String startupProbe) {
this.startupProbe = startupProbe;
return this;
}
/**
* SwimlanePvtzDiscovery.
*/
public Builder swimlanePvtzDiscovery(String swimlanePvtzDiscovery) {
this.swimlanePvtzDiscovery = swimlanePvtzDiscovery;
return this;
}
/**
* <p>The details of the tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
/**
* <p>The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds) {
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
return this;
}
/**
* <p>The time zone. Default value: <strong>Asia/Shanghai</strong>.</p>
*
* <strong>example:</strong>
* <p>Asia/Shanghai</p>
*/
public Builder timezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* <p>The Tomcat configuration. If you want to delete the configuration, set this parameter to {} or leave this parameter empty. The following parameters are involved:</p>
* <ul>
* <li><strong>port</strong>: the port number. Valid values: 1024 to 65535. The root permissions are required to perform operations on ports whose number is smaller than 1024. Enter a value that ranges from 1025 to 65535 because the container has only the admin permissions. If you do not configure this parameter, the default port number 8080 is used.</li>
* <li><strong>contextPath</strong>: the path. Default value: /. This value indicates the root directory.</li>
* <li><strong>maxThreads</strong>: the maximum number of connections in the connection pool. Default value: 400.</li>
* <li><strong>uriEncoding</strong>: the URI encoding scheme in the Tomcat container. Valid values: <strong>UTF-8</strong>, <strong>ISO-8859-1</strong>, <strong>GBK</strong>, and <strong>GB2312</strong>. If you do not configure this parameter, the default value <strong>ISO-8859-1</strong> is used.</li>
* <li><strong>useBodyEncoding</strong>: indicates whether to use the encoding scheme that is specified by <strong>BodyEncoding for URL</strong>. Default value: <strong>true</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*/
public Builder tomcatConfig(String tomcatConfig) {
this.tomcatConfig = tomcatConfig;
return this;
}
/**
* <p>The deployment policy. If the minimum number of available instances is 1, the value of the <strong>UpdateStrategy</strong> parameter is an empty string (""). If the minimum number of available instances is greater than 1, the following strategies can be configured:</p>
* <ul>
* <li>The application is deployed on an instance. The remaining instances are automatically classified into two release batches whose interval is set to 1. In this case, the parameter is set to <code>{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}</code>.</li>
* <li>The application is deployed on an instance. The remaining instances are manually classified into two release batches. In this case, the parameter is set to <code>{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}</code>.</li>
* <li>All instances are automatically classified into two release batches. The application is deployed on the instances of the two batches in parallel. In this case, the parameter is set to <code>{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}</code></li>
* </ul>
* <p>The following parameters are involved:</p>
* <ul>
* <li><p><strong>type</strong>: the type of the release policy. Valid values: <strong>GrayBatchUpdate</strong> and <strong>BatchUpdate</strong>.</p>
* </li>
* <li><p><strong>batchUpdate</strong>: the phased release policy.</p>
* <ul>
* <li><strong>batch</strong>: the number of release batches.</li>
* <li><strong>releaseType</strong>: the processing method for the batches. Valid values: <strong>auto</strong> and <strong>manual</strong>.</li>
* <li><strong>batchWaitTime</strong>: the interval between release batches. Unit: seconds.</li>
* </ul>
* </li>
* <li><p><strong>grayUpdate</strong>: the number of release batches in the phased release after a canary release. This parameter is returned only if the <strong>type</strong> parameter is set to <strong>GrayBatchUpdate</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}</p>
*/
public Builder updateStrategy(String updateStrategy) {
this.updateStrategy = updateStrategy;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-2ze559r1z1bpwqxwp****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-2ze0i263cnn311nvj****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The option settings in the WAR package. The settings are used to start the application container. The default startup command is <code>java $JAVA_OPTS $CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$@" start</code>.</p>
*
* <strong>example:</strong>
* <p>custom-option</p>
*/
public Builder warStartOptions(String warStartOptions) {
this.warStartOptions = warStartOptions;
return this;
}
/**
* <p>The version of the Tomcat container on which the deployment package depends. Valid values:</p>
* <ul>
* <li><strong>apache-tomcat-7.0.91</strong></li>
* <li><strong>apache-tomcat-8.5.42</strong></li>
* </ul>
* <p>This parameter is not returned if the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>apache-tomcat-7.0.91</p>
*/
public Builder webContainer(String webContainer) {
this.webContainer = webContainer;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationGroupsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationGroupsRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationGroupsRequest</p>
*/
public class DescribeApplicationGroupsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private DescribeApplicationGroupsRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationGroupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribeApplicationGroupsRequest, Builder> {
private String appId;
private Integer currentPage;
private Integer pageSize;
private Builder() {
super();
}
private Builder(DescribeApplicationGroupsRequest request) {
super(request);
this.appId = request.appId;
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
}
/**
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>1</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>10</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribeApplicationGroupsRequest build() {
return new DescribeApplicationGroupsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationGroupsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationGroupsResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationGroupsResponse</p>
*/
public class DescribeApplicationGroupsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationGroupsResponseBody body;
private DescribeApplicationGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationGroupsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationGroupsResponseBody body);
@Override
DescribeApplicationGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationGroupsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationGroupsResponse build() {
return new DescribeApplicationGroupsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationGroupsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationGroupsResponseBody</p>
*/
public class DescribeApplicationGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationGroupsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationGroupsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private java.util.List<Data> data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationGroupsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: indicates that the request was successful.</li>
* <li><strong>3xx</strong>: indicates that the request was redirected.</li>
* <li><strong>4xx</strong>: indicates that the request was invalid.</li>
* <li><strong>5xx</strong>: indicates that a server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the instance groups of the application.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The error code.</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned when the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned when the request fails. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information about instance groups of an application was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the information was obtained.</li>
* <li><strong>false</strong>: indicates that the information could not be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. It is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationGroupsResponseBody build() {
return new DescribeApplicationGroupsResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationGroupsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.NameInMap("GroupId")
private String groupId;
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
@com.aliyun.core.annotation.NameInMap("GroupType")
private Integer groupType;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.NameInMap("PackageType")
private String packageType;
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.NameInMap("PackageVersionId")
private String packageVersionId;
@com.aliyun.core.annotation.NameInMap("Replicas")
private Integer replicas;
@com.aliyun.core.annotation.NameInMap("RunningInstances")
private Integer runningInstances;
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
private Data(Builder builder) {
this.edasContainerVersion = builder.edasContainerVersion;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
this.groupType = builder.groupType;
this.imageUrl = builder.imageUrl;
this.jdk = builder.jdk;
this.packageType = builder.packageType;
this.packageUrl = builder.packageUrl;
this.packageVersion = builder.packageVersion;
this.packageVersionId = builder.packageVersionId;
this.replicas = builder.replicas;
this.runningInstances = builder.runningInstances;
this.webContainer = builder.webContainer;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return edasContainerVersion
*/
public String getEdasContainerVersion() {
return this.edasContainerVersion;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return groupType
*/
public Integer getGroupType() {
return this.groupType;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return jdk
*/
public String getJdk() {
return this.jdk;
}
/**
* @return packageType
*/
public String getPackageType() {
return this.packageType;
}
/**
* @return packageUrl
*/
public String getPackageUrl() {
return this.packageUrl;
}
/**
* @return packageVersion
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
* @return packageVersionId
*/
public String getPackageVersionId() {
return this.packageVersionId;
}
/**
* @return replicas
*/
public Integer getReplicas() {
return this.replicas;
}
/**
* @return runningInstances
*/
public Integer getRunningInstances() {
return this.runningInstances;
}
/**
* @return webContainer
*/
public String getWebContainer() {
return this.webContainer;
}
public static final class Builder {
private String edasContainerVersion;
private String groupId;
private String groupName;
private Integer groupType;
private String imageUrl;
private String jdk;
private String packageType;
private String packageUrl;
private String packageVersion;
private String packageVersionId;
private Integer replicas;
private Integer runningInstances;
private String webContainer;
private Builder() {
}
private Builder(Data model) {
this.edasContainerVersion = model.edasContainerVersion;
this.groupId = model.groupId;
this.groupName = model.groupName;
this.groupType = model.groupType;
this.imageUrl = model.imageUrl;
this.jdk = model.jdk;
this.packageType = model.packageType;
this.packageUrl = model.packageUrl;
this.packageVersion = model.packageVersion;
this.packageVersionId = model.packageVersionId;
this.replicas = model.replicas;
this.runningInstances = model.runningInstances;
this.webContainer = model.webContainer;
}
/**
* <p>The version of the container, such as Ali-Tomcat, in which a High-speed Service Framework (HSF) application runs.</p>
*
* <strong>example:</strong>
* <p>3.5.3</p>
*/
public Builder edasContainerVersion(String edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* <p>The ID of the group.</p>
*
* <strong>example:</strong>
* <p>b2a8a925-477a-eswa-b823-d5e22500****</p>
*/
public Builder groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The name of the group.</p>
*
* <strong>example:</strong>
* <p>_DEFAULT_GROUP</p>
*/
public Builder groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* <p>The type of the group.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder groupType(Integer groupType) {
this.groupType = groupType;
return this;
}
/**
* <p>The address of the image. This parameter is required when the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest</p>
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* <p>The version of the Java development kit (JDK) on which the deployment package of the application depends. This parameter is invalid when the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder jdk(String jdk) {
this.jdk = jdk;
return this;
}
/**
* <p>The type of the application deployment package. Valid values:</p>
* <ul>
* <li><p>When you use a Java package, set this value to <strong>FatJar</strong>, <strong>War</strong>, or <strong>Image</strong>.</p>
* </li>
* <li><p>When you use a PHP package, the following values are valid:</p>
* <ul>
* <li><strong>PhpZip</strong></li>
* <li><strong>IMAGE_PHP_5_4</strong></li>
* <li><strong>IMAGE_PHP_5_4_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_5</strong></li>
* <li><strong>IMAGE_PHP_5_5_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_6</strong></li>
* <li><strong>IMAGE_PHP_5_6_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_0</strong></li>
* <li><strong>IMAGE_PHP_7_0_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_1</strong></li>
* <li><strong>IMAGE_PHP_7_1_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_2</strong></li>
* <li><strong>IMAGE_PHP_7_2_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_3</strong></li>
* <li><strong>IMAGE_PHP_7_3_ALPINE</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>Image</p>
*/
public Builder packageType(String packageType) {
this.packageType = packageType;
return this;
}
/**
* <p>The address of the deployment package. This parameter is required when the <strong>PackageType</strong> parameter is set to <strong>FatJar</strong>, <strong>War</strong>, or <strong>PhpZip</strong>.</p>
*
* <strong>example:</strong>
* <p>registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest</p>
*/
public Builder packageUrl(String packageUrl) {
this.packageUrl = packageUrl;
return this;
}
/**
* <p>The version of the deployment package. This parameter is required when the <strong>PackageType</strong> parameter is set to <strong>FatJar</strong>, <strong>War</strong>, or <strong>PhpZip</strong>. The parameter value will be automatically generated when you use an image to deploy the application and specify the <strong>ImageUrl</strong> parameter.</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder packageVersion(String packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* PackageVersionId.
*/
public Builder packageVersionId(String packageVersionId) {
this.packageVersionId = packageVersionId;
return this;
}
/**
* <p>The total number of instances.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder replicas(Integer replicas) {
this.replicas = replicas;
return this;
}
/**
* <p>The number of running instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder runningInstances(Integer runningInstances) {
this.runningInstances = runningInstances;
return this;
}
/**
* <p>The version of the Apache Tomcat container on which the deployment package of the application depends. This parameter is invalid when the <strong>PackageType</strong> parameter is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>Apache Tomcat 7</p>
*/
public Builder webContainer(String webContainer) {
this.webContainer = webContainer;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationImageRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationImageRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationImageRequest</p>
*/
public class DescribeApplicationImageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageUrl")
@com.aliyun.core.annotation.Validation(required = true)
private String imageUrl;
private DescribeApplicationImageRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.imageUrl = builder.imageUrl;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationImageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
public static final class Builder extends Request.Builder<DescribeApplicationImageRequest, Builder> {
private String appId;
private String imageUrl;
private Builder() {
super();
}
private Builder(DescribeApplicationImageRequest request) {
super(request);
this.appId = request.appId;
this.imageUrl = request.imageUrl;
}
/**
* <p>The ID of the application.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The URL of the image.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>registry-vpc.cn-hangzhou.aliyuncs.com/demo/demo:latest</p>
*/
public Builder imageUrl(String imageUrl) {
this.putQueryParameter("ImageUrl", imageUrl);
this.imageUrl = imageUrl;
return this;
}
@Override
public DescribeApplicationImageRequest build() {
return new DescribeApplicationImageRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationImageResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationImageResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationImageResponse</p>
*/
public class DescribeApplicationImageResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationImageResponseBody body;
private DescribeApplicationImageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationImageResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationImageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationImageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationImageResponseBody body);
@Override
DescribeApplicationImageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationImageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationImageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationImageResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationImageResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationImageResponse build() {
return new DescribeApplicationImageResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationImageResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationImageResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationImageResponseBody</p>
*/
public class DescribeApplicationImageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationImageResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationImageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationImageResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the image of the application.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information about the image was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was obtained.</li>
* <li><strong>false</strong>: The information failed to be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationImageResponseBody build() {
return new DescribeApplicationImageResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationImageResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationImageResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CrUrl")
private String crUrl;
@com.aliyun.core.annotation.NameInMap("Logo")
private String logo;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RepoName")
private String repoName;
@com.aliyun.core.annotation.NameInMap("RepoNamespace")
private String repoNamespace;
@com.aliyun.core.annotation.NameInMap("RepoOriginType")
private String repoOriginType;
@com.aliyun.core.annotation.NameInMap("RepoTag")
private String repoTag;
@com.aliyun.core.annotation.NameInMap("RepoType")
private String repoType;
private Data(Builder builder) {
this.crUrl = builder.crUrl;
this.logo = builder.logo;
this.regionId = builder.regionId;
this.repoName = builder.repoName;
this.repoNamespace = builder.repoNamespace;
this.repoOriginType = builder.repoOriginType;
this.repoTag = builder.repoTag;
this.repoType = builder.repoType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return crUrl
*/
public String getCrUrl() {
return this.crUrl;
}
/**
* @return logo
*/
public String getLogo() {
return this.logo;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return repoName
*/
public String getRepoName() {
return this.repoName;
}
/**
* @return repoNamespace
*/
public String getRepoNamespace() {
return this.repoNamespace;
}
/**
* @return repoOriginType
*/
public String getRepoOriginType() {
return this.repoOriginType;
}
/**
* @return repoTag
*/
public String getRepoTag() {
return this.repoTag;
}
/**
* @return repoType
*/
public String getRepoType() {
return this.repoType;
}
public static final class Builder {
private String crUrl;
private String logo;
private String regionId;
private String repoName;
private String repoNamespace;
private String repoOriginType;
private String repoTag;
private String repoType;
private Builder() {
}
private Builder(Data model) {
this.crUrl = model.crUrl;
this.logo = model.logo;
this.regionId = model.regionId;
this.repoName = model.repoName;
this.repoNamespace = model.repoNamespace;
this.repoOriginType = model.repoOriginType;
this.repoTag = model.repoTag;
this.repoType = model.repoType;
}
/**
* <p>This parameter is reserved.</p>
*/
public Builder crUrl(String crUrl) {
this.crUrl = crUrl;
return this;
}
/**
* <p>This parameter is reserved.</p>
*/
public Builder logo(String logo) {
this.logo = logo;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The name of the repository.</p>
*
* <strong>example:</strong>
* <p>demo</p>
*/
public Builder repoName(String repoName) {
this.repoName = repoName;
return this;
}
/**
* <p>The name of the namespace to which the image repository belongs.</p>
*
* <strong>example:</strong>
* <p>demo</p>
*/
public Builder repoNamespace(String repoNamespace) {
this.repoNamespace = repoNamespace;
return this;
}
/**
* <p>The type of the repository. Only Container Registry is supported.</p>
*
* <strong>example:</strong>
* <p>ALI_HUB</p>
*/
public Builder repoOriginType(String repoOriginType) {
this.repoOriginType = repoOriginType;
return this;
}
/**
* <p>The tag of the image.</p>
*
* <strong>example:</strong>
* <p>latest</p>
*/
public Builder repoTag(String repoTag) {
this.repoTag = repoTag;
return this;
}
/**
* <p>This parameter is reserved.</p>
*/
public Builder repoType(String repoType) {
this.repoType = repoType;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationInstancesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationInstancesRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationInstancesRequest</p>
*/
public class DescribeApplicationInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PipelineId")
private String pipelineId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Reverse")
private Boolean reverse;
private DescribeApplicationInstancesRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.currentPage = builder.currentPage;
this.groupId = builder.groupId;
this.instanceId = builder.instanceId;
this.pageSize = builder.pageSize;
this.pipelineId = builder.pipelineId;
this.reverse = builder.reverse;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
/**
* @return reverse
*/
public Boolean getReverse() {
return this.reverse;
}
public static final class Builder extends Request.Builder<DescribeApplicationInstancesRequest, Builder> {
private String appId;
private Integer currentPage;
private String groupId;
private String instanceId;
private Integer pageSize;
private String pipelineId;
private Boolean reverse;
private Builder() {
super();
}
private Builder(DescribeApplicationInstancesRequest request) {
super(request);
this.appId = request.appId;
this.currentPage = request.currentPage;
this.groupId = request.groupId;
this.instanceId = request.instanceId;
this.pageSize = request.pageSize;
this.pipelineId = request.pipelineId;
this.reverse = request.reverse;
}
/**
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>1</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>b2a8a925-477a-4ed7-b825-d5e22500****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>b2a8a925-477a-4ed7-b825-d5e22500****</p>
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* InstanceId.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>10</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* PipelineId.
*/
public Builder pipelineId(String pipelineId) {
this.putQueryParameter("PipelineId", pipelineId);
this.pipelineId = pipelineId;
return this;
}
/**
* <p>true</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder reverse(Boolean reverse) {
this.putQueryParameter("Reverse", reverse);
this.reverse = reverse;
return this;
}
@Override
public DescribeApplicationInstancesRequest build() {
return new DescribeApplicationInstancesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationInstancesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationInstancesResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationInstancesResponse</p>
*/
public class DescribeApplicationInstancesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationInstancesResponseBody body;
private DescribeApplicationInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationInstancesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationInstancesResponseBody body);
@Override
DescribeApplicationInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationInstancesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationInstancesResponse build() {
return new DescribeApplicationInstancesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationInstancesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationInstancesResponseBody</p>
*/
public class DescribeApplicationInstancesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationInstancesResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationInstancesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationInstancesResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: indicates that the request was successful.</li>
* <li><strong>3xx</strong>: indicates that the request was redirected.</li>
* <li><strong>4xx</strong>: indicates that the request was invalid.</li>
* <li><strong>5xx</strong>: indicates that a server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details of the application instances.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. </p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned when the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned when the request fails. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the list of application instances was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the list was obtained.</li>
* <li><strong>false</strong>: indicates that the list could not be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. It is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationInstancesResponseBody build() {
return new DescribeApplicationInstancesResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationInstancesResponseBody</p>
*/
public static class SidecarContainersStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.NameInMap("ContainerStatus")
private String containerStatus;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
private SidecarContainersStatus(Builder builder) {
this.containerId = builder.containerId;
this.containerStatus = builder.containerStatus;
this.imageUrl = builder.imageUrl;
}
public static Builder builder() {
return new Builder();
}
public static SidecarContainersStatus create() {
return builder().build();
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return containerStatus
*/
public String getContainerStatus() {
return this.containerStatus;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
public static final class Builder {
private String containerId;
private String containerStatus;
private String imageUrl;
private Builder() {
}
private Builder(SidecarContainersStatus model) {
this.containerId = model.containerId;
this.containerStatus = model.containerStatus;
this.imageUrl = model.imageUrl;
}
/**
* ContainerId.
*/
public Builder containerId(String containerId) {
this.containerId = containerId;
return this;
}
/**
* ContainerStatus.
*/
public Builder containerStatus(String containerStatus) {
this.containerStatus = containerStatus;
return this;
}
/**
* ImageUrl.
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
public SidecarContainersStatus build() {
return new SidecarContainersStatus(this);
}
}
}
/**
*
* {@link DescribeApplicationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationInstancesResponseBody</p>
*/
public static class Instances extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTimeStamp")
private Long createTimeStamp;
@com.aliyun.core.annotation.NameInMap("DebugStatus")
private Boolean debugStatus;
@com.aliyun.core.annotation.NameInMap("Eip")
private String eip;
@com.aliyun.core.annotation.NameInMap("FinishTimeStamp")
private Long finishTimeStamp;
@com.aliyun.core.annotation.NameInMap("GroupId")
private String groupId;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("InstanceContainerIp")
private String instanceContainerIp;
@com.aliyun.core.annotation.NameInMap("InstanceContainerRestarts")
private Long instanceContainerRestarts;
@com.aliyun.core.annotation.NameInMap("InstanceContainerStatus")
private String instanceContainerStatus;
@com.aliyun.core.annotation.NameInMap("InstanceHealthStatus")
private String instanceHealthStatus;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("MainContainerStatus")
private String mainContainerStatus;
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.NameInMap("SidecarContainersStatus")
private java.util.List<SidecarContainersStatus> sidecarContainersStatus;
@com.aliyun.core.annotation.NameInMap("Timestamp")
private Long timestamp;
@com.aliyun.core.annotation.NameInMap("UnhealthyMessage")
private String unhealthyMessage;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private Instances(Builder builder) {
this.createTimeStamp = builder.createTimeStamp;
this.debugStatus = builder.debugStatus;
this.eip = builder.eip;
this.finishTimeStamp = builder.finishTimeStamp;
this.groupId = builder.groupId;
this.imageUrl = builder.imageUrl;
this.instanceContainerIp = builder.instanceContainerIp;
this.instanceContainerRestarts = builder.instanceContainerRestarts;
this.instanceContainerStatus = builder.instanceContainerStatus;
this.instanceHealthStatus = builder.instanceHealthStatus;
this.instanceId = builder.instanceId;
this.mainContainerStatus = builder.mainContainerStatus;
this.packageVersion = builder.packageVersion;
this.sidecarContainersStatus = builder.sidecarContainersStatus;
this.timestamp = builder.timestamp;
this.unhealthyMessage = builder.unhealthyMessage;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static Instances create() {
return builder().build();
}
/**
* @return createTimeStamp
*/
public Long getCreateTimeStamp() {
return this.createTimeStamp;
}
/**
* @return debugStatus
*/
public Boolean getDebugStatus() {
return this.debugStatus;
}
/**
* @return eip
*/
public String getEip() {
return this.eip;
}
/**
* @return finishTimeStamp
*/
public Long getFinishTimeStamp() {
return this.finishTimeStamp;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return instanceContainerIp
*/
public String getInstanceContainerIp() {
return this.instanceContainerIp;
}
/**
* @return instanceContainerRestarts
*/
public Long getInstanceContainerRestarts() {
return this.instanceContainerRestarts;
}
/**
* @return instanceContainerStatus
*/
public String getInstanceContainerStatus() {
return this.instanceContainerStatus;
}
/**
* @return instanceHealthStatus
*/
public String getInstanceHealthStatus() {
return this.instanceHealthStatus;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return mainContainerStatus
*/
public String getMainContainerStatus() {
return this.mainContainerStatus;
}
/**
* @return packageVersion
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
* @return sidecarContainersStatus
*/
public java.util.List<SidecarContainersStatus> getSidecarContainersStatus() {
return this.sidecarContainersStatus;
}
/**
* @return timestamp
*/
public Long getTimestamp() {
return this.timestamp;
}
/**
* @return unhealthyMessage
*/
public String getUnhealthyMessage() {
return this.unhealthyMessage;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private Long createTimeStamp;
private Boolean debugStatus;
private String eip;
private Long finishTimeStamp;
private String groupId;
private String imageUrl;
private String instanceContainerIp;
private Long instanceContainerRestarts;
private String instanceContainerStatus;
private String instanceHealthStatus;
private String instanceId;
private String mainContainerStatus;
private String packageVersion;
private java.util.List<SidecarContainersStatus> sidecarContainersStatus;
private Long timestamp;
private String unhealthyMessage;
private String vSwitchId;
private Builder() {
}
private Builder(Instances model) {
this.createTimeStamp = model.createTimeStamp;
this.debugStatus = model.debugStatus;
this.eip = model.eip;
this.finishTimeStamp = model.finishTimeStamp;
this.groupId = model.groupId;
this.imageUrl = model.imageUrl;
this.instanceContainerIp = model.instanceContainerIp;
this.instanceContainerRestarts = model.instanceContainerRestarts;
this.instanceContainerStatus = model.instanceContainerStatus;
this.instanceHealthStatus = model.instanceHealthStatus;
this.instanceId = model.instanceId;
this.mainContainerStatus = model.mainContainerStatus;
this.packageVersion = model.packageVersion;
this.sidecarContainersStatus = model.sidecarContainersStatus;
this.timestamp = model.timestamp;
this.unhealthyMessage = model.unhealthyMessage;
this.vSwitchId = model.vSwitchId;
}
/**
* <p>The start time of the instance creation process. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1558442609000</p>
*/
public Builder createTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
return this;
}
/**
* DebugStatus.
*/
public Builder debugStatus(Boolean debugStatus) {
this.debugStatus = debugStatus;
return this;
}
/**
* <p>The elastic IP address (EIP).</p>
*
* <strong>example:</strong>
* <p>8.129.XX.XXX</p>
*/
public Builder eip(String eip) {
this.eip = eip;
return this;
}
/**
* <p>The end time of the instance creation process. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1642757283000</p>
*/
public Builder finishTimeStamp(Long finishTimeStamp) {
this.finishTimeStamp = finishTimeStamp;
return this;
}
/**
* <p>The ID of the group to which the instance belongs.</p>
*
* <strong>example:</strong>
* <p>b2a8a925-477a-4ed7-b825-d5e22500****</p>
*/
public Builder groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* <p>The address of the repository.</p>
* <blockquote>
* <p> If you deploy the application by using a JAR or WAR package, the image generated by SAE is not available for download.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>registry-vpc.cn-beijing.aliyuncs.com/sae-demo-image/cartservice:1.0</p>
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* <p>The internal IP address of the instance.</p>
*
* <strong>example:</strong>
* <p>192.168.X.X</p>
*/
public Builder instanceContainerIp(String instanceContainerIp) {
this.instanceContainerIp = instanceContainerIp;
return this;
}
/**
* <p>The number of times that the instance restarted.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder instanceContainerRestarts(Long instanceContainerRestarts) {
this.instanceContainerRestarts = instanceContainerRestarts;
return this;
}
/**
* <p>The state of the instance. Valid values:</p>
* <ul>
* <li><strong>Error</strong>: An error occurred during the instance startup.</li>
* <li><strong>CrashLoopBackOff</strong>: The container failed to start. An error occurred during the startup process and persisted after the restart.</li>
* <li><strong>ErrImagePull</strong>: An error occurred while the container image was being pulled from the instance.</li>
* <li><strong>ImagePullBackOff</strong>: The container image could not be obtained.</li>
* <li><strong>Pending</strong>: The instance is waiting to be scheduled.</li>
* <li><strong>Unknown</strong>: An unknown exception occurred.</li>
* <li><strong>Terminating</strong>: The instance creation process is being terminated.</li>
* <li><strong>NotFound</strong>: The instance cannot be found.</li>
* <li><strong>PodInitializing</strong>: The instance is being initialized.</li>
* <li><strong>Init:0/1</strong>: The instance is initialized.</li>
* <li><strong>Running</strong>: The instance is running.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Running</p>
*/
public Builder instanceContainerStatus(String instanceContainerStatus) {
this.instanceContainerStatus = instanceContainerStatus;
return this;
}
/**
* <p>The configurations of health checks. Valid values:</p>
* <ul>
* <li><strong>WithoutHealthCheckConfig</strong>: Liveness and readiness checks are not configured.</li>
* <li><strong>WithoutLivenessConfig</strong>: The liveness check is not configured.</li>
* <li><strong>WithoutReadinessConfig</strong>: The readiness check is not configured.</li>
* <li><strong>NotCheckedYet</strong>: The health checks are not performed or are in progress.</li>
* <li><strong>LivenessUnhealthy</strong>: The instance failed the liveness check.</li>
* <li><strong>ReadinessUnhealthy</strong>: The instance failed the readiness check.</li>
* <li><strong>Unhealthy</strong>: The instance failed both liveness and readiness checks.</li>
* <li><strong>Healthy</strong>: The instance passed both liveness and readiness checks.</li>
* </ul>
*
* <strong>example:</strong>
* <p>WithoutHealthCheckConfig</p>
*/
public Builder instanceHealthStatus(String instanceHealthStatus) {
this.instanceHealthStatus = instanceHealthStatus;
return this;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>b2a8a925-477a-4ed7-b825-d5e22500****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* MainContainerStatus.
*/
public Builder mainContainerStatus(String mainContainerStatus) {
this.mainContainerStatus = mainContainerStatus;
return this;
}
/**
* <p>The version of the package.</p>
*
* <strong>example:</strong>
* <p>1609939496200</p>
*/
public Builder packageVersion(String packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* SidecarContainersStatus.
*/
public Builder sidecarContainersStatus(java.util.List<SidecarContainersStatus> sidecarContainersStatus) {
this.sidecarContainersStatus = sidecarContainersStatus;
return this;
}
/**
* Timestamp.
*/
public Builder timestamp(Long timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* UnhealthyMessage.
*/
public Builder unhealthyMessage(String unhealthyMessage) {
this.unhealthyMessage = unhealthyMessage;
return this;
}
/**
* <p>The ID of the zone where the instance is deployed.</p>
*
* <strong>example:</strong>
* <p>vsw-***</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public Instances build() {
return new Instances(this);
}
}
}
/**
*
* {@link DescribeApplicationInstancesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationInstancesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Instances")
private java.util.List<Instances> instances;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Integer totalSize;
private Data(Builder builder) {
this.currentPage = builder.currentPage;
this.instances = builder.instances;
this.pageSize = builder.pageSize;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instances
*/
public java.util.List<Instances> getInstances() {
return this.instances;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalSize
*/
public Integer getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Instances> instances;
private Integer pageSize;
private Integer totalSize;
private Builder() {
}
private Builder(Data model) {
this.currentPage = model.currentPage;
this.instances = model.instances;
this.pageSize = model.pageSize;
this.totalSize = model.totalSize;
}
/**
* <p>The number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The list of application instances.</p>
*/
public Builder instances(java.util.List<Instances> instances) {
this.instances = instances;
return this;
}
/**
* <p>The number of entries returned on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of returned instances.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalSize(Integer totalSize) {
this.totalSize = totalSize;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationNlbsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationNlbsRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationNlbsRequest</p>
*/
public class DescribeApplicationNlbsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
private DescribeApplicationNlbsRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationNlbsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
public static final class Builder extends Request.Builder<DescribeApplicationNlbsRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DescribeApplicationNlbsRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
@Override
public DescribeApplicationNlbsRequest build() {
return new DescribeApplicationNlbsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationNlbsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationNlbsResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationNlbsResponse</p>
*/
public class DescribeApplicationNlbsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationNlbsResponseBody body;
private DescribeApplicationNlbsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationNlbsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationNlbsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationNlbsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationNlbsResponseBody body);
@Override
DescribeApplicationNlbsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationNlbsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationNlbsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationNlbsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationNlbsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationNlbsResponse build() {
return new DescribeApplicationNlbsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationNlbsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationNlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationNlbsResponseBody</p>
*/
public class DescribeApplicationNlbsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationNlbsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationNlbsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private String success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationNlbsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The request was successful.</li>
* <li><strong>3xx</strong>: The request was redirected.</li>
* <li><strong>4xx</strong>: The request failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The status code. Value values:</p>
* <ul>
* <li>If the request was successful, <strong>ErrorCode</strong> is not returned.</li>
* <li>If the request failed, <strong>ErrorCode</strong> is returned. For more information, see <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned. Valid values:If the request was successful, success is returned. If the request failed, an error code is returned.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the NLB instance was successfully associated with the application. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application was associated.</li>
* <li><strong>false</strong>: The application failed to be associated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>ac1a0b2215622246421415014e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationNlbsResponseBody build() {
return new DescribeApplicationNlbsResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationNlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationNlbsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Instances")
private java.util.Map<String, DataInstancesValue> instances;
private Data(Builder builder) {
this.instances = builder.instances;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return instances
*/
public java.util.Map<String, DataInstancesValue> getInstances() {
return this.instances;
}
public static final class Builder {
private java.util.Map<String, DataInstancesValue> instances;
private Builder() {
}
private Builder(Data model) {
this.instances = model.instances;
}
/**
* <p>The details of the instance.</p>
*/
public Builder instances(java.util.Map<String, DataInstancesValue> instances) {
this.instances = instances;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRuleRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationScalingRuleRequest</p>
*/
public class DescribeApplicationScalingRuleRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleName")
@com.aliyun.core.annotation.Validation(required = true)
private String scalingRuleName;
private DescribeApplicationScalingRuleRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.scalingRuleName = builder.scalingRuleName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationScalingRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return scalingRuleName
*/
public String getScalingRuleName() {
return this.scalingRuleName;
}
public static final class Builder extends Request.Builder<DescribeApplicationScalingRuleRequest, Builder> {
private String appId;
private String scalingRuleName;
private Builder() {
super();
}
private Builder(DescribeApplicationScalingRuleRequest request) {
super(request);
this.appId = request.appId;
this.scalingRuleName = request.scalingRuleName;
}
/**
* <p>a0d2e04c-159d-40a8-b240-d2f2c263****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>a0d2e04c-159d-40a8-b240-d2f2c263****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>test</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder scalingRuleName(String scalingRuleName) {
this.putQueryParameter("ScalingRuleName", scalingRuleName);
this.scalingRuleName = scalingRuleName;
return this;
}
@Override
public DescribeApplicationScalingRuleRequest build() {
return new DescribeApplicationScalingRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRuleResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponse</p>
*/
public class DescribeApplicationScalingRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationScalingRuleResponseBody body;
private DescribeApplicationScalingRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationScalingRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationScalingRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationScalingRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationScalingRuleResponseBody body);
@Override
DescribeApplicationScalingRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationScalingRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationScalingRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationScalingRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationScalingRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationScalingRuleResponse build() {
return new DescribeApplicationScalingRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public class DescribeApplicationScalingRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationScalingRuleResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationScalingRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationScalingRuleResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* Code.
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>73404D3D-EE4F-4CB2-B197-5C46F6A1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0b57ff7e16243300839193068e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationScalingRuleResponseBody build() {
return new DescribeApplicationScalingRuleResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class Metrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MetricTargetAverageUtilization")
private Integer metricTargetAverageUtilization;
@com.aliyun.core.annotation.NameInMap("MetricType")
private String metricType;
@com.aliyun.core.annotation.NameInMap("SlbId")
private String slbId;
@com.aliyun.core.annotation.NameInMap("SlbLogstore")
private String slbLogstore;
@com.aliyun.core.annotation.NameInMap("SlbProject")
private String slbProject;
@com.aliyun.core.annotation.NameInMap("Vport")
private String vport;
private Metrics(Builder builder) {
this.metricTargetAverageUtilization = builder.metricTargetAverageUtilization;
this.metricType = builder.metricType;
this.slbId = builder.slbId;
this.slbLogstore = builder.slbLogstore;
this.slbProject = builder.slbProject;
this.vport = builder.vport;
}
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;
}
/**
* @return slbId
*/
public String getSlbId() {
return this.slbId;
}
/**
* @return slbLogstore
*/
public String getSlbLogstore() {
return this.slbLogstore;
}
/**
* @return slbProject
*/
public String getSlbProject() {
return this.slbProject;
}
/**
* @return vport
*/
public String getVport() {
return this.vport;
}
public static final class Builder {
private Integer metricTargetAverageUtilization;
private String metricType;
private String slbId;
private String slbLogstore;
private String slbProject;
private String vport;
private Builder() {
}
private Builder(Metrics model) {
this.metricTargetAverageUtilization = model.metricTargetAverageUtilization;
this.metricType = model.metricType;
this.slbId = model.slbId;
this.slbLogstore = model.slbLogstore;
this.slbProject = model.slbProject;
this.vport = model.vport;
}
/**
* <p>The limit on the metric.</p>
* <ul>
* <li>The limit on the CPU utilization. Unit: percentage.</li>
* <li>The limit on the memory usage. Unit: percentage.</li>
* <li>The limit on the average number of active TCP connections per second.</li>
* <li>The limit on the QPS of the Internet-facing SLB instance.</li>
* <li>The limit on the response time of the Internet-facing SLB instance. Unit: milliseconds.</li>
* </ul>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder metricTargetAverageUtilization(Integer metricTargetAverageUtilization) {
this.metricTargetAverageUtilization = metricTargetAverageUtilization;
return this;
}
/**
* <p>The metric that is used to trigger the auto scaling policy. Valid values:</p>
* <ul>
* <li><strong>CPU</strong>: the CPU utilization.</li>
* <li><strong>MEMORY</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the average number of active TCP connections for an instance in 30 seconds.</li>
* <li><strong>SLB_QPS</strong>: the average QPS of the Internet-facing SLB instance associated with an application instance in 15 seconds.</li>
* <li><strong>SLB_RT</strong>: the average response time of the Internet-facing SLB instance in 15 seconds.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CPU</p>
*/
public Builder metricType(String metricType) {
this.metricType = metricType;
return this;
}
/**
* SlbId.
*/
public Builder slbId(String slbId) {
this.slbId = slbId;
return this;
}
/**
* SlbLogstore.
*/
public Builder slbLogstore(String slbLogstore) {
this.slbLogstore = slbLogstore;
return this;
}
/**
* SlbProject.
*/
public Builder slbProject(String slbProject) {
this.slbProject = slbProject;
return this;
}
/**
* Vport.
*/
public Builder vport(String vport) {
this.vport = vport;
return this;
}
public Metrics build() {
return new Metrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class CurrentMetrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentValue")
private Long currentValue;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private CurrentMetrics(Builder builder) {
this.currentValue = builder.currentValue;
this.name = builder.name;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static CurrentMetrics create() {
return builder().build();
}
/**
* @return currentValue
*/
public Long getCurrentValue() {
return this.currentValue;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long currentValue;
private String name;
private String type;
private Builder() {
}
private Builder(CurrentMetrics model) {
this.currentValue = model.currentValue;
this.name = model.name;
this.type = model.type;
}
/**
* <p>The current value of the metric.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder currentValue(Long currentValue) {
this.currentValue = currentValue;
return this;
}
/**
* <p>The name of the metric.</p>
* <ul>
* <li><strong>cpu</strong>: the CPU utilization.</li>
* <li><strong>memory</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the number of active TCP connections.</li>
* <li><strong>slb_incall_qps</strong>: the QPS of the Internet-facing SLB instance.</li>
* <li><strong>slb_incall_rt</strong>: the response time of the Internet-facing SLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cpu</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the data. This parameter corresponds to the metric.</p>
* <ul>
* <li><strong>Resource</strong>: used when the metric is the <strong>CPU utilization</strong> or <strong>memory usage</strong>.</li>
* <li><strong>Pods</strong>: used when the metric is the <strong>number of active TCP connections</strong>.</li>
* <li><strong>External</strong>: used when the metric is about the <strong>SLB</strong> instance or from <strong>Application Real-Time Monitoring Service (ARMS)</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Resource</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public CurrentMetrics build() {
return new CurrentMetrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class NextScaleMetrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NextScaleInAverageUtilization")
private Integer nextScaleInAverageUtilization;
@com.aliyun.core.annotation.NameInMap("NextScaleOutAverageUtilization")
private Integer nextScaleOutAverageUtilization;
private NextScaleMetrics(Builder builder) {
this.name = builder.name;
this.nextScaleInAverageUtilization = builder.nextScaleInAverageUtilization;
this.nextScaleOutAverageUtilization = builder.nextScaleOutAverageUtilization;
}
public static Builder builder() {
return new Builder();
}
public static NextScaleMetrics create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nextScaleInAverageUtilization
*/
public Integer getNextScaleInAverageUtilization() {
return this.nextScaleInAverageUtilization;
}
/**
* @return nextScaleOutAverageUtilization
*/
public Integer getNextScaleOutAverageUtilization() {
return this.nextScaleOutAverageUtilization;
}
public static final class Builder {
private String name;
private Integer nextScaleInAverageUtilization;
private Integer nextScaleOutAverageUtilization;
private Builder() {
}
private Builder(NextScaleMetrics model) {
this.name = model.name;
this.nextScaleInAverageUtilization = model.nextScaleInAverageUtilization;
this.nextScaleOutAverageUtilization = model.nextScaleOutAverageUtilization;
}
/**
* <p>The name of the metric.</p>
* <ul>
* <li><strong>cpu</strong>: the CPU utilization.</li>
* <li><strong>memory</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the number of active TCP connections.</li>
* <li><strong>slb_incall_qps</strong>: the QPS of the Internet-facing SLB instance.</li>
* <li><strong>slb_incall_rt</strong>: the response time of the Internet-facing SLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cpu</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The metric value as a percentage that triggers the application scale-in next time.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder nextScaleInAverageUtilization(Integer nextScaleInAverageUtilization) {
this.nextScaleInAverageUtilization = nextScaleInAverageUtilization;
return this;
}
/**
* <p>The metric value as a percentage that triggers the application scale-out next time.</p>
*
* <strong>example:</strong>
* <p>21</p>
*/
public Builder nextScaleOutAverageUtilization(Integer nextScaleOutAverageUtilization) {
this.nextScaleOutAverageUtilization = nextScaleOutAverageUtilization;
return this;
}
public NextScaleMetrics build() {
return new NextScaleMetrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class MetricsStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentMetrics")
private java.util.List<CurrentMetrics> currentMetrics;
@com.aliyun.core.annotation.NameInMap("CurrentReplicas")
private Long currentReplicas;
@com.aliyun.core.annotation.NameInMap("DesiredReplicas")
private Long desiredReplicas;
@com.aliyun.core.annotation.NameInMap("LastScaleTime")
private String lastScaleTime;
@com.aliyun.core.annotation.NameInMap("NextScaleMetrics")
private java.util.List<NextScaleMetrics> nextScaleMetrics;
@com.aliyun.core.annotation.NameInMap("NextScaleTimePeriod")
private Integer nextScaleTimePeriod;
private MetricsStatus(Builder builder) {
this.currentMetrics = builder.currentMetrics;
this.currentReplicas = builder.currentReplicas;
this.desiredReplicas = builder.desiredReplicas;
this.lastScaleTime = builder.lastScaleTime;
this.nextScaleMetrics = builder.nextScaleMetrics;
this.nextScaleTimePeriod = builder.nextScaleTimePeriod;
}
public static Builder builder() {
return new Builder();
}
public static MetricsStatus create() {
return builder().build();
}
/**
* @return currentMetrics
*/
public java.util.List<CurrentMetrics> getCurrentMetrics() {
return this.currentMetrics;
}
/**
* @return currentReplicas
*/
public Long getCurrentReplicas() {
return this.currentReplicas;
}
/**
* @return desiredReplicas
*/
public Long getDesiredReplicas() {
return this.desiredReplicas;
}
/**
* @return lastScaleTime
*/
public String getLastScaleTime() {
return this.lastScaleTime;
}
/**
* @return nextScaleMetrics
*/
public java.util.List<NextScaleMetrics> getNextScaleMetrics() {
return this.nextScaleMetrics;
}
/**
* @return nextScaleTimePeriod
*/
public Integer getNextScaleTimePeriod() {
return this.nextScaleTimePeriod;
}
public static final class Builder {
private java.util.List<CurrentMetrics> currentMetrics;
private Long currentReplicas;
private Long desiredReplicas;
private String lastScaleTime;
private java.util.List<NextScaleMetrics> nextScaleMetrics;
private Integer nextScaleTimePeriod;
private Builder() {
}
private Builder(MetricsStatus model) {
this.currentMetrics = model.currentMetrics;
this.currentReplicas = model.currentReplicas;
this.desiredReplicas = model.desiredReplicas;
this.lastScaleTime = model.lastScaleTime;
this.nextScaleMetrics = model.nextScaleMetrics;
this.nextScaleTimePeriod = model.nextScaleTimePeriod;
}
/**
* <p>The metrics that is used to trigger the current auto scaling policy.</p>
*/
public Builder currentMetrics(java.util.List<CurrentMetrics> currentMetrics) {
this.currentMetrics = currentMetrics;
return this;
}
/**
* <p>The current number of instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder currentReplicas(Long currentReplicas) {
this.currentReplicas = currentReplicas;
return this;
}
/**
* <p>The expected number of instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder desiredReplicas(Long desiredReplicas) {
this.desiredReplicas = desiredReplicas;
return this;
}
/**
* <p>The time when the auto scaling policy was last triggered.</p>
*
* <strong>example:</strong>
* <p>2022-01-11T08:14:32Z</p>
*/
public Builder lastScaleTime(String lastScaleTime) {
this.lastScaleTime = lastScaleTime;
return this;
}
/**
* <p>The metrics that are used to trigger the auto scaling policy next time.</p>
*/
public Builder nextScaleMetrics(java.util.List<NextScaleMetrics> nextScaleMetrics) {
this.nextScaleMetrics = nextScaleMetrics;
return this;
}
/**
* <p>The duration for which the metric-based auto scaling policy takes effect next time.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder nextScaleTimePeriod(Integer nextScaleTimePeriod) {
this.nextScaleTimePeriod = nextScaleTimePeriod;
return this;
}
public MetricsStatus build() {
return new MetricsStatus(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class ScaleDownRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Disabled")
private Boolean disabled;
@com.aliyun.core.annotation.NameInMap("StabilizationWindowSeconds")
private Long stabilizationWindowSeconds;
@com.aliyun.core.annotation.NameInMap("Step")
private Long step;
private ScaleDownRules(Builder builder) {
this.disabled = builder.disabled;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
this.step = builder.step;
}
public static Builder builder() {
return new Builder();
}
public static ScaleDownRules create() {
return builder().build();
}
/**
* @return disabled
*/
public Boolean getDisabled() {
return this.disabled;
}
/**
* @return stabilizationWindowSeconds
*/
public Long getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
/**
* @return step
*/
public Long getStep() {
return this.step;
}
public static final class Builder {
private Boolean disabled;
private Long stabilizationWindowSeconds;
private Long step;
private Builder() {
}
private Builder(ScaleDownRules model) {
this.disabled = model.disabled;
this.stabilizationWindowSeconds = model.stabilizationWindowSeconds;
this.step = model.step;
}
/**
* <p>Indicates whether the application scale-in is disabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: disabled.</li>
* <li><strong>false</strong>: enabled.</li>
* </ul>
* <blockquote>
* <p> When this parameter is set to true, the application instances are never reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* <p>The cooldown time of the scale-in. Valid values: 0 to 3600. Unit: seconds. Default value: 0.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder stabilizationWindowSeconds(Long stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
/**
* <p>The step size for the scale-in. The maximum number of instances that can be reduced within a specific period of time.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder step(Long step) {
this.step = step;
return this;
}
public ScaleDownRules build() {
return new ScaleDownRules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class ScaleUpRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Disabled")
private Boolean disabled;
@com.aliyun.core.annotation.NameInMap("StabilizationWindowSeconds")
private Long stabilizationWindowSeconds;
@com.aliyun.core.annotation.NameInMap("Step")
private Long step;
private ScaleUpRules(Builder builder) {
this.disabled = builder.disabled;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
this.step = builder.step;
}
public static Builder builder() {
return new Builder();
}
public static ScaleUpRules create() {
return builder().build();
}
/**
* @return disabled
*/
public Boolean getDisabled() {
return this.disabled;
}
/**
* @return stabilizationWindowSeconds
*/
public Long getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
/**
* @return step
*/
public Long getStep() {
return this.step;
}
public static final class Builder {
private Boolean disabled;
private Long stabilizationWindowSeconds;
private Long step;
private Builder() {
}
private Builder(ScaleUpRules model) {
this.disabled = model.disabled;
this.stabilizationWindowSeconds = model.stabilizationWindowSeconds;
this.step = model.step;
}
/**
* <p>Indicates whether the application scale-in is disabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application scale-in is disabled.</li>
* <li><strong>false</strong>: The application scale-in is enabled.</li>
* </ul>
* <blockquote>
* <p> When this parameter is set to true, the application instances are never reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* <p>The cooldown time of the scale-out. Valid values: 0 to 3600. Unit: seconds. Default value: 0.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder stabilizationWindowSeconds(Long stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
/**
* <p>The step size for the scale-out. The maximum number of instances that can be added within a specific period of time.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder step(Long step) {
this.step = step;
return this;
}
public ScaleUpRules build() {
return new ScaleUpRules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class Metric extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaxReplicas")
private Integer maxReplicas;
@com.aliyun.core.annotation.NameInMap("Metrics")
private java.util.List<Metrics> metrics;
@com.aliyun.core.annotation.NameInMap("MetricsStatus")
private MetricsStatus metricsStatus;
@com.aliyun.core.annotation.NameInMap("MinReplicas")
private Integer minReplicas;
@com.aliyun.core.annotation.NameInMap("ScaleDownRules")
private ScaleDownRules scaleDownRules;
@com.aliyun.core.annotation.NameInMap("ScaleUpRules")
private ScaleUpRules scaleUpRules;
private Metric(Builder builder) {
this.maxReplicas = builder.maxReplicas;
this.metrics = builder.metrics;
this.metricsStatus = builder.metricsStatus;
this.minReplicas = builder.minReplicas;
this.scaleDownRules = builder.scaleDownRules;
this.scaleUpRules = builder.scaleUpRules;
}
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 metricsStatus
*/
public MetricsStatus getMetricsStatus() {
return this.metricsStatus;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
/**
* @return scaleDownRules
*/
public ScaleDownRules getScaleDownRules() {
return this.scaleDownRules;
}
/**
* @return scaleUpRules
*/
public ScaleUpRules getScaleUpRules() {
return this.scaleUpRules;
}
public static final class Builder {
private Integer maxReplicas;
private java.util.List<Metrics> metrics;
private MetricsStatus metricsStatus;
private Integer minReplicas;
private ScaleDownRules scaleDownRules;
private ScaleUpRules scaleUpRules;
private Builder() {
}
private Builder(Metric model) {
this.maxReplicas = model.maxReplicas;
this.metrics = model.metrics;
this.metricsStatus = model.metricsStatus;
this.minReplicas = model.minReplicas;
this.scaleDownRules = model.scaleDownRules;
this.scaleUpRules = model.scaleUpRules;
}
/**
* <p>The maximum number of instances.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* <p>The list of metrics that are used to trigger the auto scaling policy.</p>
*/
public Builder metrics(java.util.List<Metrics> metrics) {
this.metrics = metrics;
return this;
}
/**
* <p>The execution status of the metric-based auto scaling policy.</p>
*/
public Builder metricsStatus(MetricsStatus metricsStatus) {
this.metricsStatus = metricsStatus;
return this;
}
/**
* <p>The minimum number of instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* <p>Rules that determine the application scale-in.</p>
*/
public Builder scaleDownRules(ScaleDownRules scaleDownRules) {
this.scaleDownRules = scaleDownRules;
return this;
}
/**
* <p>Rules that determine the application scale-out.</p>
*/
public Builder scaleUpRules(ScaleUpRules scaleUpRules) {
this.scaleUpRules = scaleUpRules;
return this;
}
public Metric build() {
return new Metric(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class Schedules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AtTime")
private String atTime;
@com.aliyun.core.annotation.NameInMap("MaxReplicas")
private Integer maxReplicas;
@com.aliyun.core.annotation.NameInMap("MinReplicas")
private Integer minReplicas;
@com.aliyun.core.annotation.NameInMap("TargetReplicas")
private Integer targetReplicas;
private Schedules(Builder builder) {
this.atTime = builder.atTime;
this.maxReplicas = builder.maxReplicas;
this.minReplicas = builder.minReplicas;
this.targetReplicas = builder.targetReplicas;
}
public static Builder builder() {
return new Builder();
}
public static Schedules create() {
return builder().build();
}
/**
* @return atTime
*/
public String getAtTime() {
return this.atTime;
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
/**
* @return targetReplicas
*/
public Integer getTargetReplicas() {
return this.targetReplicas;
}
public static final class Builder {
private String atTime;
private Integer maxReplicas;
private Integer minReplicas;
private Integer targetReplicas;
private Builder() {
}
private Builder(Schedules model) {
this.atTime = model.atTime;
this.maxReplicas = model.maxReplicas;
this.minReplicas = model.minReplicas;
this.targetReplicas = model.targetReplicas;
}
/**
* <p>The point in time. Format: <strong>Hour:Minute</strong>.</p>
*
* <strong>example:</strong>
* <p>08:00</p>
*/
public Builder atTime(String atTime) {
this.atTime = atTime;
return this;
}
/**
* <p>The maximum number of instances.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* <p>The minimum number of instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* <p>The expected number of instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder targetReplicas(Integer targetReplicas) {
this.targetReplicas = targetReplicas;
return this;
}
public Schedules build() {
return new Schedules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class Timer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginDate")
private String beginDate;
@com.aliyun.core.annotation.NameInMap("EndDate")
private String endDate;
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.NameInMap("Schedules")
private java.util.List<Schedules> schedules;
private Timer(Builder builder) {
this.beginDate = builder.beginDate;
this.endDate = builder.endDate;
this.period = builder.period;
this.schedules = builder.schedules;
}
public static Builder builder() {
return new Builder();
}
public static Timer create() {
return builder().build();
}
/**
* @return beginDate
*/
public String getBeginDate() {
return this.beginDate;
}
/**
* @return endDate
*/
public String getEndDate() {
return this.endDate;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return schedules
*/
public java.util.List<Schedules> getSchedules() {
return this.schedules;
}
public static final class Builder {
private String beginDate;
private String endDate;
private String period;
private java.util.List<Schedules> schedules;
private Builder() {
}
private Builder(Timer model) {
this.beginDate = model.beginDate;
this.endDate = model.endDate;
this.period = model.period;
this.schedules = model.schedules;
}
/**
* <p>The start date of the validity period of the scheduled auto scaling policy. Valid values:</p>
* <ul>
* <li>If both the <strong>BeginDate</strong> and <strong>EndDate</strong> parameters are set to <strong>null</strong>, the auto scaling policy can always be triggered. The default value for these parameters is null.</li>
* <li>If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if <strong>BeginDate</strong> is <strong>2021-03-25</strong> and <strong>EndDate</strong> is <strong>2021-04-25</strong>, the auto scaling policy is valid for one month.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2021-03-25</p>
*/
public Builder beginDate(String beginDate) {
this.beginDate = beginDate;
return this;
}
/**
* <p>The end date of the validity period of the scheduled auto scaling policy. Valid values:</p>
* <ul>
* <li>If both the <strong>BeginDate</strong> and <strong>EndDate</strong> parameters are set to <strong>null</strong>, the auto scaling policy can always be triggered. The default value for these parameters is null.</li>
* <li>If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if <strong>BeginDate</strong> is <strong>2021-03-25</strong> and <strong>EndDate</strong> is <strong>2021-04-25</strong>, the auto scaling policy is valid for one month.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2021-04-25</p>
*/
public Builder endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* <p>The days on which the scheduled auto scaling policy takes effect. Valid values:</p>
* <ul>
* <li><p><strong>* * *</strong>: The scheduled auto scaling policy takes effect at a specified time every day.</p>
* </li>
* <li><p><strong>* * Fri,Mon</strong>: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a week. The specified time is in the GMT+8 time zone. Valid values:</p>
* <ul>
* <li><strong>Sun</strong>: Sunday</li>
* <li><strong>Mon</strong>: Monday</li>
* <li><strong>Tue</strong>: Tuesday</li>
* <li><strong>Wed</strong>: Wednesday</li>
* <li><strong>Thu</strong>: Thursday</li>
* <li><strong>Fri</strong>: Friday</li>
* <li><strong>Sat</strong>: Saturday</li>
* </ul>
* </li>
* <li><p><strong>1,2,3,28,31 * *</strong>: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a month. Valid values: 1 to 31. If the month does not have a 31st day, the auto scaling policy takes effect on the specified days other than the 31st day.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <hr>
*/
public Builder period(String period) {
this.period = period;
return this;
}
/**
* <p>The points in time when the auto scaling policy is triggered within one day.</p>
*/
public Builder schedules(java.util.List<Schedules> schedules) {
this.schedules = schedules;
return this;
}
public Timer build() {
return new Timer(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRuleResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("LastDisableTime")
private Long lastDisableTime;
@com.aliyun.core.annotation.NameInMap("Metric")
private Metric metric;
@com.aliyun.core.annotation.NameInMap("MinReadyInstanceRatio")
private Integer minReadyInstanceRatio;
@com.aliyun.core.annotation.NameInMap("MinReadyInstances")
private Integer minReadyInstances;
@com.aliyun.core.annotation.NameInMap("ScaleRuleEnabled")
private Boolean scaleRuleEnabled;
@com.aliyun.core.annotation.NameInMap("ScaleRuleName")
private String scaleRuleName;
@com.aliyun.core.annotation.NameInMap("ScaleRuleType")
private String scaleRuleType;
@com.aliyun.core.annotation.NameInMap("Timer")
private Timer timer;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private Data(Builder builder) {
this.appId = builder.appId;
this.createTime = builder.createTime;
this.lastDisableTime = builder.lastDisableTime;
this.metric = builder.metric;
this.minReadyInstanceRatio = builder.minReadyInstanceRatio;
this.minReadyInstances = builder.minReadyInstances;
this.scaleRuleEnabled = builder.scaleRuleEnabled;
this.scaleRuleName = builder.scaleRuleName;
this.scaleRuleType = builder.scaleRuleType;
this.timer = builder.timer;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return lastDisableTime
*/
public Long getLastDisableTime() {
return this.lastDisableTime;
}
/**
* @return metric
*/
public Metric getMetric() {
return this.metric;
}
/**
* @return minReadyInstanceRatio
*/
public Integer getMinReadyInstanceRatio() {
return this.minReadyInstanceRatio;
}
/**
* @return minReadyInstances
*/
public Integer getMinReadyInstances() {
return this.minReadyInstances;
}
/**
* @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 timer
*/
public Timer getTimer() {
return this.timer;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String appId;
private Long createTime;
private Long lastDisableTime;
private Metric metric;
private Integer minReadyInstanceRatio;
private Integer minReadyInstances;
private Boolean scaleRuleEnabled;
private String scaleRuleName;
private String scaleRuleType;
private Timer timer;
private Long updateTime;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.createTime = model.createTime;
this.lastDisableTime = model.lastDisableTime;
this.metric = model.metric;
this.minReadyInstanceRatio = model.minReadyInstanceRatio;
this.minReadyInstances = model.minReadyInstances;
this.scaleRuleEnabled = model.scaleRuleEnabled;
this.scaleRuleName = model.scaleRuleName;
this.scaleRuleType = model.scaleRuleType;
this.timer = model.timer;
this.updateTime = model.updateTime;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>a0d2e04c-159d-40a8-b240-d2f2c263****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The time when the auto scaling policy was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1624329843790</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The time when the auto scaling policy was last disabled.</p>
*
* <strong>example:</strong>
* <p>1641882854484</p>
*/
public Builder lastDisableTime(Long lastDisableTime) {
this.lastDisableTime = lastDisableTime;
return this;
}
/**
* <p>The details of the metric-based auto scaling policy.</p>
*/
public Builder metric(Metric metric) {
this.metric = metric;
return this;
}
/**
* <p>The ratio of the minimum number of available instances to the current number of instances. Valid values:</p>
* <ul>
* <li><strong>-1</strong> (default value): The minimum number of available instances is not determined based on this parameter.</li>
* <li><strong>0 to 100</strong>: The minimum number of available instances is calculated by using the following formula: Number of existing instances × Value of MinReadyInstanceRatio × 100%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5 and MinReadyInstanceRatio is set to 50, the minimum number of available instances is 3.</li>
* </ul>
* <blockquote>
* <p> If the <strong>MinReadyInstanceRatio</strong> and <strong>MinReadyInstanceRatio</strong> parameters are configured and the <strong>MinReadyInstanceRatio</strong> parameter is set to a number from 0 to 100, the value of the MinReadyInstanceRatio parameter takes precedence. For example, if the <strong>MinReadyInstances</strong> parameter is set to <strong>5</strong>, and the <strong>MinReadyInstanceRatio</strong> parameter is set to <strong>50</strong>, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Nmber of existing instances × <strong>50</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
this.minReadyInstanceRatio = minReadyInstanceRatio;
return this;
}
/**
* <p>The minimum number of available instances. Valid values:</p>
* <ul>
* <li>If you set the value to <strong>0</strong>, business is interrupted when the application is updated.</li>
* <li>If you set this property to -1, the system calculates a recommended value as the minimum number of available instances by using the following formula: Recommended value = Number of existing instances × 25%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5, the recommended value is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.</li>
* </ul>
* <blockquote>
* <p> To ensure business continuity, make sure that at least one instance is available during application deployment and rollback.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReadyInstances(Integer minReadyInstances) {
this.minReadyInstances = minReadyInstances;
return this;
}
/**
* <p>Indicates whether the auto scaling policy is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enabled</li>
* <li><strong>false</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder scaleRuleEnabled(Boolean scaleRuleEnabled) {
this.scaleRuleEnabled = scaleRuleEnabled;
return this;
}
/**
* <p>The name of the auto scaling policy.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder scaleRuleName(String scaleRuleName) {
this.scaleRuleName = scaleRuleName;
return this;
}
/**
* <p>The type of the auto scaling policy. Valid values:</p>
* <ul>
* <li><strong>timing</strong>: the scheduled auto scaling policy.</li>
* <li><strong>metric</strong>: the metric-based auto scaling policy.</li>
* <li><strong>mix</strong>: the hybrid auto scaling policy.</li>
* </ul>
*
* <strong>example:</strong>
* <p>timing</p>
*/
public Builder scaleRuleType(String scaleRuleType) {
this.scaleRuleType = scaleRuleType;
return this;
}
/**
* <p>The details of the scheduled auto scaling policy.</p>
*/
public Builder timer(Timer timer) {
this.timer = timer;
return this;
}
/**
* <p>The time when the auto scaling policy was updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1624330075827</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRulesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRulesRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationScalingRulesRequest</p>
*/
public class DescribeApplicationScalingRulesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
private DescribeApplicationScalingRulesRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationScalingRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
public static final class Builder extends Request.Builder<DescribeApplicationScalingRulesRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DescribeApplicationScalingRulesRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
@Override
public DescribeApplicationScalingRulesRequest build() {
return new DescribeApplicationScalingRulesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRulesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRulesResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponse</p>
*/
public class DescribeApplicationScalingRulesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationScalingRulesResponseBody body;
private DescribeApplicationScalingRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationScalingRulesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationScalingRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationScalingRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationScalingRulesResponseBody body);
@Override
DescribeApplicationScalingRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationScalingRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationScalingRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationScalingRulesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationScalingRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationScalingRulesResponse build() {
return new DescribeApplicationScalingRulesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRulesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public class DescribeApplicationScalingRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationScalingRulesResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationScalingRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationScalingRulesResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* Code.
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationScalingRulesResponseBody build() {
return new DescribeApplicationScalingRulesResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class Metrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MetricTargetAverageUtilization")
private Integer metricTargetAverageUtilization;
@com.aliyun.core.annotation.NameInMap("MetricType")
private String metricType;
@com.aliyun.core.annotation.NameInMap("SlbId")
private String slbId;
@com.aliyun.core.annotation.NameInMap("SlbLogstore")
private String slbLogstore;
@com.aliyun.core.annotation.NameInMap("SlbProject")
private String slbProject;
@com.aliyun.core.annotation.NameInMap("Vport")
private String vport;
private Metrics(Builder builder) {
this.metricTargetAverageUtilization = builder.metricTargetAverageUtilization;
this.metricType = builder.metricType;
this.slbId = builder.slbId;
this.slbLogstore = builder.slbLogstore;
this.slbProject = builder.slbProject;
this.vport = builder.vport;
}
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;
}
/**
* @return slbId
*/
public String getSlbId() {
return this.slbId;
}
/**
* @return slbLogstore
*/
public String getSlbLogstore() {
return this.slbLogstore;
}
/**
* @return slbProject
*/
public String getSlbProject() {
return this.slbProject;
}
/**
* @return vport
*/
public String getVport() {
return this.vport;
}
public static final class Builder {
private Integer metricTargetAverageUtilization;
private String metricType;
private String slbId;
private String slbLogstore;
private String slbProject;
private String vport;
private Builder() {
}
private Builder(Metrics model) {
this.metricTargetAverageUtilization = model.metricTargetAverageUtilization;
this.metricType = model.metricType;
this.slbId = model.slbId;
this.slbLogstore = model.slbLogstore;
this.slbProject = model.slbProject;
this.vport = model.vport;
}
/**
* <p>The limit on the metric.</p>
* <ul>
* <li>The limit on the CPU utilization. Unit: percentage.</li>
* <li>The limit on the memory usage. Unit: percentage.</li>
* <li>The limit on the average number of active TCP connections per second.</li>
* <li>The limit on the queries per second (QPS) of the Internet-facing Server Load Balancer (SLB) instance.</li>
* <li>The limit on the response time of the Internet-facing SLB instance. Unit: milliseconds.</li>
* </ul>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder metricTargetAverageUtilization(Integer metricTargetAverageUtilization) {
this.metricTargetAverageUtilization = metricTargetAverageUtilization;
return this;
}
/**
* <p>The metric that is used to trigger the auto scaling policy. Valid values:</p>
* <ul>
* <li><strong>CPU</strong>: the CPU utilization.</li>
* <li><strong>MEMORY</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the average number of active TCP connections per second of an application instance in 30 seconds.</li>
* <li><strong>SLB_QPS</strong>: the average QPS of the Internet-facing SLB instance associated with an application instance in 15 seconds.</li>
* <li><strong>SLB_RT</strong>: the average response time of the Internet-facing SLB instance in 15 seconds.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CPU</p>
*/
public Builder metricType(String metricType) {
this.metricType = metricType;
return this;
}
/**
* SlbId.
*/
public Builder slbId(String slbId) {
this.slbId = slbId;
return this;
}
/**
* SlbLogstore.
*/
public Builder slbLogstore(String slbLogstore) {
this.slbLogstore = slbLogstore;
return this;
}
/**
* SlbProject.
*/
public Builder slbProject(String slbProject) {
this.slbProject = slbProject;
return this;
}
/**
* Vport.
*/
public Builder vport(String vport) {
this.vport = vport;
return this;
}
public Metrics build() {
return new Metrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class CurrentMetrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentValue")
private Long currentValue;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private CurrentMetrics(Builder builder) {
this.currentValue = builder.currentValue;
this.name = builder.name;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static CurrentMetrics create() {
return builder().build();
}
/**
* @return currentValue
*/
public Long getCurrentValue() {
return this.currentValue;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Long currentValue;
private String name;
private String type;
private Builder() {
}
private Builder(CurrentMetrics model) {
this.currentValue = model.currentValue;
this.name = model.name;
this.type = model.type;
}
/**
* <p>The current value of the metric.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder currentValue(Long currentValue) {
this.currentValue = currentValue;
return this;
}
/**
* <p>The name of the metric.</p>
* <ul>
* <li><strong>cpu</strong>: the CPU utilization.</li>
* <li><strong>memory</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the number of active TCP connections.</li>
* <li><strong>slb_incall_qps</strong>: the QPS of the Internet-facing SLB instance.</li>
* <li><strong>slb_incall_rt</strong>: the response time of the Internet-facing SLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cpu</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the data. This parameter corresponds to the metric.</p>
* <ul>
* <li><strong>Resource</strong>: used when the metric is the <strong>CPU utilization</strong> or <strong>memory usage</strong>.</li>
* <li><strong>Pods</strong>: used when the metric is the <strong>number of active TCP connections</strong>.</li>
* <li><strong>External</strong>: used when the metric is about the <strong>SLB</strong> instance or from <strong>Application Real-Time Monitoring Service (ARMS)</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Resource</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public CurrentMetrics build() {
return new CurrentMetrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class NextScaleMetrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NextScaleInAverageUtilization")
private Integer nextScaleInAverageUtilization;
@com.aliyun.core.annotation.NameInMap("NextScaleOutAverageUtilization")
private Integer nextScaleOutAverageUtilization;
private NextScaleMetrics(Builder builder) {
this.name = builder.name;
this.nextScaleInAverageUtilization = builder.nextScaleInAverageUtilization;
this.nextScaleOutAverageUtilization = builder.nextScaleOutAverageUtilization;
}
public static Builder builder() {
return new Builder();
}
public static NextScaleMetrics create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nextScaleInAverageUtilization
*/
public Integer getNextScaleInAverageUtilization() {
return this.nextScaleInAverageUtilization;
}
/**
* @return nextScaleOutAverageUtilization
*/
public Integer getNextScaleOutAverageUtilization() {
return this.nextScaleOutAverageUtilization;
}
public static final class Builder {
private String name;
private Integer nextScaleInAverageUtilization;
private Integer nextScaleOutAverageUtilization;
private Builder() {
}
private Builder(NextScaleMetrics model) {
this.name = model.name;
this.nextScaleInAverageUtilization = model.nextScaleInAverageUtilization;
this.nextScaleOutAverageUtilization = model.nextScaleOutAverageUtilization;
}
/**
* <p>The name of the metric.</p>
* <ul>
* <li><strong>cpu</strong>: the CPU utilization.</li>
* <li><strong>memory</strong>: the memory usage.</li>
* <li><strong>tcpActiveConn</strong>: the number of active TCP connections.</li>
* <li><strong>slb_incall_qps</strong>: the QPS of the Internet-facing SLB instance.</li>
* <li><strong>slb_incall_rt</strong>: the response time of the Internet-facing SLB instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cpu</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The metric value as a percentage that triggers the application scale-in next time.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder nextScaleInAverageUtilization(Integer nextScaleInAverageUtilization) {
this.nextScaleInAverageUtilization = nextScaleInAverageUtilization;
return this;
}
/**
* <p>The metric value as a percentage that triggers the application scale-out next time.</p>
*
* <strong>example:</strong>
* <p>21</p>
*/
public Builder nextScaleOutAverageUtilization(Integer nextScaleOutAverageUtilization) {
this.nextScaleOutAverageUtilization = nextScaleOutAverageUtilization;
return this;
}
public NextScaleMetrics build() {
return new NextScaleMetrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class MetricsStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentMetrics")
private java.util.List<CurrentMetrics> currentMetrics;
@com.aliyun.core.annotation.NameInMap("CurrentReplicas")
private Long currentReplicas;
@com.aliyun.core.annotation.NameInMap("DesiredReplicas")
private Long desiredReplicas;
@com.aliyun.core.annotation.NameInMap("LastScaleTime")
private String lastScaleTime;
@com.aliyun.core.annotation.NameInMap("MaxReplicas")
private Long maxReplicas;
@com.aliyun.core.annotation.NameInMap("MinReplicas")
private Long minReplicas;
@com.aliyun.core.annotation.NameInMap("NextScaleMetrics")
private java.util.List<NextScaleMetrics> nextScaleMetrics;
@com.aliyun.core.annotation.NameInMap("NextScaleTimePeriod")
private Integer nextScaleTimePeriod;
private MetricsStatus(Builder builder) {
this.currentMetrics = builder.currentMetrics;
this.currentReplicas = builder.currentReplicas;
this.desiredReplicas = builder.desiredReplicas;
this.lastScaleTime = builder.lastScaleTime;
this.maxReplicas = builder.maxReplicas;
this.minReplicas = builder.minReplicas;
this.nextScaleMetrics = builder.nextScaleMetrics;
this.nextScaleTimePeriod = builder.nextScaleTimePeriod;
}
public static Builder builder() {
return new Builder();
}
public static MetricsStatus create() {
return builder().build();
}
/**
* @return currentMetrics
*/
public java.util.List<CurrentMetrics> getCurrentMetrics() {
return this.currentMetrics;
}
/**
* @return currentReplicas
*/
public Long getCurrentReplicas() {
return this.currentReplicas;
}
/**
* @return desiredReplicas
*/
public Long getDesiredReplicas() {
return this.desiredReplicas;
}
/**
* @return lastScaleTime
*/
public String getLastScaleTime() {
return this.lastScaleTime;
}
/**
* @return maxReplicas
*/
public Long getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return minReplicas
*/
public Long getMinReplicas() {
return this.minReplicas;
}
/**
* @return nextScaleMetrics
*/
public java.util.List<NextScaleMetrics> getNextScaleMetrics() {
return this.nextScaleMetrics;
}
/**
* @return nextScaleTimePeriod
*/
public Integer getNextScaleTimePeriod() {
return this.nextScaleTimePeriod;
}
public static final class Builder {
private java.util.List<CurrentMetrics> currentMetrics;
private Long currentReplicas;
private Long desiredReplicas;
private String lastScaleTime;
private Long maxReplicas;
private Long minReplicas;
private java.util.List<NextScaleMetrics> nextScaleMetrics;
private Integer nextScaleTimePeriod;
private Builder() {
}
private Builder(MetricsStatus model) {
this.currentMetrics = model.currentMetrics;
this.currentReplicas = model.currentReplicas;
this.desiredReplicas = model.desiredReplicas;
this.lastScaleTime = model.lastScaleTime;
this.maxReplicas = model.maxReplicas;
this.minReplicas = model.minReplicas;
this.nextScaleMetrics = model.nextScaleMetrics;
this.nextScaleTimePeriod = model.nextScaleTimePeriod;
}
/**
* <p>The metrics that are used to trigger the auto scaling policy this time.</p>
*/
public Builder currentMetrics(java.util.List<CurrentMetrics> currentMetrics) {
this.currentMetrics = currentMetrics;
return this;
}
/**
* <p>The current number of instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder currentReplicas(Long currentReplicas) {
this.currentReplicas = currentReplicas;
return this;
}
/**
* <p>The expected number of instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder desiredReplicas(Long desiredReplicas) {
this.desiredReplicas = desiredReplicas;
return this;
}
/**
* <p>The time when the auto scaling policy was last triggered.</p>
*
* <strong>example:</strong>
* <p>2022-01-11T08:14:32Z</p>
*/
public Builder lastScaleTime(String lastScaleTime) {
this.lastScaleTime = lastScaleTime;
return this;
}
/**
* <p>The maximum number of instances.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder maxReplicas(Long maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* <p>The minimum number of instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReplicas(Long minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* <p>The metrics that are used to trigger the auto scaling policy next time.</p>
*/
public Builder nextScaleMetrics(java.util.List<NextScaleMetrics> nextScaleMetrics) {
this.nextScaleMetrics = nextScaleMetrics;
return this;
}
/**
* <p>The duration for which the metric-based auto scaling policy takes effect next time.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder nextScaleTimePeriod(Integer nextScaleTimePeriod) {
this.nextScaleTimePeriod = nextScaleTimePeriod;
return this;
}
public MetricsStatus build() {
return new MetricsStatus(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class PrometheusMetrics extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PrometheusQuery")
private String prometheusQuery;
@com.aliyun.core.annotation.NameInMap("TargetMetricValue")
private String targetMetricValue;
private PrometheusMetrics(Builder builder) {
this.prometheusQuery = builder.prometheusQuery;
this.targetMetricValue = builder.targetMetricValue;
}
public static Builder builder() {
return new Builder();
}
public static PrometheusMetrics create() {
return builder().build();
}
/**
* @return prometheusQuery
*/
public String getPrometheusQuery() {
return this.prometheusQuery;
}
/**
* @return targetMetricValue
*/
public String getTargetMetricValue() {
return this.targetMetricValue;
}
public static final class Builder {
private String prometheusQuery;
private String targetMetricValue;
private Builder() {
}
private Builder(PrometheusMetrics model) {
this.prometheusQuery = model.prometheusQuery;
this.targetMetricValue = model.targetMetricValue;
}
/**
* PrometheusQuery.
*/
public Builder prometheusQuery(String prometheusQuery) {
this.prometheusQuery = prometheusQuery;
return this;
}
/**
* TargetMetricValue.
*/
public Builder targetMetricValue(String targetMetricValue) {
this.targetMetricValue = targetMetricValue;
return this;
}
public PrometheusMetrics build() {
return new PrometheusMetrics(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class ScaleDownRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Disabled")
private Boolean disabled;
@com.aliyun.core.annotation.NameInMap("StabilizationWindowSeconds")
private Long stabilizationWindowSeconds;
@com.aliyun.core.annotation.NameInMap("Step")
private Long step;
private ScaleDownRules(Builder builder) {
this.disabled = builder.disabled;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
this.step = builder.step;
}
public static Builder builder() {
return new Builder();
}
public static ScaleDownRules create() {
return builder().build();
}
/**
* @return disabled
*/
public Boolean getDisabled() {
return this.disabled;
}
/**
* @return stabilizationWindowSeconds
*/
public Long getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
/**
* @return step
*/
public Long getStep() {
return this.step;
}
public static final class Builder {
private Boolean disabled;
private Long stabilizationWindowSeconds;
private Long step;
private Builder() {
}
private Builder(ScaleDownRules model) {
this.disabled = model.disabled;
this.stabilizationWindowSeconds = model.stabilizationWindowSeconds;
this.step = model.step;
}
/**
* <p>Indicates whether the application scale-in was disabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application scale-in was disabled.</li>
* <li><strong>false</strong>: The application scale-in was enabled.</li>
* </ul>
* <blockquote>
* <p> When this parameter is set to true, the application instances will never be reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* <p>The cooldown time of the scale-in. Valid values: 0 to 3600. Unit: seconds. The default value is 0.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder stabilizationWindowSeconds(Long stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
/**
* <p>The step size for the scale-in. The maximum number of instances that can be reduced in a unit of time.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder step(Long step) {
this.step = step;
return this;
}
public ScaleDownRules build() {
return new ScaleDownRules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class ScaleUpRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Disabled")
private Boolean disabled;
@com.aliyun.core.annotation.NameInMap("StabilizationWindowSeconds")
private Long stabilizationWindowSeconds;
@com.aliyun.core.annotation.NameInMap("Step")
private Long step;
private ScaleUpRules(Builder builder) {
this.disabled = builder.disabled;
this.stabilizationWindowSeconds = builder.stabilizationWindowSeconds;
this.step = builder.step;
}
public static Builder builder() {
return new Builder();
}
public static ScaleUpRules create() {
return builder().build();
}
/**
* @return disabled
*/
public Boolean getDisabled() {
return this.disabled;
}
/**
* @return stabilizationWindowSeconds
*/
public Long getStabilizationWindowSeconds() {
return this.stabilizationWindowSeconds;
}
/**
* @return step
*/
public Long getStep() {
return this.step;
}
public static final class Builder {
private Boolean disabled;
private Long stabilizationWindowSeconds;
private Long step;
private Builder() {
}
private Builder(ScaleUpRules model) {
this.disabled = model.disabled;
this.stabilizationWindowSeconds = model.stabilizationWindowSeconds;
this.step = model.step;
}
/**
* <p>Indicates whether the application scale-in was disabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application scale-in was disabled.</li>
* <li><strong>false</strong>: The application scale-in was enabled.</li>
* </ul>
* <blockquote>
* <p> When this parameter is set to true, the application instances will never be reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* <p>The cooldown time of the scale-out. Valid values: 0 to 3600. Unit: seconds. The default value is 0.</p>
*
* <strong>example:</strong>
* <p>300</p>
*/
public Builder stabilizationWindowSeconds(Long stabilizationWindowSeconds) {
this.stabilizationWindowSeconds = stabilizationWindowSeconds;
return this;
}
/**
* <p>The step size for the scale-out. The maximum number of instances that can be added in a unit of time.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder step(Long step) {
this.step = step;
return this;
}
public ScaleUpRules build() {
return new ScaleUpRules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class Metric extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaxReplicas")
private Integer maxReplicas;
@com.aliyun.core.annotation.NameInMap("MetricSource")
private String metricSource;
@com.aliyun.core.annotation.NameInMap("Metrics")
private java.util.List<Metrics> metrics;
@com.aliyun.core.annotation.NameInMap("MetricsStatus")
private MetricsStatus metricsStatus;
@com.aliyun.core.annotation.NameInMap("MinReplicas")
private Integer minReplicas;
@com.aliyun.core.annotation.NameInMap("PrometheusMetrics")
private java.util.List<PrometheusMetrics> prometheusMetrics;
@com.aliyun.core.annotation.NameInMap("PrometheusToken")
private String prometheusToken;
@com.aliyun.core.annotation.NameInMap("PrometheusUrl")
private String prometheusUrl;
@com.aliyun.core.annotation.NameInMap("ScaleDownRules")
private ScaleDownRules scaleDownRules;
@com.aliyun.core.annotation.NameInMap("ScaleUpRules")
private ScaleUpRules scaleUpRules;
private Metric(Builder builder) {
this.maxReplicas = builder.maxReplicas;
this.metricSource = builder.metricSource;
this.metrics = builder.metrics;
this.metricsStatus = builder.metricsStatus;
this.minReplicas = builder.minReplicas;
this.prometheusMetrics = builder.prometheusMetrics;
this.prometheusToken = builder.prometheusToken;
this.prometheusUrl = builder.prometheusUrl;
this.scaleDownRules = builder.scaleDownRules;
this.scaleUpRules = builder.scaleUpRules;
}
public static Builder builder() {
return new Builder();
}
public static Metric create() {
return builder().build();
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return metricSource
*/
public String getMetricSource() {
return this.metricSource;
}
/**
* @return metrics
*/
public java.util.List<Metrics> getMetrics() {
return this.metrics;
}
/**
* @return metricsStatus
*/
public MetricsStatus getMetricsStatus() {
return this.metricsStatus;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
/**
* @return prometheusMetrics
*/
public java.util.List<PrometheusMetrics> getPrometheusMetrics() {
return this.prometheusMetrics;
}
/**
* @return prometheusToken
*/
public String getPrometheusToken() {
return this.prometheusToken;
}
/**
* @return prometheusUrl
*/
public String getPrometheusUrl() {
return this.prometheusUrl;
}
/**
* @return scaleDownRules
*/
public ScaleDownRules getScaleDownRules() {
return this.scaleDownRules;
}
/**
* @return scaleUpRules
*/
public ScaleUpRules getScaleUpRules() {
return this.scaleUpRules;
}
public static final class Builder {
private Integer maxReplicas;
private String metricSource;
private java.util.List<Metrics> metrics;
private MetricsStatus metricsStatus;
private Integer minReplicas;
private java.util.List<PrometheusMetrics> prometheusMetrics;
private String prometheusToken;
private String prometheusUrl;
private ScaleDownRules scaleDownRules;
private ScaleUpRules scaleUpRules;
private Builder() {
}
private Builder(Metric model) {
this.maxReplicas = model.maxReplicas;
this.metricSource = model.metricSource;
this.metrics = model.metrics;
this.metricsStatus = model.metricsStatus;
this.minReplicas = model.minReplicas;
this.prometheusMetrics = model.prometheusMetrics;
this.prometheusToken = model.prometheusToken;
this.prometheusUrl = model.prometheusUrl;
this.scaleDownRules = model.scaleDownRules;
this.scaleUpRules = model.scaleUpRules;
}
/**
* <p>The maximum number of instances.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* MetricSource.
*/
public Builder metricSource(String metricSource) {
this.metricSource = metricSource;
return this;
}
/**
* <p>The list of metrics that are used to trigger the auto scaling policy.</p>
*/
public Builder metrics(java.util.List<Metrics> metrics) {
this.metrics = metrics;
return this;
}
/**
* <p>The execution status of the metric-based auto scaling policy.</p>
*/
public Builder metricsStatus(MetricsStatus metricsStatus) {
this.metricsStatus = metricsStatus;
return this;
}
/**
* <p>The minimum number of instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* PrometheusMetrics.
*/
public Builder prometheusMetrics(java.util.List<PrometheusMetrics> prometheusMetrics) {
this.prometheusMetrics = prometheusMetrics;
return this;
}
/**
* PrometheusToken.
*/
public Builder prometheusToken(String prometheusToken) {
this.prometheusToken = prometheusToken;
return this;
}
/**
* PrometheusUrl.
*/
public Builder prometheusUrl(String prometheusUrl) {
this.prometheusUrl = prometheusUrl;
return this;
}
/**
* <p>Rules that determine the application scale-in.</p>
*/
public Builder scaleDownRules(ScaleDownRules scaleDownRules) {
this.scaleDownRules = scaleDownRules;
return this;
}
/**
* <p>Rules that determine the application scale-out.</p>
*/
public Builder scaleUpRules(ScaleUpRules scaleUpRules) {
this.scaleUpRules = scaleUpRules;
return this;
}
public Metric build() {
return new Metric(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class Schedules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AtTime")
private String atTime;
@com.aliyun.core.annotation.NameInMap("MaxReplicas")
private Long maxReplicas;
@com.aliyun.core.annotation.NameInMap("MinReplicas")
private Long minReplicas;
@com.aliyun.core.annotation.NameInMap("TargetReplicas")
private Integer targetReplicas;
private Schedules(Builder builder) {
this.atTime = builder.atTime;
this.maxReplicas = builder.maxReplicas;
this.minReplicas = builder.minReplicas;
this.targetReplicas = builder.targetReplicas;
}
public static Builder builder() {
return new Builder();
}
public static Schedules create() {
return builder().build();
}
/**
* @return atTime
*/
public String getAtTime() {
return this.atTime;
}
/**
* @return maxReplicas
*/
public Long getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return minReplicas
*/
public Long getMinReplicas() {
return this.minReplicas;
}
/**
* @return targetReplicas
*/
public Integer getTargetReplicas() {
return this.targetReplicas;
}
public static final class Builder {
private String atTime;
private Long maxReplicas;
private Long minReplicas;
private Integer targetReplicas;
private Builder() {
}
private Builder(Schedules model) {
this.atTime = model.atTime;
this.maxReplicas = model.maxReplicas;
this.minReplicas = model.minReplicas;
this.targetReplicas = model.targetReplicas;
}
/**
* <p>The point in time. Format: <strong>Hour:Minute</strong>.</p>
*
* <strong>example:</strong>
* <p>08:00</p>
*/
public Builder atTime(String atTime) {
this.atTime = atTime;
return this;
}
/**
* <p>The maximum number of instances.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder maxReplicas(Long maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* <p>The minimum number of instances.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minReplicas(Long minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* <p>The expected number of instances.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder targetReplicas(Integer targetReplicas) {
this.targetReplicas = targetReplicas;
return this;
}
public Schedules build() {
return new Schedules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class Timer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginDate")
private String beginDate;
@com.aliyun.core.annotation.NameInMap("EndDate")
private String endDate;
@com.aliyun.core.annotation.NameInMap("Period")
private String period;
@com.aliyun.core.annotation.NameInMap("Schedules")
private java.util.List<Schedules> schedules;
@com.aliyun.core.annotation.NameInMap("TimeZone")
private String timeZone;
private Timer(Builder builder) {
this.beginDate = builder.beginDate;
this.endDate = builder.endDate;
this.period = builder.period;
this.schedules = builder.schedules;
this.timeZone = builder.timeZone;
}
public static Builder builder() {
return new Builder();
}
public static Timer create() {
return builder().build();
}
/**
* @return beginDate
*/
public String getBeginDate() {
return this.beginDate;
}
/**
* @return endDate
*/
public String getEndDate() {
return this.endDate;
}
/**
* @return period
*/
public String getPeriod() {
return this.period;
}
/**
* @return schedules
*/
public java.util.List<Schedules> getSchedules() {
return this.schedules;
}
/**
* @return timeZone
*/
public String getTimeZone() {
return this.timeZone;
}
public static final class Builder {
private String beginDate;
private String endDate;
private String period;
private java.util.List<Schedules> schedules;
private String timeZone;
private Builder() {
}
private Builder(Timer model) {
this.beginDate = model.beginDate;
this.endDate = model.endDate;
this.period = model.period;
this.schedules = model.schedules;
this.timeZone = model.timeZone;
}
/**
* <p>The start date of the validity period of the scheduled auto scaling policy. Valid values:</p>
* <ul>
* <li>If both the <strong>BeginDate</strong> and <strong>EndDate</strong> parameters are set to <strong>null</strong>, the auto scaling policy can always be triggered. The default value for these parameters is null.</li>
* <li>If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if <strong>BeginDate</strong> is 2021-03-25 and <strong>EndDate</strong> is 2021-04-25, the auto scaling policy is valid for one month.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2021-03-25</p>
*/
public Builder beginDate(String beginDate) {
this.beginDate = beginDate;
return this;
}
/**
* <p>The end date of the validity period of the scheduled auto scaling policy. Valid values:</p>
* <ul>
* <li>If both the <strong>BeginDate</strong> and <strong>EndDate</strong> parameters are set to <strong>null</strong>, the auto scaling policy can always be triggered. The default value for these parameters is null.</li>
* <li>If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if <strong>BeginDate</strong> is 2021-03-25 and <strong>EndDate</strong> is 2021-04-25, the auto scaling policy is valid for one month.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2021-04-25</p>
*/
public Builder endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* <p>The days on which the scheduled auto scaling policy takes effect. Valid values:</p>
* <ul>
* <li><p><strong>* * *</strong>: The scheduled auto scaling policy takes effect at a specified time every day.</p>
* </li>
* <li><p><strong>* * Fri,Mon</strong>: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a week. The specified time is in the GMT+8 time zone. Valid values:</p>
* <ul>
* <li><strong>Sun</strong>: Sunday</li>
* <li><strong>Mon</strong>: Monday</li>
* <li><strong>Tue</strong>: Tuesday</li>
* <li><strong>Wed</strong>: Wednesday</li>
* <li><strong>Thu</strong>: Thursday</li>
* <li><strong>Fri</strong>: Friday</li>
* <li><strong>Sat</strong>: Saturday</li>
* </ul>
* </li>
* <li><p><strong>1,2,3,28,31 * *</strong>: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a month. Valid values: 1 to 31. If the month does not have a 31st day, the auto scaling policy takes effect on the specified days other than the 31st day.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <hr>
*/
public Builder period(String period) {
this.period = period;
return this;
}
/**
* <p>The points in time when the auto scaling policy is triggered within one day.</p>
*/
public Builder schedules(java.util.List<Schedules> schedules) {
this.schedules = schedules;
return this;
}
/**
* TimeZone.
*/
public Builder timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
public Timer build() {
return new Timer(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class ApplicationScalingRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("LastDisableTime")
private Long lastDisableTime;
@com.aliyun.core.annotation.NameInMap("Metric")
private Metric metric;
@com.aliyun.core.annotation.NameInMap("MinReadyInstanceRatio")
private Integer minReadyInstanceRatio;
@com.aliyun.core.annotation.NameInMap("MinReadyInstances")
private Integer minReadyInstances;
@com.aliyun.core.annotation.NameInMap("ScaleRuleEnabled")
private Boolean scaleRuleEnabled;
@com.aliyun.core.annotation.NameInMap("ScaleRuleName")
private String scaleRuleName;
@com.aliyun.core.annotation.NameInMap("ScaleRuleType")
private String scaleRuleType;
@com.aliyun.core.annotation.NameInMap("Timer")
private Timer timer;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private ApplicationScalingRules(Builder builder) {
this.appId = builder.appId;
this.createTime = builder.createTime;
this.lastDisableTime = builder.lastDisableTime;
this.metric = builder.metric;
this.minReadyInstanceRatio = builder.minReadyInstanceRatio;
this.minReadyInstances = builder.minReadyInstances;
this.scaleRuleEnabled = builder.scaleRuleEnabled;
this.scaleRuleName = builder.scaleRuleName;
this.scaleRuleType = builder.scaleRuleType;
this.timer = builder.timer;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static ApplicationScalingRules create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return lastDisableTime
*/
public Long getLastDisableTime() {
return this.lastDisableTime;
}
/**
* @return metric
*/
public Metric getMetric() {
return this.metric;
}
/**
* @return minReadyInstanceRatio
*/
public Integer getMinReadyInstanceRatio() {
return this.minReadyInstanceRatio;
}
/**
* @return minReadyInstances
*/
public Integer getMinReadyInstances() {
return this.minReadyInstances;
}
/**
* @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 timer
*/
public Timer getTimer() {
return this.timer;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private String appId;
private Long createTime;
private Long lastDisableTime;
private Metric metric;
private Integer minReadyInstanceRatio;
private Integer minReadyInstances;
private Boolean scaleRuleEnabled;
private String scaleRuleName;
private String scaleRuleType;
private Timer timer;
private Long updateTime;
private Builder() {
}
private Builder(ApplicationScalingRules model) {
this.appId = model.appId;
this.createTime = model.createTime;
this.lastDisableTime = model.lastDisableTime;
this.metric = model.metric;
this.minReadyInstanceRatio = model.minReadyInstanceRatio;
this.minReadyInstances = model.minReadyInstances;
this.scaleRuleEnabled = model.scaleRuleEnabled;
this.scaleRuleName = model.scaleRuleName;
this.scaleRuleType = model.scaleRuleType;
this.timer = model.timer;
this.updateTime = model.updateTime;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The time when the auto scaling policy was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1616642248938</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The time when the auto scaling policy was last disabled.</p>
*
* <strong>example:</strong>
* <p>1641882854484</p>
*/
public Builder lastDisableTime(Long lastDisableTime) {
this.lastDisableTime = lastDisableTime;
return this;
}
/**
* <p>The details of the metric-based auto scaling policy.</p>
*/
public Builder metric(Metric metric) {
this.metric = metric;
return this;
}
/**
* MinReadyInstanceRatio.
*/
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
this.minReadyInstanceRatio = minReadyInstanceRatio;
return this;
}
/**
* MinReadyInstances.
*/
public Builder minReadyInstances(Integer minReadyInstances) {
this.minReadyInstances = minReadyInstances;
return this;
}
/**
* <p>Indicates whether the auto scaling policy is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enabled</li>
* <li><strong>false</strong>: disabled</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder scaleRuleEnabled(Boolean scaleRuleEnabled) {
this.scaleRuleEnabled = scaleRuleEnabled;
return this;
}
/**
* <p>The name of the auto scaling policy.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder scaleRuleName(String scaleRuleName) {
this.scaleRuleName = scaleRuleName;
return this;
}
/**
* <p>The type of the auto scaling policy. Valid values:</p>
* <ul>
* <li><strong>timing</strong>: the scheduled auto scaling policy.</li>
* <li><strong>metric</strong>: the metric-based auto scaling policy.</li>
* <li><strong>mix</strong>: the hybrid auto scaling policy.</li>
* </ul>
*
* <strong>example:</strong>
* <p>timing</p>
*/
public Builder scaleRuleType(String scaleRuleType) {
this.scaleRuleType = scaleRuleType;
return this;
}
/**
* <p>The details of the scheduled auto scaling policy.</p>
*/
public Builder timer(Timer timer) {
this.timer = timer;
return this;
}
/**
* <p>The time when the auto scaling policy was updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1616642248938</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public ApplicationScalingRules build() {
return new ApplicationScalingRules(this);
}
}
}
/**
*
* {@link DescribeApplicationScalingRulesResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationScalingRulesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApplicationScalingRules")
private java.util.List<ApplicationScalingRules> applicationScalingRules;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Integer totalSize;
private Data(Builder builder) {
this.applicationScalingRules = builder.applicationScalingRules;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return applicationScalingRules
*/
public java.util.List<ApplicationScalingRules> getApplicationScalingRules() {
return this.applicationScalingRules;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalSize
*/
public Integer getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private java.util.List<ApplicationScalingRules> applicationScalingRules;
private Integer currentPage;
private Integer pageSize;
private Integer totalSize;
private Builder() {
}
private Builder(Data model) {
this.applicationScalingRules = model.applicationScalingRules;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalSize = model.totalSize;
}
/**
* <p>The auto scaling policies of the application.</p>
*/
public Builder applicationScalingRules(java.util.List<ApplicationScalingRules> applicationScalingRules) {
this.applicationScalingRules = applicationScalingRules;
return this;
}
/**
* <p>The number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of auto scaling policies.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder totalSize(Integer totalSize) {
this.totalSize = totalSize;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationSlbsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationSlbsRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationSlbsRequest</p>
*/
public class DescribeApplicationSlbsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
private DescribeApplicationSlbsRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationSlbsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
public static final class Builder extends Request.Builder<DescribeApplicationSlbsRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DescribeApplicationSlbsRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>The ID of the request.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>017f39b8-dfa4-4e16-a84b-1dcee4b1****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
@Override
public DescribeApplicationSlbsRequest build() {
return new DescribeApplicationSlbsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationSlbsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationSlbsResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationSlbsResponse</p>
*/
public class DescribeApplicationSlbsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationSlbsResponseBody body;
private DescribeApplicationSlbsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationSlbsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationSlbsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationSlbsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationSlbsResponseBody body);
@Override
DescribeApplicationSlbsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationSlbsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationSlbsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationSlbsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationSlbsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationSlbsResponse build() {
return new DescribeApplicationSlbsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationSlbsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationSlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationSlbsResponseBody</p>
*/
public class DescribeApplicationSlbsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationSlbsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationSlbsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationSlbsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>Indicates whether the information about the SLB instances that are associated with an application was obtained successfully. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the information was obtained successfully.</li>
* <li><strong>false</strong>: indicates that the information failed to be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: indicates that the request was successful.</li>
* <li><strong>3xx</strong>: indicates that the request was redirected.</li>
* <li><strong>4xx</strong>: indicates that the request was invalid.</li>
* <li><strong>5xx</strong>: indicates that a server error occurred.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The ID of the trace. It can be used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The returned message.</p>
* <ul>
* <li><strong>success</strong> is returned when the request succeeds.</li>
* <li>An error code is returned when the request fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The returned data.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationSlbsResponseBody build() {
return new DescribeApplicationSlbsResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationSlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationSlbsResponseBody</p>
*/
public static class Internet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("HttpsCaCertId")
private String httpsCaCertId;
@com.aliyun.core.annotation.NameInMap("HttpsCertId")
private String httpsCertId;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("StickySession")
private Boolean stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("TargetPort")
private Integer targetPort;
private Internet(Builder builder) {
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.createTime = builder.createTime;
this.httpsCaCertId = builder.httpsCaCertId;
this.httpsCertId = builder.httpsCertId;
this.port = builder.port;
this.protocol = builder.protocol;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.targetPort = builder.targetPort;
}
public static Builder builder() {
return new Builder();
}
public static Internet create() {
return builder().build();
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return httpsCaCertId
*/
public String getHttpsCaCertId() {
return this.httpsCaCertId;
}
/**
* @return httpsCertId
*/
public String getHttpsCertId() {
return this.httpsCertId;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return stickySession
*/
public Boolean getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return targetPort
*/
public Integer getTargetPort() {
return this.targetPort;
}
public static final class Builder {
private String cookie;
private Integer cookieTimeout;
private Long createTime;
private String httpsCaCertId;
private String httpsCertId;
private Integer port;
private String protocol;
private Boolean stickySession;
private String stickySessionType;
private Integer targetPort;
private Builder() {
}
private Builder(Internet model) {
this.cookie = model.cookie;
this.cookieTimeout = model.cookieTimeout;
this.createTime = model.createTime;
this.httpsCaCertId = model.httpsCaCertId;
this.httpsCertId = model.httpsCertId;
this.port = model.port;
this.protocol = model.protocol;
this.stickySession = model.stickySession;
this.stickySessionType = model.stickySessionType;
this.targetPort = model.targetPort;
}
/**
* Cookie.
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* CookieTimeout.
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The timestamp when the canary release rule was created.</p>
*
* <strong>example:</strong>
* <p>1741247308294</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* HttpsCaCertId.
*/
public Builder httpsCaCertId(String httpsCaCertId) {
this.httpsCaCertId = httpsCaCertId;
return this;
}
/**
* <p>The supported protocol.</p>
*
* <strong>example:</strong>
* <p>1513561019707729_16f37aae5f3_-375882821_-169099****</p>
*/
public Builder httpsCertId(String httpsCertId) {
this.httpsCertId = httpsCertId;
return this;
}
/**
* <p>The ID of the internal-facing SLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The container port.</p>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* StickySession.
*/
public Builder stickySession(Boolean stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* StickySessionType.
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The port specified for the SLB listener.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder targetPort(Integer targetPort) {
this.targetPort = targetPort;
return this;
}
public Internet build() {
return new Internet(this);
}
}
}
/**
*
* {@link DescribeApplicationSlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationSlbsResponseBody</p>
*/
public static class Intranet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cookie")
private String cookie;
@com.aliyun.core.annotation.NameInMap("CookieTimeout")
private Integer cookieTimeout;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("HttpsCaCertId")
private String httpsCaCertId;
@com.aliyun.core.annotation.NameInMap("HttpsCertId")
private String httpsCertId;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("StickySession")
private Boolean stickySession;
@com.aliyun.core.annotation.NameInMap("StickySessionType")
private String stickySessionType;
@com.aliyun.core.annotation.NameInMap("TargetPort")
private Integer targetPort;
private Intranet(Builder builder) {
this.cookie = builder.cookie;
this.cookieTimeout = builder.cookieTimeout;
this.createTime = builder.createTime;
this.httpsCaCertId = builder.httpsCaCertId;
this.httpsCertId = builder.httpsCertId;
this.port = builder.port;
this.protocol = builder.protocol;
this.stickySession = builder.stickySession;
this.stickySessionType = builder.stickySessionType;
this.targetPort = builder.targetPort;
}
public static Builder builder() {
return new Builder();
}
public static Intranet create() {
return builder().build();
}
/**
* @return cookie
*/
public String getCookie() {
return this.cookie;
}
/**
* @return cookieTimeout
*/
public Integer getCookieTimeout() {
return this.cookieTimeout;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return httpsCaCertId
*/
public String getHttpsCaCertId() {
return this.httpsCaCertId;
}
/**
* @return httpsCertId
*/
public String getHttpsCertId() {
return this.httpsCertId;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return stickySession
*/
public Boolean getStickySession() {
return this.stickySession;
}
/**
* @return stickySessionType
*/
public String getStickySessionType() {
return this.stickySessionType;
}
/**
* @return targetPort
*/
public Integer getTargetPort() {
return this.targetPort;
}
public static final class Builder {
private String cookie;
private Integer cookieTimeout;
private Long createTime;
private String httpsCaCertId;
private String httpsCertId;
private Integer port;
private String protocol;
private Boolean stickySession;
private String stickySessionType;
private Integer targetPort;
private Builder() {
}
private Builder(Intranet model) {
this.cookie = model.cookie;
this.cookieTimeout = model.cookieTimeout;
this.createTime = model.createTime;
this.httpsCaCertId = model.httpsCaCertId;
this.httpsCertId = model.httpsCertId;
this.port = model.port;
this.protocol = model.protocol;
this.stickySession = model.stickySession;
this.stickySessionType = model.stickySessionType;
this.targetPort = model.targetPort;
}
/**
* Cookie.
*/
public Builder cookie(String cookie) {
this.cookie = cookie;
return this;
}
/**
* CookieTimeout.
*/
public Builder cookieTimeout(Integer cookieTimeout) {
this.cookieTimeout = cookieTimeout;
return this;
}
/**
* <p>The timestamp when the canary release rule was created.</p>
*
* <strong>example:</strong>
* <p>1741247308294</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* HttpsCaCertId.
*/
public Builder httpsCaCertId(String httpsCaCertId) {
this.httpsCaCertId = httpsCaCertId;
return this;
}
/**
* <p>The supported protocol.</p>
*
* <strong>example:</strong>
* <p>1513561019707729_16f37aae5f3_-375882821_-169099****</p>
*/
public Builder httpsCertId(String httpsCertId) {
this.httpsCertId = httpsCertId;
return this;
}
/**
* <p>The IP address of the Internet-facing SLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The container port.</p>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* StickySession.
*/
public Builder stickySession(Boolean stickySession) {
this.stickySession = stickySession;
return this;
}
/**
* StickySessionType.
*/
public Builder stickySessionType(String stickySessionType) {
this.stickySessionType = stickySessionType;
return this;
}
/**
* <p>The port specified for the SLB listener.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder targetPort(Integer targetPort) {
this.targetPort = targetPort;
return this;
}
public Intranet build() {
return new Intranet(this);
}
}
}
/**
*
* {@link DescribeApplicationSlbsResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationSlbsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.NameInMap("Internet")
private java.util.List<Internet> internet;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("InternetSlbChargeType")
private String internetSlbChargeType;
@com.aliyun.core.annotation.NameInMap("InternetSlbExpired")
private Boolean internetSlbExpired;
@com.aliyun.core.annotation.NameInMap("InternetSlbId")
private String internetSlbId;
@com.aliyun.core.annotation.NameInMap("Intranet")
private java.util.List<Intranet> intranet;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("IntranetSlbChargeType")
private String intranetSlbChargeType;
@com.aliyun.core.annotation.NameInMap("IntranetSlbExpired")
private Boolean intranetSlbExpired;
@com.aliyun.core.annotation.NameInMap("IntranetSlbId")
private String intranetSlbId;
private Data(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.clusterId = builder.clusterId;
this.internet = builder.internet;
this.internetIp = builder.internetIp;
this.internetSlbChargeType = builder.internetSlbChargeType;
this.internetSlbExpired = builder.internetSlbExpired;
this.internetSlbId = builder.internetSlbId;
this.intranet = builder.intranet;
this.intranetIp = builder.intranetIp;
this.intranetSlbChargeType = builder.intranetSlbChargeType;
this.intranetSlbExpired = builder.intranetSlbExpired;
this.intranetSlbId = builder.intranetSlbId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return internet
*/
public java.util.List<Internet> getInternet() {
return this.internet;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return internetSlbChargeType
*/
public String getInternetSlbChargeType() {
return this.internetSlbChargeType;
}
/**
* @return internetSlbExpired
*/
public Boolean getInternetSlbExpired() {
return this.internetSlbExpired;
}
/**
* @return internetSlbId
*/
public String getInternetSlbId() {
return this.internetSlbId;
}
/**
* @return intranet
*/
public java.util.List<Intranet> getIntranet() {
return this.intranet;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return intranetSlbChargeType
*/
public String getIntranetSlbChargeType() {
return this.intranetSlbChargeType;
}
/**
* @return intranetSlbExpired
*/
public Boolean getIntranetSlbExpired() {
return this.intranetSlbExpired;
}
/**
* @return intranetSlbId
*/
public String getIntranetSlbId() {
return this.intranetSlbId;
}
public static final class Builder {
private String appId;
private String appName;
private String clusterId;
private java.util.List<Internet> internet;
private String internetIp;
private String internetSlbChargeType;
private Boolean internetSlbExpired;
private String internetSlbId;
private java.util.List<Intranet> intranet;
private String intranetIp;
private String intranetSlbChargeType;
private Boolean intranetSlbExpired;
private String intranetSlbId;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.appName = model.appName;
this.clusterId = model.clusterId;
this.internet = model.internet;
this.internetIp = model.internetIp;
this.internetSlbChargeType = model.internetSlbChargeType;
this.internetSlbExpired = model.internetSlbExpired;
this.internetSlbId = model.internetSlbId;
this.intranet = model.intranet;
this.intranetIp = model.intranetIp;
this.intranetSlbChargeType = model.intranetSlbChargeType;
this.intranetSlbExpired = model.intranetSlbExpired;
this.intranetSlbId = model.intranetSlbId;
}
/**
* AppId.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* AppName.
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* ClusterId.
*/
public Builder clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* <p>The configurations of the Internet-facing SLB instance.</p>
*/
public Builder internet(java.util.List<Internet> internet) {
this.internet = internet;
return this;
}
/**
* <p>The ID of the Internet-facing SLB instance.</p>
*
* <strong>example:</strong>
* <p><code>59.74.**.**</code></p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* InternetSlbChargeType.
*/
public Builder internetSlbChargeType(String internetSlbChargeType) {
this.internetSlbChargeType = internetSlbChargeType;
return this;
}
/**
* InternetSlbExpired.
*/
public Builder internetSlbExpired(Boolean internetSlbExpired) {
this.internetSlbExpired = internetSlbExpired;
return this;
}
/**
* <p>Configurations of Internet-facing SLB instances.</p>
*
* <strong>example:</strong>
* <p>lb-uf6xc7wybefehnv45****</p>
*/
public Builder internetSlbId(String internetSlbId) {
this.internetSlbId = internetSlbId;
return this;
}
/**
* <p>The configurations of the internal-facing SLB instance.</p>
*/
public Builder intranet(java.util.List<Intranet> intranet) {
this.intranet = intranet;
return this;
}
/**
* <p>The error code.</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned when the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned when the request fails. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>192.168.0.0</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* IntranetSlbChargeType.
*/
public Builder intranetSlbChargeType(String intranetSlbChargeType) {
this.intranetSlbChargeType = intranetSlbChargeType;
return this;
}
/**
* IntranetSlbExpired.
*/
public Builder intranetSlbExpired(Boolean intranetSlbExpired) {
this.intranetSlbExpired = intranetSlbExpired;
return this;
}
/**
* <p>The IP address of the internal-facing SLB instance.</p>
*
* <strong>example:</strong>
* <p>lb-uf6xc7wybefehnv45****</p>
*/
public Builder intranetSlbId(String intranetSlbId) {
this.intranetSlbId = intranetSlbId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationStatusRequest} extends {@link RequestModel}
*
* <p>DescribeApplicationStatusRequest</p>
*/
public class DescribeApplicationStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
private DescribeApplicationStatusRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
public static final class Builder extends Request.Builder<DescribeApplicationStatusRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DescribeApplicationStatusRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>The ID of the application.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0099b7be-5f5b-4512-a7fc-56049ef1****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
@Override
public DescribeApplicationStatusRequest build() {
return new DescribeApplicationStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationStatusResponse} extends {@link TeaModel}
*
* <p>DescribeApplicationStatusResponse</p>
*/
public class DescribeApplicationStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeApplicationStatusResponseBody body;
private DescribeApplicationStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeApplicationStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeApplicationStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeApplicationStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeApplicationStatusResponseBody body);
@Override
DescribeApplicationStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeApplicationStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeApplicationStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeApplicationStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeApplicationStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeApplicationStatusResponse build() {
return new DescribeApplicationStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeApplicationStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationStatusResponseBody</p>
*/
public class DescribeApplicationStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeApplicationStatusResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApplicationStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeApplicationStatusResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned result.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the status of the application was queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The status was queried.</li>
* <li><strong>false</strong>: The status failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeApplicationStatusResponseBody build() {
return new DescribeApplicationStatusResponseBody(this);
}
}
/**
*
* {@link DescribeApplicationStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeApplicationStatusResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("ArmsAdvancedEnabled")
private String armsAdvancedEnabled;
@com.aliyun.core.annotation.NameInMap("ArmsApmInfo")
private String armsApmInfo;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CurrentStatus")
private String currentStatus;
@com.aliyun.core.annotation.NameInMap("EnableAgent")
private Boolean enableAgent;
@com.aliyun.core.annotation.NameInMap("FileSizeLimit")
private Long fileSizeLimit;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderId")
private String lastChangeOrderId;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderRunning")
private Boolean lastChangeOrderRunning;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderStatus")
private String lastChangeOrderStatus;
@com.aliyun.core.annotation.NameInMap("RunningInstances")
private Integer runningInstances;
@com.aliyun.core.annotation.NameInMap("SubStatus")
private String subStatus;
private Data(Builder builder) {
this.appId = builder.appId;
this.armsAdvancedEnabled = builder.armsAdvancedEnabled;
this.armsApmInfo = builder.armsApmInfo;
this.createTime = builder.createTime;
this.currentStatus = builder.currentStatus;
this.enableAgent = builder.enableAgent;
this.fileSizeLimit = builder.fileSizeLimit;
this.lastChangeOrderId = builder.lastChangeOrderId;
this.lastChangeOrderRunning = builder.lastChangeOrderRunning;
this.lastChangeOrderStatus = builder.lastChangeOrderStatus;
this.runningInstances = builder.runningInstances;
this.subStatus = builder.subStatus;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return armsAdvancedEnabled
*/
public String getArmsAdvancedEnabled() {
return this.armsAdvancedEnabled;
}
/**
* @return armsApmInfo
*/
public String getArmsApmInfo() {
return this.armsApmInfo;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return currentStatus
*/
public String getCurrentStatus() {
return this.currentStatus;
}
/**
* @return enableAgent
*/
public Boolean getEnableAgent() {
return this.enableAgent;
}
/**
* @return fileSizeLimit
*/
public Long getFileSizeLimit() {
return this.fileSizeLimit;
}
/**
* @return lastChangeOrderId
*/
public String getLastChangeOrderId() {
return this.lastChangeOrderId;
}
/**
* @return lastChangeOrderRunning
*/
public Boolean getLastChangeOrderRunning() {
return this.lastChangeOrderRunning;
}
/**
* @return lastChangeOrderStatus
*/
public String getLastChangeOrderStatus() {
return this.lastChangeOrderStatus;
}
/**
* @return runningInstances
*/
public Integer getRunningInstances() {
return this.runningInstances;
}
/**
* @return subStatus
*/
public String getSubStatus() {
return this.subStatus;
}
public static final class Builder {
private String appId;
private String armsAdvancedEnabled;
private String armsApmInfo;
private String createTime;
private String currentStatus;
private Boolean enableAgent;
private Long fileSizeLimit;
private String lastChangeOrderId;
private Boolean lastChangeOrderRunning;
private String lastChangeOrderStatus;
private Integer runningInstances;
private String subStatus;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.armsAdvancedEnabled = model.armsAdvancedEnabled;
this.armsApmInfo = model.armsApmInfo;
this.createTime = model.createTime;
this.currentStatus = model.currentStatus;
this.enableAgent = model.enableAgent;
this.fileSizeLimit = model.fileSizeLimit;
this.lastChangeOrderId = model.lastChangeOrderId;
this.lastChangeOrderRunning = model.lastChangeOrderRunning;
this.lastChangeOrderStatus = model.lastChangeOrderStatus;
this.runningInstances = model.runningInstances;
this.subStatus = model.subStatus;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>0099b7be-5f5b-4512-a7fc-56049ef1****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>Indicates whether Application Real-Time Monitoring Service (ARMS) advanced monitoring is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder armsAdvancedEnabled(String armsAdvancedEnabled) {
this.armsAdvancedEnabled = armsAdvancedEnabled;
return this;
}
/**
* <p>The metadata of the application in ARMS.</p>
*
* <strong>example:</strong>
* <p>{"appId":"0099b7be-5f5b-4512-a7fc-56049ef1****","licenseKey":"d5cgdt5pu0@7303f55292a****"}</p>
*/
public Builder armsApmInfo(String armsApmInfo) {
this.armsApmInfo = armsApmInfo;
return this;
}
/**
* <p>The time when the application was created.</p>
*
* <strong>example:</strong>
* <p>1563373372746</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The current status of the application. Valid values:</p>
* <ul>
* <li><strong>RUNNING</strong></li>
* <li><strong>STOPPED</strong></li>
* <li><strong>UNKNOWN</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>RUNNING</p>
*/
public Builder currentStatus(String currentStatus) {
this.currentStatus = currentStatus;
return this;
}
/**
* <p>Indicates whether SAE agent is enabled.</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableAgent(Boolean enableAgent) {
this.enableAgent = enableAgent;
return this;
}
/**
* <p>The file size limit. Unit: KB. Valid values: 0 to 10240.</p>
*
* <strong>example:</strong>
* <p>10240</p>
*/
public Builder fileSizeLimit(Long fileSizeLimit) {
this.fileSizeLimit = fileSizeLimit;
return this;
}
/**
* <p>The ID of the latest change order that is executed. If no change orders are executed or if change orders expire, this parameter is left empty.</p>
*
* <strong>example:</strong>
* <p>1ccc2339-fc19-49aa-bda0-1e7b8497****</p>
*/
public Builder lastChangeOrderId(String lastChangeOrderId) {
this.lastChangeOrderId = lastChangeOrderId;
return this;
}
/**
* <p>Indicates whether the latest change order is being executed. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder lastChangeOrderRunning(Boolean lastChangeOrderRunning) {
this.lastChangeOrderRunning = lastChangeOrderRunning;
return this;
}
/**
* <p>The status of the latest change order. Valid values:</p>
* <ul>
* <li><strong>READY</strong>: The change order is ready.</li>
* <li><strong>RUNNING</strong>: The change order is being executed.</li>
* <li><strong>SUCCESS</strong>: The change order was executed.</li>
* <li><strong>FAIL</strong>: The change order failed to be executed.</li>
* <li><strong>ABORT</strong>: The change order is stopped.</li>
* <li><strong>WAIT_BATCH_CONFIRM</strong>: The change order is pending execution. You must manually confirm the release batch.</li>
* <li><strong>AUTO_BATCH_WAIT</strong>: The change order is pending execution. SAE will automatically confirm the release batch.</li>
* <li><strong>SYSTEM_FAIL</strong>: A system exception occurred.</li>
* <li><strong>WAIT_APPROVAL</strong>: The change order is pending approval.</li>
* <li><strong>APPROVED</strong>: The change order is approved and is pending execution.</li>
* </ul>
*
* <strong>example:</strong>
* <p>SUCCESS</p>
*/
public Builder lastChangeOrderStatus(String lastChangeOrderStatus) {
this.lastChangeOrderStatus = lastChangeOrderStatus;
return this;
}
/**
* <p>The number of running instances of the application.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder runningInstances(Integer runningInstances) {
this.runningInstances = runningInstances;
return this;
}
/**
* <p>The substatus of the change order. This parameter indicates whether an exception occurred while the change order was being executed. Valid values:</p>
* <ul>
* <li><strong>NORMAL</strong></li>
* <li><strong>RUNNING_BUT_HAS_ERROR</strong>: For example, if an error occurs during a phased release, you must manually roll back the application. In this case, the change order cannot be completed because the change order is still being executed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>NORMAL</p>
*/
public Builder subStatus(String subStatus) {
this.subStatus = subStatus;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeChangeOrderRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeChangeOrderRequest} extends {@link RequestModel}
*
* <p>DescribeChangeOrderRequest</p>
*/
public class DescribeChangeOrderRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
@com.aliyun.core.annotation.Validation(required = true)
private String changeOrderId;
private DescribeChangeOrderRequest(Builder builder) {
super(builder);
this.changeOrderId = builder.changeOrderId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeChangeOrderRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
public static final class Builder extends Request.Builder<DescribeChangeOrderRequest, Builder> {
private String changeOrderId;
private Builder() {
super();
}
private Builder(DescribeChangeOrderRequest request) {
super(request);
this.changeOrderId = request.changeOrderId;
}
/**
* <p>The ID of the change order. You can call the <a href="https://help.aliyun.com/document_detail/126615.html">ListChangeOrders</a> operation to obtain the ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>76fa5c0-9ebb-4bb4-b383-1f885447****</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.putQueryParameter("ChangeOrderId", changeOrderId);
this.changeOrderId = changeOrderId;
return this;
}
@Override
public DescribeChangeOrderRequest build() {
return new DescribeChangeOrderRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeChangeOrderResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeChangeOrderResponse} extends {@link TeaModel}
*
* <p>DescribeChangeOrderResponse</p>
*/
public class DescribeChangeOrderResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeChangeOrderResponseBody body;
private DescribeChangeOrderResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeChangeOrderResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeChangeOrderResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeChangeOrderResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeChangeOrderResponseBody body);
@Override
DescribeChangeOrderResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeChangeOrderResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeChangeOrderResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeChangeOrderResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeChangeOrderResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeChangeOrderResponse build() {
return new DescribeChangeOrderResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeChangeOrderResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeChangeOrderResponseBody} extends {@link TeaModel}
*
* <p>DescribeChangeOrderResponseBody</p>
*/
public class DescribeChangeOrderResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeChangeOrderResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeChangeOrderResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeChangeOrderResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details of the change order.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information of the change order was queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The information failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeChangeOrderResponseBody build() {
return new DescribeChangeOrderResponseBody(this);
}
}
/**
*
* {@link DescribeChangeOrderResponseBody} extends {@link TeaModel}
*
* <p>DescribeChangeOrderResponseBody</p>
*/
public static class Pipelines extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BatchType")
private Integer batchType;
@com.aliyun.core.annotation.NameInMap("ParallelCount")
private Integer parallelCount;
@com.aliyun.core.annotation.NameInMap("PipelineId")
private String pipelineId;
@com.aliyun.core.annotation.NameInMap("PipelineName")
private String pipelineName;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private Pipelines(Builder builder) {
this.batchType = builder.batchType;
this.parallelCount = builder.parallelCount;
this.pipelineId = builder.pipelineId;
this.pipelineName = builder.pipelineName;
this.startTime = builder.startTime;
this.status = builder.status;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Pipelines create() {
return builder().build();
}
/**
* @return batchType
*/
public Integer getBatchType() {
return this.batchType;
}
/**
* @return parallelCount
*/
public Integer getParallelCount() {
return this.parallelCount;
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
/**
* @return pipelineName
*/
public String getPipelineName() {
return this.pipelineName;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Integer batchType;
private Integer parallelCount;
private String pipelineId;
private String pipelineName;
private Long startTime;
private Integer status;
private Long updateTime;
private Builder() {
}
private Builder(Pipelines model) {
this.batchType = model.batchType;
this.parallelCount = model.parallelCount;
this.pipelineId = model.pipelineId;
this.pipelineName = model.pipelineName;
this.startTime = model.startTime;
this.status = model.status;
this.updateTime = model.updateTime;
}
/**
* <p>The batch type.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder batchType(Integer batchType) {
this.batchType = batchType;
return this;
}
/**
* <p>The number of parallel tasks in a batch.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder parallelCount(Integer parallelCount) {
this.parallelCount = parallelCount;
return this;
}
/**
* <p>The ID of the batch.</p>
*
* <strong>example:</strong>
* <p>0e4acf82-c9b1-4c1e-ac28-55776338****</p>
*/
public Builder pipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
}
/**
* <p>The name of the batch.</p>
*
* <strong>example:</strong>
* <p>Batch 1 Change</p>
*/
public Builder pipelineName(String pipelineName) {
this.pipelineName = pipelineName;
return this;
}
/**
* <p>The time when the batch processing started.</p>
*
* <strong>example:</strong>
* <p>1562831689704</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the batch. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The batch is being prepared.</li>
* <li><strong>1</strong>: The batch is being processed.</li>
* <li><strong>2</strong>: The batch was processed.</li>
* <li><strong>3</strong>: The batch failed to be processed.</li>
* <li><strong>6</strong>: The batch processing was terminated.</li>
* <li><strong>8</strong>: The execution process is pending. You must manually release the batch.</li>
* <li><strong>9</strong>: The execution process is pending. SAE will automatically release the batch.</li>
* <li><strong>10</strong>: The batch failed to be processed due to a system exception.</li>
* <li><strong>11</strong>: The batch is pending approval.</li>
* <li><strong>12</strong>: The batch is approved and is pending execution.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The time when the batch information was last modified.</p>
*
* <strong>example:</strong>
* <p>1562847178007</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Pipelines build() {
return new Pipelines(this);
}
}
}
/**
*
* {@link DescribeChangeOrderResponseBody} extends {@link TeaModel}
*
* <p>DescribeChangeOrderResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("ApplicationEnableGreyTagRoute")
private Boolean applicationEnableGreyTagRoute;
@com.aliyun.core.annotation.NameInMap("ApplicationUpdateStrategy")
private String applicationUpdateStrategy;
@com.aliyun.core.annotation.NameInMap("ApprovalId")
private String approvalId;
@com.aliyun.core.annotation.NameInMap("Auto")
private Boolean auto;
@com.aliyun.core.annotation.NameInMap("BatchCount")
private Integer batchCount;
@com.aliyun.core.annotation.NameInMap("BatchType")
private String batchType;
@com.aliyun.core.annotation.NameInMap("BatchWaitTime")
private Integer batchWaitTime;
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
@com.aliyun.core.annotation.NameInMap("CoType")
private String coType;
@com.aliyun.core.annotation.NameInMap("CoTypeCode")
private String coTypeCode;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CurrentPipelineId")
private String currentPipelineId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("Pipelines")
private java.util.List<Pipelines> pipelines;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("SubStatus")
private Integer subStatus;
@com.aliyun.core.annotation.NameInMap("SupportRollback")
private Boolean supportRollback;
private Data(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.applicationEnableGreyTagRoute = builder.applicationEnableGreyTagRoute;
this.applicationUpdateStrategy = builder.applicationUpdateStrategy;
this.approvalId = builder.approvalId;
this.auto = builder.auto;
this.batchCount = builder.batchCount;
this.batchType = builder.batchType;
this.batchWaitTime = builder.batchWaitTime;
this.changeOrderId = builder.changeOrderId;
this.coType = builder.coType;
this.coTypeCode = builder.coTypeCode;
this.createTime = builder.createTime;
this.currentPipelineId = builder.currentPipelineId;
this.description = builder.description;
this.errorMessage = builder.errorMessage;
this.pipelines = builder.pipelines;
this.status = builder.status;
this.subStatus = builder.subStatus;
this.supportRollback = builder.supportRollback;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return applicationEnableGreyTagRoute
*/
public Boolean getApplicationEnableGreyTagRoute() {
return this.applicationEnableGreyTagRoute;
}
/**
* @return applicationUpdateStrategy
*/
public String getApplicationUpdateStrategy() {
return this.applicationUpdateStrategy;
}
/**
* @return approvalId
*/
public String getApprovalId() {
return this.approvalId;
}
/**
* @return auto
*/
public Boolean getAuto() {
return this.auto;
}
/**
* @return batchCount
*/
public Integer getBatchCount() {
return this.batchCount;
}
/**
* @return batchType
*/
public String getBatchType() {
return this.batchType;
}
/**
* @return batchWaitTime
*/
public Integer getBatchWaitTime() {
return this.batchWaitTime;
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
/**
* @return coType
*/
public String getCoType() {
return this.coType;
}
/**
* @return coTypeCode
*/
public String getCoTypeCode() {
return this.coTypeCode;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return currentPipelineId
*/
public String getCurrentPipelineId() {
return this.currentPipelineId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return pipelines
*/
public java.util.List<Pipelines> getPipelines() {
return this.pipelines;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return subStatus
*/
public Integer getSubStatus() {
return this.subStatus;
}
/**
* @return supportRollback
*/
public Boolean getSupportRollback() {
return this.supportRollback;
}
public static final class Builder {
private String appId;
private String appName;
private Boolean applicationEnableGreyTagRoute;
private String applicationUpdateStrategy;
private String approvalId;
private Boolean auto;
private Integer batchCount;
private String batchType;
private Integer batchWaitTime;
private String changeOrderId;
private String coType;
private String coTypeCode;
private String createTime;
private String currentPipelineId;
private String description;
private String errorMessage;
private java.util.List<Pipelines> pipelines;
private Integer status;
private Integer subStatus;
private Boolean supportRollback;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.appName = model.appName;
this.applicationEnableGreyTagRoute = model.applicationEnableGreyTagRoute;
this.applicationUpdateStrategy = model.applicationUpdateStrategy;
this.approvalId = model.approvalId;
this.auto = model.auto;
this.batchCount = model.batchCount;
this.batchType = model.batchType;
this.batchWaitTime = model.batchWaitTime;
this.changeOrderId = model.changeOrderId;
this.coType = model.coType;
this.coTypeCode = model.coTypeCode;
this.createTime = model.createTime;
this.currentPipelineId = model.currentPipelineId;
this.description = model.description;
this.errorMessage = model.errorMessage;
this.pipelines = model.pipelines;
this.status = model.status;
this.subStatus = model.subStatus;
this.supportRollback = model.supportRollback;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>bbbbb-3fd370b2-3646-4ba6-91f9-9423e19ab0cd-*****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>app-test</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* ApplicationEnableGreyTagRoute.
*/
public Builder applicationEnableGreyTagRoute(Boolean applicationEnableGreyTagRoute) {
this.applicationEnableGreyTagRoute = applicationEnableGreyTagRoute;
return this;
}
/**
* ApplicationUpdateStrategy.
*/
public Builder applicationUpdateStrategy(String applicationUpdateStrategy) {
this.applicationUpdateStrategy = applicationUpdateStrategy;
return this;
}
/**
* <p>The approval ID of the change order.</p>
*
* <strong>example:</strong>
* <p>67de0b39-a9d4-4c09-a170-cf438208****</p>
*/
public Builder approvalId(String approvalId) {
this.approvalId = approvalId;
return this;
}
/**
* <p>Indicates whether SAE automatically releases the batches. Valid values:</p>
* <ul>
* <li><strong>true</strong>: SAE automatically releases the batches.</li>
* <li><strong>false</strong>: SAE does not automatically release the batches.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder auto(Boolean auto) {
this.auto = auto;
return this;
}
/**
* <p>The number of release batches.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder batchCount(Integer batchCount) {
this.batchCount = batchCount;
return this;
}
/**
* <p>The processing method for the batches. Valid values:</p>
* <ul>
* <li><strong>auto</strong>: SAE automatically releases the batches.</li>
* <li><strong>Manual</strong>: You must manually release the batches.</li>
* </ul>
*
* <strong>example:</strong>
* <p>auto</p>
*/
public Builder batchType(String batchType) {
this.batchType = batchType;
return this;
}
/**
* <p>The interval between batches in a phased release. SAE automatically releases batches at the specified interval. Unit: minutes.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder batchWaitTime(Integer batchWaitTime) {
this.batchWaitTime = batchWaitTime;
return this;
}
/**
* <p>The ID of the change order.</p>
*
* <strong>example:</strong>
* <p>765fa5c0-9ebb-4bb4-b383-1f885447**</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
return this;
}
/**
* <p>The change type, which corresponds to the <strong>CoTypeCode</strong> parameter.</p>
*/
public Builder coType(String coType) {
this.coType = coType;
return this;
}
/**
* <p>The code of the change type. Valid values:</p>
* <ul>
* <li><strong>CoBindSlb</strong>: associates a Sever Load Balancer (SLB) instance with the application.</li>
* <li><strong>CoUnbindSlb</strong>: disassociates the SLB instance from the application.</li>
* <li><strong>CoCreateApp</strong>: creates the application.</li>
* <li><strong>CoDeleteApp</strong>: deletes the application.</li>
* <li><strong>CoDeploy</strong>: deploys the application.</li>
* <li><strong>CoRestartApplication</strong>: restarts the application.</li>
* <li><strong>CoRollback</strong>: rolls back the application.</li>
* <li><strong>CoScaleIn</strong>: scales in the application.</li>
* <li><strong>CoScaleOut</strong>: scales out the application.</li>
* <li><strong>CoStart</strong>: starts the application.</li>
* <li><strong>CoStop</strong>: stops the application.</li>
* <li><strong>CoRescaleApplicationVertically</strong>: modifies the instance type.</li>
* <li><strong>CoDeployHistroy</strong>: rolls back the application to a historical version.</li>
* <li><strong>CoBindNas</strong>: associates a NAS file system with the application.</li>
* <li><strong>CoUnbindNas</strong>: disassociates the NAS file system from the application.</li>
* <li><strong>CoBatchStartApplication</strong>: starts multiple applications concurrently.</li>
* <li><strong>CoBatchStopApplication</strong>: stops multiple applications concurrently.</li>
* <li><strong>CoRestartInstances</strong>: restarts the instances.</li>
* <li><strong>CoDeleteInstances</strong>: deletes the instances.</li>
* <li><strong>CoScaleInAppWithInstances</strong>: reduces the specified number of application instances.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CoRestartInstances</p>
*/
public Builder coTypeCode(String coTypeCode) {
this.coTypeCode = coTypeCode;
return this;
}
/**
* <p>The time when the change order was created.</p>
*
* <strong>example:</strong>
* <p>2020-12-17 21:06:45</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the current batch.</p>
*
* <strong>example:</strong>
* <p>0e4acf82-c9b1-4c1e-ac28-55776338****</p>
*/
public Builder currentPipelineId(String currentPipelineId) {
this.currentPipelineId = currentPipelineId;
return this;
}
/**
* <p>The description of the change order.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The batch information.</p>
*/
public Builder pipelines(java.util.List<Pipelines> pipelines) {
this.pipelines = pipelines;
return this;
}
/**
* <p>The status of the change order. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The change order is being prepared.</li>
* <li><strong>1</strong>: The change order is being executed.</li>
* <li><strong>2</strong>: The change order was executed.</li>
* <li><strong>3</strong>: The change order failed to be executed.</li>
* <li><strong>6</strong>: The change order was terminated.</li>
* <li><strong>8</strong>: The execution process is pending. You must manually release the batches.</li>
* <li><strong>9</strong>: The execution process is pending. SAE will automatically release the batches.</li>
* <li><strong>10</strong>: The execution failed due to a system exception.</li>
* <li><strong>11</strong>: The change order is pending approval.</li>
* <li><strong>12</strong>: The change order is approved and is pending execution.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The substatus of the change order. This parameter indicates whether an exception occurred while the change order was being executed. Valid values:</p>
* <ul>
* <li><strong>0</strong>: No exception occurred.</li>
* <li><strong>1</strong>: An exception occurred. For example, if an error occurs during a phased release, you must manually roll back the application. In this case, the change order cannot be completed, so the Status parameter is still displayed as "1", which indicates that the change order is being executed. You can check the value of this parameter to determine whether an exception occurs.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder subStatus(Integer subStatus) {
this.subStatus = subStatus;
return this;
}
/**
* <p>Indicates whether the application can be rolled back. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The application can be rolled back.</li>
* <li><strong>false</strong>: The application cannot be rolled back.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder supportRollback(Boolean supportRollback) {
this.supportRollback = supportRollback;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeComponentsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeComponentsRequest} extends {@link RequestModel}
*
* <p>DescribeComponentsRequest</p>
*/
public class DescribeComponentsRequest 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("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DescribeComponentsRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeComponentsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DescribeComponentsRequest, Builder> {
private String appId;
private String type;
private Builder() {
super();
}
private Builder(DescribeComponentsRequest request) {
super(request);
this.appId = request.appId;
this.type = request.type;
}
/**
* <p>The application ID.</p>
*
* <strong>example:</strong>
* <p>d700e680-aa4d-4ec1-afc2-6566b5ff****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The type of the supported components. Valid values:</p>
* <ul>
* <li><strong>TOMCAT</strong></li>
* <li><strong>JDK</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>TOMCAT</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeComponentsRequest build() {
return new DescribeComponentsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeComponentsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeComponentsResponse} extends {@link TeaModel}
*
* <p>DescribeComponentsResponse</p>
*/
public class DescribeComponentsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeComponentsResponseBody body;
private DescribeComponentsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeComponentsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeComponentsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeComponentsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeComponentsResponseBody body);
@Override
DescribeComponentsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeComponentsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeComponentsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeComponentsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeComponentsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeComponentsResponse build() {
return new DescribeComponentsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeComponentsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeComponentsResponseBody} extends {@link TeaModel}
*
* <p>DescribeComponentsResponseBody</p>
*/
public class DescribeComponentsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeComponentsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeComponentsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private java.util.List<Data> data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeComponentsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The request was successful.</li>
* <li><strong>3xx</strong>: The request was redirected.</li>
* <li><strong>4xx</strong>: The request failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details of the supported components.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The status code. Valid values:</p>
* <ul>
* <li>If the request was successful, <strong>ErrorCode</strong> is not returned.</li>
* <li>If the request failed, <strong>ErrorCode</strong> is returned. For more information, see <strong>Error codes</strong> section of this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the component version was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The applications were obtained.</li>
* <li><strong>false</strong>: The applications failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeComponentsResponseBody build() {
return new DescribeComponentsResponseBody(this);
}
}
/**
*
* {@link DescribeComponentsResponseBody} extends {@link TeaModel}
*
* <p>DescribeComponentsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ComponentDescription")
private String componentDescription;
@com.aliyun.core.annotation.NameInMap("ComponentKey")
private String componentKey;
@com.aliyun.core.annotation.NameInMap("Expired")
private Boolean expired;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private Data(Builder builder) {
this.componentDescription = builder.componentDescription;
this.componentKey = builder.componentKey;
this.expired = builder.expired;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return componentDescription
*/
public String getComponentDescription() {
return this.componentDescription;
}
/**
* @return componentKey
*/
public String getComponentKey() {
return this.componentKey;
}
/**
* @return expired
*/
public Boolean getExpired() {
return this.expired;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String componentDescription;
private String componentKey;
private Boolean expired;
private String type;
private Builder() {
}
private Builder(Data model) {
this.componentDescription = model.componentDescription;
this.componentKey = model.componentKey;
this.expired = model.expired;
this.type = model.type;
}
/**
* <p>The description of the component.</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder componentDescription(String componentDescription) {
this.componentDescription = componentDescription;
return this;
}
/**
* <p>The component ID.</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder componentKey(String componentKey) {
this.componentKey = componentKey;
return this;
}
/**
* <p>Indicates whether the component is expired. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The component is expired.</li>
* <li><strong>false</strong>: The component is not expired.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder expired(Boolean expired) {
this.expired = expired;
return this;
}
/**
* <p>The type of the component.</p>
*
* <strong>example:</strong>
* <p>JDK</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigMapRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigMapRequest} extends {@link RequestModel}
*
* <p>DescribeConfigMapRequest</p>
*/
public class DescribeConfigMapRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
@com.aliyun.core.annotation.Validation(required = true)
private Long configMapId;
private DescribeConfigMapRequest(Builder builder) {
super(builder);
this.configMapId = builder.configMapId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigMapRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
public static final class Builder extends Request.Builder<DescribeConfigMapRequest, Builder> {
private Long configMapId;
private Builder() {
super();
}
private Builder(DescribeConfigMapRequest request) {
super(request);
this.configMapId = request.configMapId;
}
/**
* <p>The ID of the ConfigMap whose details you want to query. You can call the <a href="https://help.aliyun.com/document_detail/176917.html">ListNamespacedConfigMaps</a> operation to obtain the ID of a ConfigMap.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.putQueryParameter("ConfigMapId", configMapId);
this.configMapId = configMapId;
return this;
}
@Override
public DescribeConfigMapRequest build() {
return new DescribeConfigMapRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigMapResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigMapResponse} extends {@link TeaModel}
*
* <p>DescribeConfigMapResponse</p>
*/
public class DescribeConfigMapResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeConfigMapResponseBody body;
private DescribeConfigMapResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeConfigMapResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeConfigMapResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeConfigMapResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeConfigMapResponseBody body);
@Override
DescribeConfigMapResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeConfigMapResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeConfigMapResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeConfigMapResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeConfigMapResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeConfigMapResponse build() {
return new DescribeConfigMapResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigMapResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigMapResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigMapResponseBody</p>
*/
public class DescribeConfigMapResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeConfigMapResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigMapResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeConfigMapResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned result.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the details of the ConfigMap were queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The details were queried.</li>
* <li><strong>false</strong>: The details failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeConfigMapResponseBody build() {
return new DescribeConfigMapResponseBody(this);
}
}
/**
*
* {@link DescribeConfigMapResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigMapResponseBody</p>
*/
public static class RelateApps extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
private RelateApps(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
}
public static Builder builder() {
return new Builder();
}
public static RelateApps create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
public static final class Builder {
private String appId;
private String appName;
private Builder() {
}
private Builder(RelateApps model) {
this.appId = model.appId;
this.appName = model.appName;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>f16b4000-9058-4c22-a49d-49a28f0b****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
public RelateApps build() {
return new RelateApps(this);
}
}
}
/**
*
* {@link DescribeConfigMapResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigMapResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.Map<String, ?> data;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("RelateApps")
private java.util.List<RelateApps> relateApps;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private Data(Builder builder) {
this.configMapId = builder.configMapId;
this.createTime = builder.createTime;
this.data = builder.data;
this.description = builder.description;
this.name = builder.name;
this.namespaceId = builder.namespaceId;
this.relateApps = builder.relateApps;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return data
*/
public java.util.Map<String, ?> getData() {
return this.data;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return relateApps
*/
public java.util.List<RelateApps> getRelateApps() {
return this.relateApps;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Long configMapId;
private Long createTime;
private java.util.Map<String, ?> data;
private String description;
private String name;
private String namespaceId;
private java.util.List<RelateApps> relateApps;
private Long updateTime;
private Builder() {
}
private Builder(Data model) {
this.configMapId = model.configMapId;
this.createTime = model.createTime;
this.data = model.data;
this.description = model.description;
this.name = model.name;
this.namespaceId = model.namespaceId;
this.relateApps = model.relateApps;
this.updateTime = model.updateTime;
}
/**
* <p>The ID of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
return this;
}
/**
* <p>The time when the ConfigMap was created.</p>
*
* <strong>example:</strong>
* <p>1593746835111</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The key-value pairs of the ConfigMap. Format:</p>
* <p>{"k1":"v1", "k2":"v2"}</p>
* <p>k specifies a key and v specifies a value. For more information, see <a href="https://help.aliyun.com/document_detail/171326.html">Manage a Kubernetes ConfigMap</a>.</p>
*
* <strong>example:</strong>
* <p>{"k1":"v1","k2":"v2"}</p>
*/
public Builder data(java.util.Map<String, ?> data) {
this.data = data;
return this;
}
/**
* <p>The description of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>test-desc</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The name of the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>test-configmap</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The application that is associated with the ConfigMap.</p>
*/
public Builder relateApps(java.util.List<RelateApps> relateApps) {
this.relateApps = relateApps;
return this;
}
/**
* <p>The time when the ConfigMap was updated.</p>
*
* <strong>example:</strong>
* <p>1593747274195</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigurationPriceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigurationPriceRequest} extends {@link RequestModel}
*
* <p>DescribeConfigurationPriceRequest</p>
*/
public class DescribeConfigurationPriceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Cpu")
@com.aliyun.core.annotation.Validation(required = true)
private Integer cpu;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Memory")
@com.aliyun.core.annotation.Validation(required = true)
private Integer memory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewSaeVersion")
private String newSaeVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Workload")
private String workload;
private DescribeConfigurationPriceRequest(Builder builder) {
super(builder);
this.cpu = builder.cpu;
this.memory = builder.memory;
this.newSaeVersion = builder.newSaeVersion;
this.resourceType = builder.resourceType;
this.workload = builder.workload;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigurationPriceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return newSaeVersion
*/
public String getNewSaeVersion() {
return this.newSaeVersion;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return workload
*/
public String getWorkload() {
return this.workload;
}
public static final class Builder extends Request.Builder<DescribeConfigurationPriceRequest, Builder> {
private Integer cpu;
private Integer memory;
private String newSaeVersion;
private String resourceType;
private String workload;
private Builder() {
super();
}
private Builder(DescribeConfigurationPriceRequest request) {
super(request);
this.cpu = request.cpu;
this.memory = request.memory;
this.newSaeVersion = request.newSaeVersion;
this.resourceType = request.resourceType;
this.workload = request.workload;
}
/**
* <p>The CPU specifications that are required for each instance. Unit: millicores. This parameter cannot be set to 0. Valid values:</p>
* <ul>
* <li><strong>500</strong></li>
* <li><strong>1000</strong></li>
* <li><strong>2000</strong></li>
* <li><strong>4000</strong></li>
* <li><strong>8000</strong></li>
* <li><strong>12000</strong></li>
* <li><strong>16000</strong></li>
* <li><strong>32000</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2000</p>
*/
public Builder cpu(Integer cpu) {
this.putQueryParameter("Cpu", cpu);
this.cpu = cpu;
return this;
}
/**
* <p>The memory size that is required by each instance. Unit: MB. This parameter cannot be set to 0. The values of this parameter correspond to the values of the Cpu parameter:</p>
* <ul>
* <li>This parameter is set to <strong>1024</strong> if the Cpu parameter is set to 500 or 1000.</li>
* <li>This parameter is set to <strong>2048</strong> if the Cpu parameter is set to 500, 1000, or 2000.</li>
* <li>This parameter is set to <strong>4096</strong> if the Cpu parameter is set to 1000, 2000, or 4000.</li>
* <li>This parameter is set to <strong>8192</strong> if the Cpu parameter is set to 2000, 4000, or 8,000.</li>
* <li>This parameter is set to <strong>12288</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>16384</strong> if the Cpu parameter is set to 4000, 8000, or 16000.</li>
* <li>This parameter is set to <strong>24576</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>32768</strong> if the Cpu parameter is set to 16000.</li>
* <li>This parameter is set to <strong>65536</strong> if the Cpu parameter is set to 8000, 16000, or 32000.</li>
* <li>This parameter is set to <strong>131072</strong> if the Cpu parameter is set to 32000.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>4096</p>
*/
public Builder memory(Integer memory) {
this.putQueryParameter("Memory", memory);
this.memory = memory;
return this;
}
/**
* NewSaeVersion.
*/
public Builder newSaeVersion(String newSaeVersion) {
this.putQueryParameter("NewSaeVersion", newSaeVersion);
this.newSaeVersion = newSaeVersion;
return this;
}
/**
* ResourceType.
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>Scenarios:</p>
* <ul>
* <li>Web</li>
* <li>micro_service</li>
* </ul>
*
* <strong>example:</strong>
* <p>Web</p>
*/
public Builder workload(String workload) {
this.putQueryParameter("Workload", workload);
this.workload = workload;
return this;
}
@Override
public DescribeConfigurationPriceRequest build() {
return new DescribeConfigurationPriceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigurationPriceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigurationPriceResponse} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponse</p>
*/
public class DescribeConfigurationPriceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeConfigurationPriceResponseBody body;
private DescribeConfigurationPriceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeConfigurationPriceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeConfigurationPriceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeConfigurationPriceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeConfigurationPriceResponseBody body);
@Override
DescribeConfigurationPriceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeConfigurationPriceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeConfigurationPriceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeConfigurationPriceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeConfigurationPriceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeConfigurationPriceResponse build() {
return new DescribeConfigurationPriceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeConfigurationPriceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public class DescribeConfigurationPriceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeConfigurationPriceResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeConfigurationPriceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeConfigurationPriceResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The request was successful.</li>
* <li><strong>3xx</strong>: The request was redirected.</li>
* <li><strong>4xx</strong>: The request failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The price.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the request was successful, <strong>ErrorCode</strong> is not returned.</li>
* <li>If the request failed, <strong>ErrorCode</strong> is returned. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned. Valid values:</p>
* <ul>
* <li>If the request was successful, <strong>success</strong> is returned.</li>
* <li>If the request failed, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ADCEC067-86AD-19E2-BD43-E83F3841****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the configuration price was obtained.</p>
* <ul>
* <li><strong>true</strong>: The price was obtained.</li>
* <li><strong>false</strong>: The price failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace.</p>
*
* <strong>example:</strong>
* <p>1a0dcc771722848598056771******</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeConfigurationPriceResponseBody build() {
return new DescribeConfigurationPriceResponseBody(this);
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class BagUsage extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cpu")
private Float cpu;
@com.aliyun.core.annotation.NameInMap("Cu")
private Float cu;
@com.aliyun.core.annotation.NameInMap("Mem")
private Float mem;
private BagUsage(Builder builder) {
this.cpu = builder.cpu;
this.cu = builder.cu;
this.mem = builder.mem;
}
public static Builder builder() {
return new Builder();
}
public static BagUsage create() {
return builder().build();
}
/**
* @return cpu
*/
public Float getCpu() {
return this.cpu;
}
/**
* @return cu
*/
public Float getCu() {
return this.cu;
}
/**
* @return mem
*/
public Float getMem() {
return this.mem;
}
public static final class Builder {
private Float cpu;
private Float cu;
private Float mem;
private Builder() {
}
private Builder(BagUsage model) {
this.cpu = model.cpu;
this.cu = model.cu;
this.mem = model.mem;
}
/**
* <p>The available CPU capacity. Unit: cores *.</p>
*
* <strong>example:</strong>
* <p>497570.450009</p>
*/
public Builder cpu(Float cpu) {
this.cpu = cpu;
return this;
}
/**
* Cu.
*/
public Builder cu(Float cu) {
this.cu = cu;
return this;
}
/**
* <p>The available memory size. Unit: GiB ×.</p>
*
* <strong>example:</strong>
* <p>989802.563546</p>
*/
public Builder mem(Float mem) {
this.mem = mem;
return this;
}
public BagUsage build() {
return new BagUsage(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class Order extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiscountAmount")
private Float discountAmount;
@com.aliyun.core.annotation.NameInMap("OriginalAmount")
private Float originalAmount;
@com.aliyun.core.annotation.NameInMap("RuleIds")
private java.util.List<String> ruleIds;
@com.aliyun.core.annotation.NameInMap("TradeAmount")
private Float tradeAmount;
private Order(Builder builder) {
this.discountAmount = builder.discountAmount;
this.originalAmount = builder.originalAmount;
this.ruleIds = builder.ruleIds;
this.tradeAmount = builder.tradeAmount;
}
public static Builder builder() {
return new Builder();
}
public static Order create() {
return builder().build();
}
/**
* @return discountAmount
*/
public Float getDiscountAmount() {
return this.discountAmount;
}
/**
* @return originalAmount
*/
public Float getOriginalAmount() {
return this.originalAmount;
}
/**
* @return ruleIds
*/
public java.util.List<String> getRuleIds() {
return this.ruleIds;
}
/**
* @return tradeAmount
*/
public Float getTradeAmount() {
return this.tradeAmount;
}
public static final class Builder {
private Float discountAmount;
private Float originalAmount;
private java.util.List<String> ruleIds;
private Float tradeAmount;
private Builder() {
}
private Builder(Order model) {
this.discountAmount = model.discountAmount;
this.originalAmount = model.originalAmount;
this.ruleIds = model.ruleIds;
this.tradeAmount = model.tradeAmount;
}
/**
* <p>The discount amount.</p>
*
* <strong>example:</strong>
* <p>0.0009259</p>
*/
public Builder discountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* <p>The original price.</p>
*
* <strong>example:</strong>
* <p>0.0046296</p>
*/
public Builder originalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
/**
* <p>The ID of the discount rule.</p>
*/
public Builder ruleIds(java.util.List<String> ruleIds) {
this.ruleIds = ruleIds;
return this;
}
/**
* <p>The final price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0037037</p>
*/
public Builder tradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public Order build() {
return new Order(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RuleDescId")
private Float ruleDescId;
private Rules(Builder builder) {
this.name = builder.name;
this.ruleDescId = builder.ruleDescId;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ruleDescId
*/
public Float getRuleDescId() {
return this.ruleDescId;
}
public static final class Builder {
private String name;
private Float ruleDescId;
private Builder() {
}
private Builder(Rules model) {
this.name = model.name;
this.ruleDescId = model.ruleDescId;
}
/**
* <p>The name of discount rule.</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the discount rule.</p>
*
* <strong>example:</strong>
* <p>2000010******</p>
*/
public Builder ruleDescId(Float ruleDescId) {
this.ruleDescId = ruleDescId;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class CpuMemPrice extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Order")
private Order order;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<Rules> rules;
private CpuMemPrice(Builder builder) {
this.order = builder.order;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static CpuMemPrice create() {
return builder().build();
}
/**
* @return order
*/
public Order getOrder() {
return this.order;
}
/**
* @return rules
*/
public java.util.List<Rules> getRules() {
return this.rules;
}
public static final class Builder {
private Order order;
private java.util.List<Rules> rules;
private Builder() {
}
private Builder(CpuMemPrice model) {
this.order = model.order;
this.rules = model.rules;
}
/**
* <p>The information about pricing.</p>
*/
public Builder order(Order order) {
this.order = order;
return this;
}
/**
* <p>The discount rules.</p>
*/
public Builder rules(java.util.List<Rules> rules) {
this.rules = rules;
return this;
}
public CpuMemPrice build() {
return new CpuMemPrice(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class DataOrder extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiscountAmount")
private Float discountAmount;
@com.aliyun.core.annotation.NameInMap("OriginalAmount")
private Float originalAmount;
@com.aliyun.core.annotation.NameInMap("RuleIds")
private java.util.List<String> ruleIds;
@com.aliyun.core.annotation.NameInMap("TradeAmount")
private Float tradeAmount;
private DataOrder(Builder builder) {
this.discountAmount = builder.discountAmount;
this.originalAmount = builder.originalAmount;
this.ruleIds = builder.ruleIds;
this.tradeAmount = builder.tradeAmount;
}
public static Builder builder() {
return new Builder();
}
public static DataOrder create() {
return builder().build();
}
/**
* @return discountAmount
*/
public Float getDiscountAmount() {
return this.discountAmount;
}
/**
* @return originalAmount
*/
public Float getOriginalAmount() {
return this.originalAmount;
}
/**
* @return ruleIds
*/
public java.util.List<String> getRuleIds() {
return this.ruleIds;
}
/**
* @return tradeAmount
*/
public Float getTradeAmount() {
return this.tradeAmount;
}
public static final class Builder {
private Float discountAmount;
private Float originalAmount;
private java.util.List<String> ruleIds;
private Float tradeAmount;
private Builder() {
}
private Builder(DataOrder model) {
this.discountAmount = model.discountAmount;
this.originalAmount = model.originalAmount;
this.ruleIds = model.ruleIds;
this.tradeAmount = model.tradeAmount;
}
/**
* <p>The discount amount.</p>
*
* <strong>example:</strong>
* <p>0.0018518</p>
*/
public Builder discountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* <p>The original price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0092592</p>
*/
public Builder originalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
/**
* <p>The ID of the promotion rule.</p>
*/
public Builder ruleIds(java.util.List<String> ruleIds) {
this.ruleIds = ruleIds;
return this;
}
/**
* <p>The transaction price.</p>
*
* <strong>example:</strong>
* <p>0.0074074</p>
*/
public Builder tradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public DataOrder build() {
return new DataOrder(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class RequestPriceOrder extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiscountAmount")
private Float discountAmount;
@com.aliyun.core.annotation.NameInMap("OriginalAmount")
private Float originalAmount;
@com.aliyun.core.annotation.NameInMap("RuleIds")
private java.util.List<String> ruleIds;
@com.aliyun.core.annotation.NameInMap("TradeAmount")
private Float tradeAmount;
private RequestPriceOrder(Builder builder) {
this.discountAmount = builder.discountAmount;
this.originalAmount = builder.originalAmount;
this.ruleIds = builder.ruleIds;
this.tradeAmount = builder.tradeAmount;
}
public static Builder builder() {
return new Builder();
}
public static RequestPriceOrder create() {
return builder().build();
}
/**
* @return discountAmount
*/
public Float getDiscountAmount() {
return this.discountAmount;
}
/**
* @return originalAmount
*/
public Float getOriginalAmount() {
return this.originalAmount;
}
/**
* @return ruleIds
*/
public java.util.List<String> getRuleIds() {
return this.ruleIds;
}
/**
* @return tradeAmount
*/
public Float getTradeAmount() {
return this.tradeAmount;
}
public static final class Builder {
private Float discountAmount;
private Float originalAmount;
private java.util.List<String> ruleIds;
private Float tradeAmount;
private Builder() {
}
private Builder(RequestPriceOrder model) {
this.discountAmount = model.discountAmount;
this.originalAmount = model.originalAmount;
this.ruleIds = model.ruleIds;
this.tradeAmount = model.tradeAmount;
}
/**
* <p>The discount amount.</p>
*
* <strong>example:</strong>
* <p>0.0009259</p>
*/
public Builder discountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* <p>The original price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0046296</p>
*/
public Builder originalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
/**
* <p>The ID of the discount rule.</p>
*/
public Builder ruleIds(java.util.List<String> ruleIds) {
this.ruleIds = ruleIds;
return this;
}
/**
* <p>The actual price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0037037</p>
*/
public Builder tradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public RequestPriceOrder build() {
return new RequestPriceOrder(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class RequestPriceRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RuleDescId")
private Long ruleDescId;
private RequestPriceRules(Builder builder) {
this.name = builder.name;
this.ruleDescId = builder.ruleDescId;
}
public static Builder builder() {
return new Builder();
}
public static RequestPriceRules create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ruleDescId
*/
public Long getRuleDescId() {
return this.ruleDescId;
}
public static final class Builder {
private String name;
private Long ruleDescId;
private Builder() {
}
private Builder(RequestPriceRules model) {
this.name = model.name;
this.ruleDescId = model.ruleDescId;
}
/**
* <p>The name of the discount rule.</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the discount policy.</p>
*
* <strong>example:</strong>
* <p>2000010******</p>
*/
public Builder ruleDescId(Long ruleDescId) {
this.ruleDescId = ruleDescId;
return this;
}
public RequestPriceRules build() {
return new RequestPriceRules(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class RequestPrice extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Order")
private RequestPriceOrder order;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<RequestPriceRules> rules;
private RequestPrice(Builder builder) {
this.order = builder.order;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static RequestPrice create() {
return builder().build();
}
/**
* @return order
*/
public RequestPriceOrder getOrder() {
return this.order;
}
/**
* @return rules
*/
public java.util.List<RequestPriceRules> getRules() {
return this.rules;
}
public static final class Builder {
private RequestPriceOrder order;
private java.util.List<RequestPriceRules> rules;
private Builder() {
}
private Builder(RequestPrice model) {
this.order = model.order;
this.rules = model.rules;
}
/**
* <p>The information about pricing.</p>
*/
public Builder order(RequestPriceOrder order) {
this.order = order;
return this;
}
/**
* <p>The discount rule.</p>
*/
public Builder rules(java.util.List<RequestPriceRules> rules) {
this.rules = rules;
return this;
}
public RequestPrice build() {
return new RequestPrice(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class DataRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RuleDescId")
private Long ruleDescId;
private DataRules(Builder builder) {
this.name = builder.name;
this.ruleDescId = builder.ruleDescId;
}
public static Builder builder() {
return new Builder();
}
public static DataRules create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ruleDescId
*/
public Long getRuleDescId() {
return this.ruleDescId;
}
public static final class Builder {
private String name;
private Long ruleDescId;
private Builder() {
}
private Builder(DataRules model) {
this.name = model.name;
this.ruleDescId = model.ruleDescId;
}
/**
* <p>The name of the promotion rule.</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the promotion rule.</p>
*
* <strong>example:</strong>
* <p>2000010******</p>
*/
public Builder ruleDescId(Long ruleDescId) {
this.ruleDescId = ruleDescId;
return this;
}
public DataRules build() {
return new DataRules(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class TrafficPriceOrder extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiscountAmount")
private Float discountAmount;
@com.aliyun.core.annotation.NameInMap("OriginalAmount")
private Float originalAmount;
@com.aliyun.core.annotation.NameInMap("RuleIds")
private java.util.List<String> ruleIds;
@com.aliyun.core.annotation.NameInMap("TradeAmount")
private Float tradeAmount;
private TrafficPriceOrder(Builder builder) {
this.discountAmount = builder.discountAmount;
this.originalAmount = builder.originalAmount;
this.ruleIds = builder.ruleIds;
this.tradeAmount = builder.tradeAmount;
}
public static Builder builder() {
return new Builder();
}
public static TrafficPriceOrder create() {
return builder().build();
}
/**
* @return discountAmount
*/
public Float getDiscountAmount() {
return this.discountAmount;
}
/**
* @return originalAmount
*/
public Float getOriginalAmount() {
return this.originalAmount;
}
/**
* @return ruleIds
*/
public java.util.List<String> getRuleIds() {
return this.ruleIds;
}
/**
* @return tradeAmount
*/
public Float getTradeAmount() {
return this.tradeAmount;
}
public static final class Builder {
private Float discountAmount;
private Float originalAmount;
private java.util.List<String> ruleIds;
private Float tradeAmount;
private Builder() {
}
private Builder(TrafficPriceOrder model) {
this.discountAmount = model.discountAmount;
this.originalAmount = model.originalAmount;
this.ruleIds = model.ruleIds;
this.tradeAmount = model.tradeAmount;
}
/**
* <p>The discount amount.</p>
*
* <strong>example:</strong>
* <p>0.0009259</p>
*/
public Builder discountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* <p>The original price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0046296</p>
*/
public Builder originalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
/**
* <p>The ID of the discount rule.</p>
*/
public Builder ruleIds(java.util.List<String> ruleIds) {
this.ruleIds = ruleIds;
return this;
}
/**
* <p>The final price of the order.</p>
*
* <strong>example:</strong>
* <p>0.0037037</p>
*/
public Builder tradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public TrafficPriceOrder build() {
return new TrafficPriceOrder(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class TrafficPriceRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RuleDescId")
private Float ruleDescId;
private TrafficPriceRules(Builder builder) {
this.name = builder.name;
this.ruleDescId = builder.ruleDescId;
}
public static Builder builder() {
return new Builder();
}
public static TrafficPriceRules create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ruleDescId
*/
public Float getRuleDescId() {
return this.ruleDescId;
}
public static final class Builder {
private String name;
private Float ruleDescId;
private Builder() {
}
private Builder(TrafficPriceRules model) {
this.name = model.name;
this.ruleDescId = model.ruleDescId;
}
/**
* <p>The name of the discount rule.</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the discount rule.</p>
*
* <strong>example:</strong>
* <p>2000010******</p>
*/
public Builder ruleDescId(Float ruleDescId) {
this.ruleDescId = ruleDescId;
return this;
}
public TrafficPriceRules build() {
return new TrafficPriceRules(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class TrafficPrice extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Order")
private TrafficPriceOrder order;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<TrafficPriceRules> rules;
private TrafficPrice(Builder builder) {
this.order = builder.order;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static TrafficPrice create() {
return builder().build();
}
/**
* @return order
*/
public TrafficPriceOrder getOrder() {
return this.order;
}
/**
* @return rules
*/
public java.util.List<TrafficPriceRules> getRules() {
return this.rules;
}
public static final class Builder {
private TrafficPriceOrder order;
private java.util.List<TrafficPriceRules> rules;
private Builder() {
}
private Builder(TrafficPrice model) {
this.order = model.order;
this.rules = model.rules;
}
/**
* <p>The information about pricing.</p>
*/
public Builder order(TrafficPriceOrder order) {
this.order = order;
return this;
}
/**
* <p>The discount rule.</p>
*/
public Builder rules(java.util.List<TrafficPriceRules> rules) {
this.rules = rules;
return this;
}
public TrafficPrice build() {
return new TrafficPrice(this);
}
}
}
/**
*
* {@link DescribeConfigurationPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeConfigurationPriceResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BagUsage")
private BagUsage bagUsage;
@com.aliyun.core.annotation.NameInMap("CpuMemPrice")
private CpuMemPrice cpuMemPrice;
@com.aliyun.core.annotation.NameInMap("Order")
private DataOrder order;
@com.aliyun.core.annotation.NameInMap("RequestPrice")
private RequestPrice requestPrice;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<DataRules> rules;
@com.aliyun.core.annotation.NameInMap("TrafficPrice")
private TrafficPrice trafficPrice;
private Data(Builder builder) {
this.bagUsage = builder.bagUsage;
this.cpuMemPrice = builder.cpuMemPrice;
this.order = builder.order;
this.requestPrice = builder.requestPrice;
this.rules = builder.rules;
this.trafficPrice = builder.trafficPrice;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return bagUsage
*/
public BagUsage getBagUsage() {
return this.bagUsage;
}
/**
* @return cpuMemPrice
*/
public CpuMemPrice getCpuMemPrice() {
return this.cpuMemPrice;
}
/**
* @return order
*/
public DataOrder getOrder() {
return this.order;
}
/**
* @return requestPrice
*/
public RequestPrice getRequestPrice() {
return this.requestPrice;
}
/**
* @return rules
*/
public java.util.List<DataRules> getRules() {
return this.rules;
}
/**
* @return trafficPrice
*/
public TrafficPrice getTrafficPrice() {
return this.trafficPrice;
}
public static final class Builder {
private BagUsage bagUsage;
private CpuMemPrice cpuMemPrice;
private DataOrder order;
private RequestPrice requestPrice;
private java.util.List<DataRules> rules;
private TrafficPrice trafficPrice;
private Builder() {
}
private Builder(Data model) {
this.bagUsage = model.bagUsage;
this.cpuMemPrice = model.cpuMemPrice;
this.order = model.order;
this.requestPrice = model.requestPrice;
this.rules = model.rules;
this.trafficPrice = model.trafficPrice;
}
/**
* <p>The remaining capacity of the resource plan.</p>
*/
public Builder bagUsage(BagUsage bagUsage) {
this.bagUsage = bagUsage;
return this;
}
/**
* <p>The price of CPU and memory.</p>
*/
public Builder cpuMemPrice(CpuMemPrice cpuMemPrice) {
this.cpuMemPrice = cpuMemPrice;
return this;
}
/**
* <p>The information about pricing.</p>
*/
public Builder order(DataOrder order) {
this.order = order;
return this;
}
/**
* <p>The price based on the number of requests.</p>
*/
public Builder requestPrice(RequestPrice requestPrice) {
this.requestPrice = requestPrice;
return this;
}
/**
* <p>The promotion rules.</p>
*/
public Builder rules(java.util.List<DataRules> rules) {
this.rules = rules;
return this;
}
/**
* <p>The traffic price.</p>
*/
public Builder trafficPrice(TrafficPrice trafficPrice) {
this.trafficPrice = trafficPrice;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeEdasContainersRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeEdasContainersRequest} extends {@link RequestModel}
*
* <p>DescribeEdasContainersRequest</p>
*/
public class DescribeEdasContainersRequest extends Request {
private DescribeEdasContainersRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeEdasContainersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeEdasContainersRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeEdasContainersRequest request) {
super(request);
}
@Override
public DescribeEdasContainersRequest build() {
return new DescribeEdasContainersRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeEdasContainersResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeEdasContainersResponse} extends {@link TeaModel}
*
* <p>DescribeEdasContainersResponse</p>
*/
public class DescribeEdasContainersResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeEdasContainersResponseBody body;
private DescribeEdasContainersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEdasContainersResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeEdasContainersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEdasContainersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEdasContainersResponseBody body);
@Override
DescribeEdasContainersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEdasContainersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEdasContainersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEdasContainersResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeEdasContainersResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEdasContainersResponse build() {
return new DescribeEdasContainersResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeEdasContainersResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeEdasContainersResponseBody} extends {@link TeaModel}
*
* <p>DescribeEdasContainersResponseBody</p>
*/
public class DescribeEdasContainersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeEdasContainersResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEdasContainersResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private java.util.List<Data> data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeEdasContainersResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The components.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the list of container components of a microservices application was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The list was obtained.</li>
* <li><strong>false</strong>: The list failed to be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeEdasContainersResponseBody build() {
return new DescribeEdasContainersResponseBody(this);
}
}
/**
*
* {@link DescribeEdasContainersResponseBody} extends {@link TeaModel}
*
* <p>DescribeEdasContainersResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Disabled")
private Boolean disabled;
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
private Data(Builder builder) {
this.disabled = builder.disabled;
this.edasContainerVersion = builder.edasContainerVersion;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return disabled
*/
public Boolean getDisabled() {
return this.disabled;
}
/**
* @return edasContainerVersion
*/
public String getEdasContainerVersion() {
return this.edasContainerVersion;
}
public static final class Builder {
private Boolean disabled;
private String edasContainerVersion;
private Builder() {
}
private Builder(Data model) {
this.disabled = model.disabled;
this.edasContainerVersion = model.edasContainerVersion;
}
/**
* <p>Indicates whether the component is disabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The component is disabled.</li>
* <li><strong>false</strong>: The component is not disabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* <p>The version of the container, such as Ali-Tomcat, in which an application that is developed based on High-speed Service Framework (HSF) is deployed.</p>
*
* <strong>example:</strong>
* <p>3.5.3</p>
*/
public Builder edasContainerVersion(String edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeGreyTagRouteRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeGreyTagRouteRequest} extends {@link RequestModel}
*
* <p>DescribeGreyTagRouteRequest</p>
*/
public class DescribeGreyTagRouteRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GreyTagRouteId")
@com.aliyun.core.annotation.Validation(required = true, minimum = 1)
private Long greyTagRouteId;
private DescribeGreyTagRouteRequest(Builder builder) {
super(builder);
this.greyTagRouteId = builder.greyTagRouteId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeGreyTagRouteRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return greyTagRouteId
*/
public Long getGreyTagRouteId() {
return this.greyTagRouteId;
}
public static final class Builder extends Request.Builder<DescribeGreyTagRouteRequest, Builder> {
private Long greyTagRouteId;
private Builder() {
super();
}
private Builder(DescribeGreyTagRouteRequest request) {
super(request);
this.greyTagRouteId = request.greyTagRouteId;
}
/**
* <p>The ID of the canary release rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder greyTagRouteId(Long greyTagRouteId) {
this.putQueryParameter("GreyTagRouteId", greyTagRouteId);
this.greyTagRouteId = greyTagRouteId;
return this;
}
@Override
public DescribeGreyTagRouteRequest build() {
return new DescribeGreyTagRouteRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeGreyTagRouteResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeGreyTagRouteResponse} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponse</p>
*/
public class DescribeGreyTagRouteResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeGreyTagRouteResponseBody body;
private DescribeGreyTagRouteResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeGreyTagRouteResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeGreyTagRouteResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeGreyTagRouteResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeGreyTagRouteResponseBody body);
@Override
DescribeGreyTagRouteResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeGreyTagRouteResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeGreyTagRouteResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeGreyTagRouteResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeGreyTagRouteResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeGreyTagRouteResponse build() {
return new DescribeGreyTagRouteResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeGreyTagRouteResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public class DescribeGreyTagRouteResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeGreyTagRouteResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeGreyTagRouteResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeGreyTagRouteResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the canary release rule.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9D29CBD0-45D3-410B-9826-52F86F90****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information of the change order was queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The information failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeGreyTagRouteResponseBody build() {
return new DescribeGreyTagRouteResponseBody(this);
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("cond")
private String cond;
@com.aliyun.core.annotation.NameInMap("expr")
private String expr;
@com.aliyun.core.annotation.NameInMap("index")
private Integer index;
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("operator")
private String operator;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
@com.aliyun.core.annotation.NameInMap("value")
private String value;
private Items(Builder builder) {
this.cond = builder.cond;
this.expr = builder.expr;
this.index = builder.index;
this.name = builder.name;
this.operator = builder.operator;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return cond
*/
public String getCond() {
return this.cond;
}
/**
* @return expr
*/
public String getExpr() {
return this.expr;
}
/**
* @return index
*/
public Integer getIndex() {
return this.index;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return operator
*/
public String getOperator() {
return this.operator;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String cond;
private String expr;
private Integer index;
private String name;
private String operator;
private String type;
private String value;
private Builder() {
}
private Builder(Items model) {
this.cond = model.cond;
this.expr = model.expr;
this.index = model.index;
this.name = model.name;
this.operator = model.operator;
this.type = model.type;
this.value = model.value;
}
/**
* <p>Valid value: ==.</p>
*
* <strong>example:</strong>
* <p>==</p>
*/
public Builder cond(String cond) {
this.cond = cond;
return this;
}
/**
* <p>This parameter is not returned for applications that are associated with ALB instances.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder expr(String expr) {
this.expr = expr;
return this;
}
/**
* <p>This parameter is not returned for applications that are associated with Application Load Balancer (ALB) instances.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder index(Integer index) {
this.index = index;
return this;
}
/**
* <p>The name of the parameter.</p>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The operator. Valid value: <strong>rawvalue</strong>. This value indicates direct comparison.</p>
*
* <strong>example:</strong>
* <p>rawvalue</p>
*/
public Builder operator(String operator) {
this.operator = operator;
return this;
}
/**
* <p>The type of the comparison. Valid values:</p>
* <ul>
* <li><strong>sourceIp</strong>: SourceIp</li>
* <li><strong>cookie</strong>: cookie</li>
* <li><strong>header</strong>: header</li>
* </ul>
*
* <strong>example:</strong>
* <p>cookie</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The value of the parameter. This value is compared with the value that is obtained based on the type and name parameters.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Items build() {
return new Items(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class AlbRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("ingressId")
private String ingressId;
@com.aliyun.core.annotation.NameInMap("items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("serviceId")
private String serviceId;
private AlbRules(Builder builder) {
this.condition = builder.condition;
this.ingressId = builder.ingressId;
this.items = builder.items;
this.serviceId = builder.serviceId;
}
public static Builder builder() {
return new Builder();
}
public static AlbRules create() {
return builder().build();
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return ingressId
*/
public String getIngressId() {
return this.ingressId;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return serviceId
*/
public String getServiceId() {
return this.serviceId;
}
public static final class Builder {
private String condition;
private String ingressId;
private java.util.List<Items> items;
private String serviceId;
private Builder() {
}
private Builder(AlbRules model) {
this.condition = model.condition;
this.ingressId = model.ingressId;
this.items = model.items;
this.serviceId = model.serviceId;
}
/**
* <p>The condition mode of the canary release rule. Valid value: AND. This value indicates that that all conditions must be met.</p>
*
* <strong>example:</strong>
* <p>AND</p>
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* <p>The ID of the gateway routing rule.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder ingressId(String ingressId) {
this.ingressId = ingressId;
return this;
}
/**
* items.
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The service ID.</p>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder serviceId(String serviceId) {
this.serviceId = serviceId;
return this;
}
public AlbRules build() {
return new AlbRules(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class DubboRulesItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("cond")
private String cond;
@com.aliyun.core.annotation.NameInMap("expr")
private String expr;
@com.aliyun.core.annotation.NameInMap("index")
private Integer index;
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("operator")
private String operator;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
@com.aliyun.core.annotation.NameInMap("value")
private String value;
private DubboRulesItems(Builder builder) {
this.cond = builder.cond;
this.expr = builder.expr;
this.index = builder.index;
this.name = builder.name;
this.operator = builder.operator;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static DubboRulesItems create() {
return builder().build();
}
/**
* @return cond
*/
public String getCond() {
return this.cond;
}
/**
* @return expr
*/
public String getExpr() {
return this.expr;
}
/**
* @return index
*/
public Integer getIndex() {
return this.index;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return operator
*/
public String getOperator() {
return this.operator;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String cond;
private String expr;
private Integer index;
private String name;
private String operator;
private String type;
private String value;
private Builder() {
}
private Builder(DubboRulesItems model) {
this.cond = model.cond;
this.expr = model.expr;
this.index = model.index;
this.name = model.name;
this.operator = model.operator;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The comparison operator. Valid values: <strong>></strong>, <strong><**, **>=</strong>, <strong><=</strong>, <strong>==</strong>, and <strong>! =</strong>.</p>
*
* <strong>example:</strong>
* <p>==</p>
*/
public Builder cond(String cond) {
this.cond = cond;
return this;
}
/**
* <p>The expression that is used to obtain the value of the parameter. Valid values:</p>
* <ul>
* <li><strong>Empty</strong>: obtains the value of the parameter.</li>
* <li><strong>.name</strong>: obtains the name property of the parameter. This expression works the same way as args0.getName().</li>
* <li><strong>.isEnabled()</strong>: obtains the enabled property of the parameter. This expression works the same way as args0.isEnabled().</li>
* <li><strong>[0]</strong>: indicates that the value of the parameter is an array and obtains the first value of the array. This expression works the same way as args0[0]. This expression does not start with a period (.).</li>
* <li><strong>.get(0)</strong>: indicates that the value of the parameter is a list and obtains the first value of the list. This expression works the same way as args0.get(0).</li>
* <li><strong>.get("key")</strong>: indicates that the value of the parameter is a map and obtains the value of the key in the map. This expression works the same way as args0.get("key").</li>
* </ul>
*
* <strong>example:</strong>
* <p>.name</p>
*/
public Builder expr(String expr) {
this.expr = expr;
return this;
}
/**
* <p>The index of the parameter. The value 0 indicates the first parameter.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder index(Integer index) {
this.index = index;
return this;
}
/**
* <p>This parameter is not returned for Dubbo services.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The operator. Valid values:</p>
* <ul>
* <li><strong>rawvalue</strong>: direct comparison.</li>
* <li><strong>list</strong>: whitelist.</li>
* <li><strong>mod</strong>: mods 100.</li>
* <li><strong>deterministic_proportional_steaming_division</strong>: percentage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>rawvalue</p>
*/
public Builder operator(String operator) {
this.operator = operator;
return this;
}
/**
* <p>This parameter is not returned for Dubbo services.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The value of the parameter. This value is compared with the value that is obtained based on the <strong>expr</strong> and <strong>index</strong> parameters.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public DubboRulesItems build() {
return new DubboRulesItems(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class DubboRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("group")
private String group;
@com.aliyun.core.annotation.NameInMap("items")
private java.util.List<DubboRulesItems> items;
@com.aliyun.core.annotation.NameInMap("methodName")
private String methodName;
@com.aliyun.core.annotation.NameInMap("serviceName")
private String serviceName;
@com.aliyun.core.annotation.NameInMap("version")
private String version;
private DubboRules(Builder builder) {
this.condition = builder.condition;
this.group = builder.group;
this.items = builder.items;
this.methodName = builder.methodName;
this.serviceName = builder.serviceName;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static DubboRules create() {
return builder().build();
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return group
*/
public String getGroup() {
return this.group;
}
/**
* @return items
*/
public java.util.List<DubboRulesItems> getItems() {
return this.items;
}
/**
* @return methodName
*/
public String getMethodName() {
return this.methodName;
}
/**
* @return serviceName
*/
public String getServiceName() {
return this.serviceName;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private String condition;
private String group;
private java.util.List<DubboRulesItems> items;
private String methodName;
private String serviceName;
private String version;
private Builder() {
}
private Builder(DubboRules model) {
this.condition = model.condition;
this.group = model.group;
this.items = model.items;
this.methodName = model.methodName;
this.serviceName = model.serviceName;
this.version = model.version;
}
/**
* <p>The relationship between the conditions in the canary release rule. Valid values:</p>
* <ul>
* <li><strong>AND</strong>: The conditions are in the logical AND relation. All conditions must be met at the same time.</li>
* <li><strong>OR</strong>: The conditions are in the logical OR relation. At least one of the conditions must be met.</li>
* </ul>
*
* <strong>example:</strong>
* <p>OR</p>
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* <p>The group of the Dubbo service that corresponds to the canary release rule.</p>
*
* <strong>example:</strong>
* <p>DUBBO</p>
*/
public Builder group(String group) {
this.group = group;
return this;
}
/**
* <p>The conditions.</p>
*/
public Builder items(java.util.List<DubboRulesItems> items) {
this.items = items;
return this;
}
/**
* <p>The method name of the Dubbo service.</p>
*
* <strong>example:</strong>
* <p>echo</p>
*/
public Builder methodName(String methodName) {
this.methodName = methodName;
return this;
}
/**
* <p>The name of the Dubbo service.</p>
*
* <strong>example:</strong>
* <p>com.alibaba.edas.boot.EchoService</p>
*/
public Builder serviceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
/**
* <p>The version of the Dubbo service.</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder version(String version) {
this.version = version;
return this;
}
public DubboRules build() {
return new DubboRules(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class ScRulesItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("cond")
private String cond;
@com.aliyun.core.annotation.NameInMap("expr")
private String expr;
@com.aliyun.core.annotation.NameInMap("index")
private Integer index;
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("operator")
private String operator;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
@com.aliyun.core.annotation.NameInMap("value")
private String value;
private ScRulesItems(Builder builder) {
this.cond = builder.cond;
this.expr = builder.expr;
this.index = builder.index;
this.name = builder.name;
this.operator = builder.operator;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static ScRulesItems create() {
return builder().build();
}
/**
* @return cond
*/
public String getCond() {
return this.cond;
}
/**
* @return expr
*/
public String getExpr() {
return this.expr;
}
/**
* @return index
*/
public Integer getIndex() {
return this.index;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return operator
*/
public String getOperator() {
return this.operator;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String cond;
private String expr;
private Integer index;
private String name;
private String operator;
private String type;
private String value;
private Builder() {
}
private Builder(ScRulesItems model) {
this.cond = model.cond;
this.expr = model.expr;
this.index = model.index;
this.name = model.name;
this.operator = model.operator;
this.type = model.type;
this.value = model.value;
}
/**
* <p>The comparison operator. Valid values: <strong>></strong>, <strong><**, **>=</strong>, <strong><=</strong>, <strong>==</strong>, and <strong>! =</strong>.</p>
*
* <strong>example:</strong>
* <p>==</p>
*/
public Builder cond(String cond) {
this.cond = cond;
return this;
}
/**
* <p>This parameter is not returned for Spring Cloud applications.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder expr(String expr) {
this.expr = expr;
return this;
}
/**
* <p>This parameter is not returned for Spring Cloud applications.</p>
*
* <strong>example:</strong>
* <p>N/A</p>
*/
public Builder index(Integer index) {
this.index = index;
return this;
}
/**
* <p>The name of the parameter.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The operator. Valid values:</p>
* <ul>
* <li><strong>rawvalue</strong>: direct comparison.</li>
* <li><strong>list</strong>: whitelist.</li>
* <li><strong>mod</strong>: mods 100.</li>
* <li><strong>deterministic_proportional_steaming_division</strong>: percentage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>rawvalue</p>
*/
public Builder operator(String operator) {
this.operator = operator;
return this;
}
/**
* <p>The type of the comparison. Valid values:</p>
* <ul>
* <li><strong>param</strong>: parameter</li>
* <li><strong>cookie</strong>: cookie</li>
* <li><strong>header</strong>: header</li>
* </ul>
*
* <strong>example:</strong>
* <p>cookie</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* <p>The value of the parameter. This value is compared with the value that is obtained based on the <strong>type</strong> and <strong>name</strong> parameters.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public ScRulesItems build() {
return new ScRulesItems(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class ScRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("items")
private java.util.List<ScRulesItems> items;
@com.aliyun.core.annotation.NameInMap("path")
private String path;
private ScRules(Builder builder) {
this.condition = builder.condition;
this.items = builder.items;
this.path = builder.path;
}
public static Builder builder() {
return new Builder();
}
public static ScRules create() {
return builder().build();
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return items
*/
public java.util.List<ScRulesItems> getItems() {
return this.items;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
public static final class Builder {
private String condition;
private java.util.List<ScRulesItems> items;
private String path;
private Builder() {
}
private Builder(ScRules model) {
this.condition = model.condition;
this.items = model.items;
this.path = model.path;
}
/**
* <p>The relationship between the conditions in the canary release rule. Valid values:</p>
* <ul>
* <li><strong>AND</strong>: The conditions are in the logical AND relation. All conditions must be met at the same time.</li>
* <li><strong>OR</strong>: The conditions are in the logical OR relation. At least one of the conditions must be met.</li>
* </ul>
*
* <strong>example:</strong>
* <p>OR</p>
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* <p>The conditions.</p>
*/
public Builder items(java.util.List<ScRulesItems> items) {
this.items = items;
return this;
}
/**
* <p>The path of the canary release rule of the Spring Cloud application.</p>
*
* <strong>example:</strong>
* <p>/path</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
public ScRules build() {
return new ScRules(this);
}
}
}
/**
*
* {@link DescribeGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DescribeGreyTagRouteResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AlbRules")
private java.util.List<AlbRules> albRules;
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DubboRules")
private java.util.List<DubboRules> dubboRules;
@com.aliyun.core.annotation.NameInMap("GreyTagRouteId")
private Long greyTagRouteId;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ScRules")
private java.util.List<ScRules> scRules;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private Data(Builder builder) {
this.albRules = builder.albRules;
this.appId = builder.appId;
this.createTime = builder.createTime;
this.description = builder.description;
this.dubboRules = builder.dubboRules;
this.greyTagRouteId = builder.greyTagRouteId;
this.name = builder.name;
this.scRules = builder.scRules;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return albRules
*/
public java.util.List<AlbRules> getAlbRules() {
return this.albRules;
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dubboRules
*/
public java.util.List<DubboRules> getDubboRules() {
return this.dubboRules;
}
/**
* @return greyTagRouteId
*/
public Long getGreyTagRouteId() {
return this.greyTagRouteId;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return scRules
*/
public java.util.List<ScRules> getScRules() {
return this.scRules;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private java.util.List<AlbRules> albRules;
private String appId;
private Long createTime;
private String description;
private java.util.List<DubboRules> dubboRules;
private Long greyTagRouteId;
private String name;
private java.util.List<ScRules> scRules;
private Long updateTime;
private Builder() {
}
private Builder(Data model) {
this.albRules = model.albRules;
this.appId = model.appId;
this.createTime = model.createTime;
this.description = model.description;
this.dubboRules = model.dubboRules;
this.greyTagRouteId = model.greyTagRouteId;
this.name = model.name;
this.scRules = model.scRules;
this.updateTime = model.updateTime;
}
/**
* AlbRules.
*/
public Builder albRules(java.util.List<AlbRules> albRules) {
this.albRules = albRules;
return this;
}
/**
* <p>The ID of the application.</p>
*
* <strong>example:</strong>
* <p>3faaf993-7aed-4bcd-b189-625e6a5a****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The timestamp when the canary release rule was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1619007592013</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The description of the canary release rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The canary release rule of the Dubbo service.</p>
*/
public Builder dubboRules(java.util.List<DubboRules> dubboRules) {
this.dubboRules = dubboRules;
return this;
}
/**
* <p>The ID of the canary release rule. The ID is globally unique.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder greyTagRouteId(Long greyTagRouteId) {
this.greyTagRouteId = greyTagRouteId;
return this;
}
/**
* <p>The name of the canary release rule.</p>
*
* <strong>example:</strong>
* <p>rule-name</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The canary release rule of the Spring Cloud application.</p>
*/
public Builder scRules(java.util.List<ScRules> scRules) {
this.scRules = scRules;
return this;
}
/**
* <p>The timestamp when the canary release rule was updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1609434061000</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeIngressRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeIngressRequest} extends {@link RequestModel}
*
* <p>DescribeIngressRequest</p>
*/
public class DescribeIngressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IngressId")
@com.aliyun.core.annotation.Validation(required = true)
private Long ingressId;
private DescribeIngressRequest(Builder builder) {
super(builder);
this.ingressId = builder.ingressId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIngressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ingressId
*/
public Long getIngressId() {
return this.ingressId;
}
public static final class Builder extends Request.Builder<DescribeIngressRequest, Builder> {
private Long ingressId;
private Builder() {
super();
}
private Builder(DescribeIngressRequest request) {
super(request);
this.ingressId = request.ingressId;
}
/**
* <p>The ID of the routing rule to be queried.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>87</p>
*/
public Builder ingressId(Long ingressId) {
this.putQueryParameter("IngressId", ingressId);
this.ingressId = ingressId;
return this;
}
@Override
public DescribeIngressRequest build() {
return new DescribeIngressRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeIngressResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeIngressResponse} extends {@link TeaModel}
*
* <p>DescribeIngressResponse</p>
*/
public class DescribeIngressResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeIngressResponseBody body;
private DescribeIngressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeIngressResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeIngressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeIngressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeIngressResponseBody body);
@Override
DescribeIngressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeIngressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeIngressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeIngressResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeIngressResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeIngressResponse build() {
return new DescribeIngressResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeIngressResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public class DescribeIngressResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeIngressResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeIngressResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeIngressResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The request was successful.</li>
* <li><strong>3xx</strong>: The request was redirected.</li>
* <li><strong>4xx</strong>: The request failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The result returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error codes. Valid values:</p>
* <ul>
* <li><strong>ErrorCode</strong> is not returned if a request is successful.</li>
* <li><strong>ErrorCode</strong> is returned if a request failed. For more information, see <strong>Error code</strong> section of this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned. Valid values:</p>
* <ul>
* <li><strong>success</strong> is returned when a request is successful.</li>
* <li>An error code is returned when the request failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of a request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the configurations of Ingresses were queried successfully. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The information failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of a trace. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a981dd515966966104121683d****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeIngressResponseBody build() {
return new DescribeIngressResponseBody(this);
}
}
/**
*
* {@link DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public static class CorsConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllowCredentials")
private String allowCredentials;
@com.aliyun.core.annotation.NameInMap("AllowHeaders")
private String allowHeaders;
@com.aliyun.core.annotation.NameInMap("AllowMethods")
private String allowMethods;
@com.aliyun.core.annotation.NameInMap("AllowOrigin")
private String allowOrigin;
@com.aliyun.core.annotation.NameInMap("Enable")
private String enable;
@com.aliyun.core.annotation.NameInMap("ExposeHeaders")
private String exposeHeaders;
@com.aliyun.core.annotation.NameInMap("MaxAge")
private String maxAge;
private CorsConfig(Builder builder) {
this.allowCredentials = builder.allowCredentials;
this.allowHeaders = builder.allowHeaders;
this.allowMethods = builder.allowMethods;
this.allowOrigin = builder.allowOrigin;
this.enable = builder.enable;
this.exposeHeaders = builder.exposeHeaders;
this.maxAge = builder.maxAge;
}
public static Builder builder() {
return new Builder();
}
public static CorsConfig create() {
return builder().build();
}
/**
* @return allowCredentials
*/
public String getAllowCredentials() {
return this.allowCredentials;
}
/**
* @return allowHeaders
*/
public String getAllowHeaders() {
return this.allowHeaders;
}
/**
* @return allowMethods
*/
public String getAllowMethods() {
return this.allowMethods;
}
/**
* @return allowOrigin
*/
public String getAllowOrigin() {
return this.allowOrigin;
}
/**
* @return enable
*/
public String getEnable() {
return this.enable;
}
/**
* @return exposeHeaders
*/
public String getExposeHeaders() {
return this.exposeHeaders;
}
/**
* @return maxAge
*/
public String getMaxAge() {
return this.maxAge;
}
public static final class Builder {
private String allowCredentials;
private String allowHeaders;
private String allowMethods;
private String allowOrigin;
private String enable;
private String exposeHeaders;
private String maxAge;
private Builder() {
}
private Builder(CorsConfig model) {
this.allowCredentials = model.allowCredentials;
this.allowHeaders = model.allowHeaders;
this.allowMethods = model.allowMethods;
this.allowOrigin = model.allowOrigin;
this.enable = model.enable;
this.exposeHeaders = model.exposeHeaders;
this.maxAge = model.maxAge;
}
/**
* AllowCredentials.
*/
public Builder allowCredentials(String allowCredentials) {
this.allowCredentials = allowCredentials;
return this;
}
/**
* AllowHeaders.
*/
public Builder allowHeaders(String allowHeaders) {
this.allowHeaders = allowHeaders;
return this;
}
/**
* AllowMethods.
*/
public Builder allowMethods(String allowMethods) {
this.allowMethods = allowMethods;
return this;
}
/**
* AllowOrigin.
*/
public Builder allowOrigin(String allowOrigin) {
this.allowOrigin = allowOrigin;
return this;
}
/**
* Enable.
*/
public Builder enable(String enable) {
this.enable = enable;
return this;
}
/**
* ExposeHeaders.
*/
public Builder exposeHeaders(String exposeHeaders) {
this.exposeHeaders = exposeHeaders;
return this;
}
/**
* MaxAge.
*/
public Builder maxAge(String maxAge) {
this.maxAge = maxAge;
return this;
}
public CorsConfig build() {
return new CorsConfig(this);
}
}
}
/**
*
* {@link DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public static class DefaultRule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("BackendProtocol")
private String backendProtocol;
@com.aliyun.core.annotation.NameInMap("ContainerPort")
private Integer containerPort;
private DefaultRule(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.backendProtocol = builder.backendProtocol;
this.containerPort = builder.containerPort;
}
public static Builder builder() {
return new Builder();
}
public static DefaultRule create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return backendProtocol
*/
public String getBackendProtocol() {
return this.backendProtocol;
}
/**
* @return containerPort
*/
public Integer getContainerPort() {
return this.containerPort;
}
public static final class Builder {
private String appId;
private String appName;
private String backendProtocol;
private Integer containerPort;
private Builder() {
}
private Builder(DefaultRule model) {
this.appId = model.appId;
this.appName = model.appName;
this.backendProtocol = model.backendProtocol;
this.containerPort = model.containerPort;
}
/**
* <p>The ID of the application that is specified in the default rule.</p>
*
* <strong>example:</strong>
* <p>395b60e4-0550-458d-9c54-a265d036****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application that is specified in the default rule.</p>
*
* <strong>example:</strong>
* <p>app1</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The backend protocol. Valid values:</p>
* <ul>
* <li><strong>http</strong>: HTTP is suitable for applications that need to identify the transmitted data.</li>
* <li><strong>https</strong>: HTTP is suitable for applications that require encrypted data transmission.</li>
* <li><strong>grpc</strong>: GRPC is suitable for load balancing scenarios in which you want to deploy services in multi-language frameworks, such as the .NET framework.</li>
* </ul>
* <p>This parameter is returned only if the<strong>LoadBalanceType</strong> parameter is set to <strong>ALB</strong> and the <strong>ListenerProtocol</strong> parameter <strong>is set to HTTPS</strong>.</p>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder backendProtocol(String backendProtocol) {
this.backendProtocol = backendProtocol;
return this;
}
/**
* <p>The container port of the application that is specified in the default rule.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder containerPort(Integer containerPort) {
this.containerPort = containerPort;
return this;
}
public DefaultRule build() {
return new DefaultRule(this);
}
}
}
/**
*
* {@link DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public static class RuleActions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActionConfig")
private String actionConfig;
@com.aliyun.core.annotation.NameInMap("ActionType")
private String actionType;
private RuleActions(Builder builder) {
this.actionConfig = builder.actionConfig;
this.actionType = builder.actionType;
}
public static Builder builder() {
return new Builder();
}
public static RuleActions create() {
return builder().build();
}
/**
* @return actionConfig
*/
public String getActionConfig() {
return this.actionConfig;
}
/**
* @return actionType
*/
public String getActionType() {
return this.actionType;
}
public static final class Builder {
private String actionConfig;
private String actionType;
private Builder() {
}
private Builder(RuleActions model) {
this.actionConfig = model.actionConfig;
this.actionType = model.actionType;
}
/**
* ActionConfig.
*/
public Builder actionConfig(String actionConfig) {
this.actionConfig = actionConfig;
return this;
}
/**
* ActionType.
*/
public Builder actionType(String actionType) {
this.actionType = actionType;
return this;
}
public RuleActions build() {
return new RuleActions(this);
}
}
}
/**
*
* {@link DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("BackendProtocol")
private String backendProtocol;
@com.aliyun.core.annotation.NameInMap("ContainerPort")
private Integer containerPort;
@com.aliyun.core.annotation.NameInMap("Domain")
private String domain;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("RewritePath")
private String rewritePath;
@com.aliyun.core.annotation.NameInMap("RuleActions")
private java.util.List<RuleActions> ruleActions;
private Rules(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.backendProtocol = builder.backendProtocol;
this.containerPort = builder.containerPort;
this.domain = builder.domain;
this.path = builder.path;
this.rewritePath = builder.rewritePath;
this.ruleActions = builder.ruleActions;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return backendProtocol
*/
public String getBackendProtocol() {
return this.backendProtocol;
}
/**
* @return containerPort
*/
public Integer getContainerPort() {
return this.containerPort;
}
/**
* @return domain
*/
public String getDomain() {
return this.domain;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return rewritePath
*/
public String getRewritePath() {
return this.rewritePath;
}
/**
* @return ruleActions
*/
public java.util.List<RuleActions> getRuleActions() {
return this.ruleActions;
}
public static final class Builder {
private String appId;
private String appName;
private String backendProtocol;
private Integer containerPort;
private String domain;
private String path;
private String rewritePath;
private java.util.List<RuleActions> ruleActions;
private Builder() {
}
private Builder(Rules model) {
this.appId = model.appId;
this.appName = model.appName;
this.backendProtocol = model.backendProtocol;
this.containerPort = model.containerPort;
this.domain = model.domain;
this.path = model.path;
this.rewritePath = model.rewritePath;
this.ruleActions = model.ruleActions;
}
/**
* <p>The ID of the application specified in the forwarding rule.</p>
*
* <strong>example:</strong>
* <p>395b60e4-0550-458d-9c54-a265d036****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application specified in the forwarding rules.</p>
*
* <strong>example:</strong>
* <p>app1</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The backend protocol. Valid values:</p>
* <ul>
* <li><strong>http</strong>: HTTP is suitable for applications that need to identify the transmitted data.</li>
* <li><strong>https</strong>: HTTPS is suitable for applications that require encrypted data transmission.</li>
* <li><strong>grpc</strong>: GRPC is suitable for load balancing scenarios in which you want to deploy services in multi-language frameworks, such as the .NET framework.</li>
* </ul>
* <p>This parameter is returned only if the <strong>LoadBalanceType</strong> parameter is set to <strong>ALB</strong> and the <strong>ListenerProtocol</strong> parameter is set to <strong>HTTPS</strong>.</p>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder backendProtocol(String backendProtocol) {
this.backendProtocol = backendProtocol;
return this;
}
/**
* <p>Tthe container port of the application specified in the forwarding rules.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder containerPort(Integer containerPort) {
this.containerPort = containerPort;
return this;
}
/**
* <p>The domain name of the application specified in the forwarding rules.</p>
*
* <strong>example:</strong>
* <p>edas.site</p>
*/
public Builder domain(String domain) {
this.domain = domain;
return this;
}
/**
* <p>The path of a URL.</p>
*
* <strong>example:</strong>
* <p>/path1</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The path that is used to rewrite the original path.</p>
*
* <strong>example:</strong>
* <p>/${1}</p>
*/
public Builder rewritePath(String rewritePath) {
this.rewritePath = rewritePath;
return this;
}
/**
* RuleActions.
*/
public Builder ruleActions(java.util.List<RuleActions> ruleActions) {
this.ruleActions = ruleActions;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeIngressResponseBody} extends {@link TeaModel}
*
* <p>DescribeIngressResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CertId")
private String certId;
@com.aliyun.core.annotation.NameInMap("CertIds")
private String certIds;
@com.aliyun.core.annotation.NameInMap("CorsConfig")
private CorsConfig corsConfig;
@com.aliyun.core.annotation.NameInMap("CreatedBySae")
private Boolean createdBySae;
@com.aliyun.core.annotation.NameInMap("DefaultRule")
private DefaultRule defaultRule;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EnableXForwardedFor")
private Boolean enableXForwardedFor;
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForClientSrcPort")
private Boolean enableXForwardedForClientSrcPort;
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForProto")
private Boolean enableXForwardedForProto;
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForSlbId")
private Boolean enableXForwardedForSlbId;
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForSlbPort")
private Boolean enableXForwardedForSlbPort;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.NameInMap("ListenerPort")
private Integer listenerPort;
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.NameInMap("LoadBalanceType")
private String loadBalanceType;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<Rules> rules;
@com.aliyun.core.annotation.NameInMap("SecurityPolicyId")
private String securityPolicyId;
@com.aliyun.core.annotation.NameInMap("SlbId")
private String slbId;
@com.aliyun.core.annotation.NameInMap("SlbType")
private String slbType;
private Data(Builder builder) {
this.certId = builder.certId;
this.certIds = builder.certIds;
this.corsConfig = builder.corsConfig;
this.createdBySae = builder.createdBySae;
this.defaultRule = builder.defaultRule;
this.description = builder.description;
this.enableXForwardedFor = builder.enableXForwardedFor;
this.enableXForwardedForClientSrcPort = builder.enableXForwardedForClientSrcPort;
this.enableXForwardedForProto = builder.enableXForwardedForProto;
this.enableXForwardedForSlbId = builder.enableXForwardedForSlbId;
this.enableXForwardedForSlbPort = builder.enableXForwardedForSlbPort;
this.id = builder.id;
this.idleTimeout = builder.idleTimeout;
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalanceType = builder.loadBalanceType;
this.name = builder.name;
this.namespaceId = builder.namespaceId;
this.requestTimeout = builder.requestTimeout;
this.rules = builder.rules;
this.securityPolicyId = builder.securityPolicyId;
this.slbId = builder.slbId;
this.slbType = builder.slbType;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return certId
*/
public String getCertId() {
return this.certId;
}
/**
* @return certIds
*/
public String getCertIds() {
return this.certIds;
}
/**
* @return corsConfig
*/
public CorsConfig getCorsConfig() {
return this.corsConfig;
}
/**
* @return createdBySae
*/
public Boolean getCreatedBySae() {
return this.createdBySae;
}
/**
* @return defaultRule
*/
public DefaultRule getDefaultRule() {
return this.defaultRule;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return enableXForwardedFor
*/
public Boolean getEnableXForwardedFor() {
return this.enableXForwardedFor;
}
/**
* @return enableXForwardedForClientSrcPort
*/
public Boolean getEnableXForwardedForClientSrcPort() {
return this.enableXForwardedForClientSrcPort;
}
/**
* @return enableXForwardedForProto
*/
public Boolean getEnableXForwardedForProto() {
return this.enableXForwardedForProto;
}
/**
* @return enableXForwardedForSlbId
*/
public Boolean getEnableXForwardedForSlbId() {
return this.enableXForwardedForSlbId;
}
/**
* @return enableXForwardedForSlbPort
*/
public Boolean getEnableXForwardedForSlbPort() {
return this.enableXForwardedForSlbPort;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return idleTimeout
*/
public Integer getIdleTimeout() {
return this.idleTimeout;
}
/**
* @return listenerPort
*/
public Integer getListenerPort() {
return this.listenerPort;
}
/**
* @return listenerProtocol
*/
public String getListenerProtocol() {
return this.listenerProtocol;
}
/**
* @return loadBalanceType
*/
public String getLoadBalanceType() {
return this.loadBalanceType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return rules
*/
public java.util.List<Rules> getRules() {
return this.rules;
}
/**
* @return securityPolicyId
*/
public String getSecurityPolicyId() {
return this.securityPolicyId;
}
/**
* @return slbId
*/
public String getSlbId() {
return this.slbId;
}
/**
* @return slbType
*/
public String getSlbType() {
return this.slbType;
}
public static final class Builder {
private String certId;
private String certIds;
private CorsConfig corsConfig;
private Boolean createdBySae;
private DefaultRule defaultRule;
private String description;
private Boolean enableXForwardedFor;
private Boolean enableXForwardedForClientSrcPort;
private Boolean enableXForwardedForProto;
private Boolean enableXForwardedForSlbId;
private Boolean enableXForwardedForSlbPort;
private Long id;
private Integer idleTimeout;
private Integer listenerPort;
private String listenerProtocol;
private String loadBalanceType;
private String name;
private String namespaceId;
private Integer requestTimeout;
private java.util.List<Rules> rules;
private String securityPolicyId;
private String slbId;
private String slbType;
private Builder() {
}
private Builder(Data model) {
this.certId = model.certId;
this.certIds = model.certIds;
this.corsConfig = model.corsConfig;
this.createdBySae = model.createdBySae;
this.defaultRule = model.defaultRule;
this.description = model.description;
this.enableXForwardedFor = model.enableXForwardedFor;
this.enableXForwardedForClientSrcPort = model.enableXForwardedForClientSrcPort;
this.enableXForwardedForProto = model.enableXForwardedForProto;
this.enableXForwardedForSlbId = model.enableXForwardedForSlbId;
this.enableXForwardedForSlbPort = model.enableXForwardedForSlbPort;
this.id = model.id;
this.idleTimeout = model.idleTimeout;
this.listenerPort = model.listenerPort;
this.listenerProtocol = model.listenerProtocol;
this.loadBalanceType = model.loadBalanceType;
this.name = model.name;
this.namespaceId = model.namespaceId;
this.requestTimeout = model.requestTimeout;
this.rules = model.rules;
this.securityPolicyId = model.securityPolicyId;
this.slbId = model.slbId;
this.slbType = model.slbType;
}
/**
* <p>The ID of the certificate that is associated with a Classic Load Balancer (<strong>CLB</strong>) instance.</p>
*
* <strong>example:</strong>
* <p>13623****809_16cad216b32_845_-419427029</p>
*/
public Builder certId(String certId) {
this.certId = certId;
return this;
}
/**
* <p>The ID of the certificate that is associated with an Application Load Balancer <strong>ALB</strong> instance.</p>
*
* <strong>example:</strong>
* <p>87<em><strong>35-cn-hangzhou,812</strong></em>3-cn-hangzhou</p>
*/
public Builder certIds(String certIds) {
this.certIds = certIds;
return this;
}
/**
* CorsConfig.
*/
public Builder corsConfig(CorsConfig corsConfig) {
this.corsConfig = corsConfig;
return this;
}
/**
* CreatedBySae.
*/
public Builder createdBySae(Boolean createdBySae) {
this.createdBySae = createdBySae;
return this;
}
/**
* <p>The default rule.</p>
*/
public Builder defaultRule(DefaultRule defaultRule) {
this.defaultRule = defaultRule;
return this;
}
/**
* <p>The name of a routing rule.</p>
*
* <strong>example:</strong>
* <p>ingress-sae-test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* EnableXForwardedFor.
*/
public Builder enableXForwardedFor(Boolean enableXForwardedFor) {
this.enableXForwardedFor = enableXForwardedFor;
return this;
}
/**
* EnableXForwardedForClientSrcPort.
*/
public Builder enableXForwardedForClientSrcPort(Boolean enableXForwardedForClientSrcPort) {
this.enableXForwardedForClientSrcPort = enableXForwardedForClientSrcPort;
return this;
}
/**
* EnableXForwardedForProto.
*/
public Builder enableXForwardedForProto(Boolean enableXForwardedForProto) {
this.enableXForwardedForProto = enableXForwardedForProto;
return this;
}
/**
* EnableXForwardedForSlbId.
*/
public Builder enableXForwardedForSlbId(Boolean enableXForwardedForSlbId) {
this.enableXForwardedForSlbId = enableXForwardedForSlbId;
return this;
}
/**
* EnableXForwardedForSlbPort.
*/
public Builder enableXForwardedForSlbPort(Boolean enableXForwardedForSlbPort) {
this.enableXForwardedForSlbPort = enableXForwardedForSlbPort;
return this;
}
/**
* <p>The ID of a routing rule.</p>
*
* <strong>example:</strong>
* <p>87</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* IdleTimeout.
*/
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>The listener ports for an SLB instance.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
/**
* <p>The protocol used to forward requests. Valid values:</p>
* <ul>
* <li><strong>HTTP</strong>: HTTP is suitable for applications that need to identify the transmitted data.</li>
* <li><strong>HTTPS</strong>: HTTPS is suitable for applications that require encrypted data transmission.</li>
* </ul>
* <p>This parameter is optional in the <strong>CreateIngress</strong> and <strong>UpadateIngress</strong> operations. If you do not configure this parameter when you call the CreateIngress or UpdateIngress operation to create or update a gateway routing rule, this parameter is not returned for the corresponding response.</p>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The type of SLB instances. Valid values:</p>
* <ul>
* <li><strong>clb</strong>: Classic Load Balancer (formerly known as SLB).</li>
* <li><strong>alb</strong>: Application Load Balancer.</li>
* </ul>
*
* <strong>example:</strong>
* <p>clb</p>
*/
public Builder loadBalanceType(String loadBalanceType) {
this.loadBalanceType = loadBalanceType;
return this;
}
/**
* <p>The name of a routing rule.</p>
*
* <strong>example:</strong>
* <p>lb-uf6jt0nu4z6ior943****-80-f5****</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of a namespace.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:sae-test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* RequestTimeout.
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>The forwarding rules.</p>
*/
public Builder rules(java.util.List<Rules> rules) {
this.rules = rules;
return this;
}
/**
* SecurityPolicyId.
*/
public Builder securityPolicyId(String securityPolicyId) {
this.securityPolicyId = securityPolicyId;
return this;
}
/**
* <p>The ID of a Server Load Balancer (SLB) instance.</p>
*
* <strong>example:</strong>
* <p>lb-uf62****6d13tq2u5</p>
*/
public Builder slbId(String slbId) {
this.slbId = slbId;
return this;
}
/**
* <p>The type of an SLB instance. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: an Internet-facing SLB instance</li>
* <li><strong>intranet</strong>: an Intranet-facing SLB instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder slbType(String slbType) {
this.slbType = slbType;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceLogRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceLogRequest} extends {@link RequestModel}
*
* <p>DescribeInstanceLogRequest</p>
*/
public class DescribeInstanceLogRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainerId")
private String containerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
private DescribeInstanceLogRequest(Builder builder) {
super(builder);
this.containerId = builder.containerId;
this.instanceId = builder.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceLogRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return containerId
*/
public String getContainerId() {
return this.containerId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
public static final class Builder extends Request.Builder<DescribeInstanceLogRequest, Builder> {
private String containerId;
private String instanceId;
private Builder() {
super();
}
private Builder(DescribeInstanceLogRequest request) {
super(request);
this.containerId = request.containerId;
this.instanceId = request.instanceId;
}
/**
* <p>The ID of the sidecar container. You can call the <a href="https://help.aliyun.com/document_detail/2834847.html">DescribeApplicationInstances</a> to obtain the ID.</p>
*
* <strong>example:</strong>
* <p>sidecar-test-01</p>
*/
public Builder containerId(String containerId) {
this.putQueryParameter("ContainerId", containerId);
this.containerId = containerId;
return this;
}
/**
* <p>The ID of the request.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>******-d700e680-aa4d-4ec1-afc2-6566b5ff4d7a-85d44d4bfc-*****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
@Override
public DescribeInstanceLogRequest build() {
return new DescribeInstanceLogRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceLogResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceLogResponse} extends {@link TeaModel}
*
* <p>DescribeInstanceLogResponse</p>
*/
public class DescribeInstanceLogResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeInstanceLogResponseBody body;
private DescribeInstanceLogResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeInstanceLogResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeInstanceLogResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeInstanceLogResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeInstanceLogResponseBody body);
@Override
DescribeInstanceLogResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeInstanceLogResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeInstanceLogResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeInstanceLogResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeInstanceLogResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeInstanceLogResponse build() {
return new DescribeInstanceLogResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceLogResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceLogResponseBody} extends {@link TeaModel}
*
* <p>DescribeInstanceLogResponseBody</p>
*/
public class DescribeInstanceLogResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeInstanceLogResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceLogResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private String data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeInstanceLogResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>Indicates whether the log of the instance was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the log was obtained.</li>
* <li><strong>false</strong>: indicates that the log could not be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The error code.</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned when the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned when the request fails. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>hello\nsae\n</p>
*/
public Builder data(String data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: indicates that the request was successful.</li>
* <li><strong>3xx</strong>: indicates that the request was redirected.</li>
* <li><strong>4xx</strong>: indicates that the request was invalid.</li>
* <li><strong>5xx</strong>: indicates that a server error occurred.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The ID of the trace.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The returned message.</p>
* <ul>
* <li><strong>success</strong> is returned when the request succeeds.</li>
* <li>An error code is returned when the request fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The log of the instance.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeInstanceLogResponseBody build() {
return new DescribeInstanceLogResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceLogsOutput.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceLogsOutput} extends {@link TeaModel}
*
* <p>DescribeInstanceLogsOutput</p>
*/
public class DescribeInstanceLogsOutput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("WebLogEntrys")
private java.util.List<WebLogEntry> webLogEntrys;
private DescribeInstanceLogsOutput(Builder builder) {
this.webLogEntrys = builder.webLogEntrys;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceLogsOutput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return webLogEntrys
*/
public java.util.List<WebLogEntry> getWebLogEntrys() {
return this.webLogEntrys;
}
public static final class Builder {
private java.util.List<WebLogEntry> webLogEntrys;
private Builder() {
}
private Builder(DescribeInstanceLogsOutput model) {
this.webLogEntrys = model.webLogEntrys;
}
/**
* WebLogEntrys.
*/
public Builder webLogEntrys(java.util.List<WebLogEntry> webLogEntrys) {
this.webLogEntrys = webLogEntrys;
return this;
}
public DescribeInstanceLogsOutput build() {
return new DescribeInstanceLogsOutput(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceSpecificationsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceSpecificationsRequest} extends {@link RequestModel}
*
* <p>DescribeInstanceSpecificationsRequest</p>
*/
public class DescribeInstanceSpecificationsRequest extends Request {
private DescribeInstanceSpecificationsRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceSpecificationsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeInstanceSpecificationsRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeInstanceSpecificationsRequest request) {
super(request);
}
@Override
public DescribeInstanceSpecificationsRequest build() {
return new DescribeInstanceSpecificationsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceSpecificationsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceSpecificationsResponse} extends {@link TeaModel}
*
* <p>DescribeInstanceSpecificationsResponse</p>
*/
public class DescribeInstanceSpecificationsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeInstanceSpecificationsResponseBody body;
private DescribeInstanceSpecificationsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeInstanceSpecificationsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeInstanceSpecificationsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeInstanceSpecificationsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeInstanceSpecificationsResponseBody body);
@Override
DescribeInstanceSpecificationsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeInstanceSpecificationsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeInstanceSpecificationsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeInstanceSpecificationsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeInstanceSpecificationsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeInstanceSpecificationsResponse build() {
return new DescribeInstanceSpecificationsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceSpecificationsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeInstanceSpecificationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeInstanceSpecificationsResponseBody</p>
*/
public class DescribeInstanceSpecificationsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeInstanceSpecificationsResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceSpecificationsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private java.util.List<Data> data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeInstanceSpecificationsResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the instance types.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>If the request failed, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the instance types were queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The instance types were queried.</li>
* <li><strong>false</strong>: The instance types failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeInstanceSpecificationsResponseBody build() {
return new DescribeInstanceSpecificationsResponseBody(this);
}
}
/**
*
* {@link DescribeInstanceSpecificationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeInstanceSpecificationsResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("Enable")
private Boolean enable;
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.NameInMap("SpecInfo")
private String specInfo;
@com.aliyun.core.annotation.NameInMap("Version")
private Integer version;
private Data(Builder builder) {
this.cpu = builder.cpu;
this.enable = builder.enable;
this.id = builder.id;
this.memory = builder.memory;
this.specInfo = builder.specInfo;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return enable
*/
public Boolean getEnable() {
return this.enable;
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return specInfo
*/
public String getSpecInfo() {
return this.specInfo;
}
/**
* @return version
*/
public Integer getVersion() {
return this.version;
}
public static final class Builder {
private Integer cpu;
private Boolean enable;
private Integer id;
private Integer memory;
private String specInfo;
private Integer version;
private Builder() {
}
private Builder(Data model) {
this.cpu = model.cpu;
this.enable = model.enable;
this.id = model.id;
this.memory = model.memory;
this.specInfo = model.specInfo;
this.version = model.version;
}
/**
* <p>The CPU specification of the instance type. Unit: millicore.</p>
*
* <strong>example:</strong>
* <p>2000</p>
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>Indicates whether the instance type is available. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enable(Boolean enable) {
this.enable = enable;
return this;
}
/**
* <p>The ID of the instance type.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The memory size of the instance type. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>4096</p>
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
/**
* <p>The name of the instance type.</p>
*/
public Builder specInfo(String specInfo) {
this.specInfo = specInfo;
return this;
}
/**
* <p>The version number of the instance type.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder version(Integer version) {
this.version = version;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobHistoryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobHistoryRequest} extends {@link RequestModel}
*
* <p>DescribeJobHistoryRequest</p>
*/
public class DescribeJobHistoryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Long currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("State")
private String state;
private DescribeJobHistoryRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.state = builder.state;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobHistoryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return currentPage
*/
public Long getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
public static final class Builder extends Request.Builder<DescribeJobHistoryRequest, Builder> {
private String appId;
private Long currentPage;
private Long pageSize;
private String state;
private Builder() {
super();
}
private Builder(DescribeJobHistoryRequest request) {
super(request);
this.appId = request.appId;
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
this.state = request.state;
}
/**
* <p>The ID of the job template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>e1a7a07-abcb-4652-a1d3-2d57f415****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Long currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: 0 to 10000.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The job is not executed.</li>
* <li><strong>1</strong>: The job is executed.</li>
* <li><strong>2</strong>: The job fails to be executed.</li>
* <li><strong>3</strong>: The job is being executed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder state(String state) {
this.putQueryParameter("State", state);
this.state = state;
return this;
}
@Override
public DescribeJobHistoryRequest build() {
return new DescribeJobHistoryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobHistoryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobHistoryResponse} extends {@link TeaModel}
*
* <p>DescribeJobHistoryResponse</p>
*/
public class DescribeJobHistoryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeJobHistoryResponseBody body;
private DescribeJobHistoryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeJobHistoryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeJobHistoryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeJobHistoryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeJobHistoryResponseBody body);
@Override
DescribeJobHistoryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeJobHistoryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeJobHistoryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeJobHistoryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeJobHistoryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeJobHistoryResponse build() {
return new DescribeJobHistoryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobHistoryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobHistoryResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobHistoryResponseBody</p>
*/
public class DescribeJobHistoryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeJobHistoryResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobHistoryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeJobHistoryResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code returned. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned. Take note of the following rules:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the "<strong>Error codes</strong>" section in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned. Take note of the following rules:</p>
* <ul>
* <li>If the call is successful, <strong>success</strong> is returned.</li>
* <li>If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>53F15A18-8079-5992-810C-0211A5AE****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the call was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0b1639af16575057857241351e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeJobHistoryResponseBody build() {
return new DescribeJobHistoryResponseBody(this);
}
}
/**
*
* {@link DescribeJobHistoryResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobHistoryResponseBody</p>
*/
public static class Jobs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Active")
private Long active;
@com.aliyun.core.annotation.NameInMap("CompletionTime")
private Long completionTime;
@com.aliyun.core.annotation.NameInMap("Failed")
private Long failed;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
@com.aliyun.core.annotation.NameInMap("Succeeded")
private Long succeeded;
private Jobs(Builder builder) {
this.active = builder.active;
this.completionTime = builder.completionTime;
this.failed = builder.failed;
this.jobId = builder.jobId;
this.message = builder.message;
this.startTime = builder.startTime;
this.state = builder.state;
this.succeeded = builder.succeeded;
}
public static Builder builder() {
return new Builder();
}
public static Jobs create() {
return builder().build();
}
/**
* @return active
*/
public Long getActive() {
return this.active;
}
/**
* @return completionTime
*/
public Long getCompletionTime() {
return this.completionTime;
}
/**
* @return failed
*/
public Long getFailed() {
return this.failed;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
/**
* @return succeeded
*/
public Long getSucceeded() {
return this.succeeded;
}
public static final class Builder {
private Long active;
private Long completionTime;
private Long failed;
private String jobId;
private String message;
private Long startTime;
private String state;
private Long succeeded;
private Builder() {
}
private Builder(Jobs model) {
this.active = model.active;
this.completionTime = model.completionTime;
this.failed = model.failed;
this.jobId = model.jobId;
this.message = model.message;
this.startTime = model.startTime;
this.state = model.state;
this.succeeded = model.succeeded;
}
/**
* <p>The number of running instances.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder active(Long active) {
this.active = active;
return this;
}
/**
* <p>The time when the job was executed.</p>
*
* <strong>example:</strong>
* <p>1657522839</p>
*/
public Builder completionTime(Long completionTime) {
this.completionTime = completionTime;
return this;
}
/**
* <p>The number of instances that failed to run.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder failed(Long failed) {
this.failed = failed;
return this;
}
/**
* <p>The job ID.</p>
*
* <strong>example:</strong>
* <p>manual-3db7a8fa-5d40-4edc-92e4-49d50eab****</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The message returned if exceptions occur during job running.</p>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The time when the job was created.</p>
*
* <strong>example:</strong>
* <p>1657522800</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The job was not executed.</li>
* <li><strong>1</strong>: The job was executed.</li>
* <li><strong>2</strong>: The job failed to be executed.</li>
* <li><strong>3</strong>: The job is being executed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder state(String state) {
this.state = state;
return this;
}
/**
* <p>The number of instances that are successfully run.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder succeeded(Long succeeded) {
this.succeeded = succeeded;
return this;
}
public Jobs build() {
return new Jobs(this);
}
}
}
/**
*
* {@link DescribeJobHistoryResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobHistoryResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Long currentPage;
@com.aliyun.core.annotation.NameInMap("Jobs")
private java.util.List<Jobs> jobs;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Long totalSize;
private Data(Builder builder) {
this.currentPage = builder.currentPage;
this.jobs = builder.jobs;
this.pageSize = builder.pageSize;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return currentPage
*/
public Long getCurrentPage() {
return this.currentPage;
}
/**
* @return jobs
*/
public java.util.List<Jobs> getJobs() {
return this.jobs;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return totalSize
*/
public Long getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private Long currentPage;
private java.util.List<Jobs> jobs;
private Long pageSize;
private Long totalSize;
private Builder() {
}
private Builder(Data model) {
this.currentPage = model.currentPage;
this.jobs = model.jobs;
this.pageSize = model.pageSize;
this.totalSize = model.totalSize;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Long currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The jobs.</p>
*/
public Builder jobs(java.util.List<Jobs> jobs) {
this.jobs = jobs;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: 0 to 10000.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of jobs.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder totalSize(Long totalSize) {
this.totalSize = totalSize;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobRequest} extends {@link RequestModel}
*
* <p>DescribeJobRequest</p>
*/
public class DescribeJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
private DescribeJobRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
public static final class Builder extends Request.Builder<DescribeJobRequest, Builder> {
private String appId;
private String jobId;
private Builder() {
super();
}
private Builder(DescribeJobRequest request) {
super(request);
this.appId = request.appId;
this.jobId = request.jobId;
}
/**
* <p>The ID of the job template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The job ID.</p>
*
* <strong>example:</strong>
* <p>event-b798157b-40a2-4388-b578-71fb897103**-**</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public DescribeJobRequest build() {
return new DescribeJobRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobResponse} extends {@link TeaModel}
*
* <p>DescribeJobResponse</p>
*/
public class DescribeJobResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeJobResponseBody body;
private DescribeJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeJobResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeJobResponseBody body);
@Override
DescribeJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeJobResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeJobResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeJobResponse build() {
return new DescribeJobResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public class DescribeJobResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeJobResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeJobResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information of the job template.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned. Take note of the following rules:</p>
* <ul>
* <li>If the call is successful, <strong>ErrorCode</strong> is not returned.</li>
* <li>If the call fails, <strong>ErrorCode</strong> is returned. For more information, see the "<strong>Error codes</strong>" section in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>01CF26C7-00A3-4AA6-BA76-7E95F2A3****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the configurations of the job template were obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The configurations were obtained.</li>
* <li><strong>false</strong>: The configurations failed to be obtained.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>ac1a0b2215622246421415014e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeJobResponseBody build() {
return new DescribeJobResponseBody(this);
}
}
/**
*
* {@link DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public static class ConfigMapMountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
@com.aliyun.core.annotation.NameInMap("ConfigMapName")
private String configMapName;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
private ConfigMapMountDesc(Builder builder) {
this.configMapId = builder.configMapId;
this.configMapName = builder.configMapName;
this.key = builder.key;
this.mountPath = builder.mountPath;
}
public static Builder builder() {
return new Builder();
}
public static ConfigMapMountDesc create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
/**
* @return configMapName
*/
public String getConfigMapName() {
return this.configMapName;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
public static final class Builder {
private Long configMapId;
private String configMapName;
private String key;
private String mountPath;
private Builder() {
}
private Builder(ConfigMapMountDesc model) {
this.configMapId = model.configMapId;
this.configMapName = model.configMapName;
this.key = model.key;
this.mountPath = model.mountPath;
}
/**
* <p>The ConfigMap ID.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
return this;
}
/**
* <p>The ConfigMap name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder configMapName(String configMapName) {
this.configMapName = configMapName;
return this;
}
/**
* <p>The key-value pair that is stored in the ConfigMap.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The path on which the ConfigMap is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
public ConfigMapMountDesc build() {
return new ConfigMapMountDesc(this);
}
}
}
/**
*
* {@link DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public static class MountDesc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("NasPath")
private String nasPath;
private MountDesc(Builder builder) {
this.mountPath = builder.mountPath;
this.nasPath = builder.nasPath;
}
public static Builder builder() {
return new Builder();
}
public static MountDesc create() {
return builder().build();
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return nasPath
*/
public String getNasPath() {
return this.nasPath;
}
public static final class Builder {
private String mountPath;
private String nasPath;
private Builder() {
}
private Builder(MountDesc model) {
this.mountPath = model.mountPath;
this.nasPath = model.nasPath;
}
/**
* <p>The path on which the NAS file system is mounted.</p>
*
* <strong>example:</strong>
* <p>/tmp</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* <p>The directory in the NAS file system.</p>
*
* <strong>example:</strong>
* <p>/</p>
*/
public Builder nasPath(String nasPath) {
this.nasPath = nasPath;
return this;
}
public MountDesc build() {
return new MountDesc(this);
}
}
}
/**
*
* {@link DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public static class OssMountDescs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("bucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("bucketPath")
private String bucketPath;
@com.aliyun.core.annotation.NameInMap("mountPath")
private String mountPath;
@com.aliyun.core.annotation.NameInMap("readOnly")
private Boolean readOnly;
private OssMountDescs(Builder builder) {
this.bucketName = builder.bucketName;
this.bucketPath = builder.bucketPath;
this.mountPath = builder.mountPath;
this.readOnly = builder.readOnly;
}
public static Builder builder() {
return new Builder();
}
public static OssMountDescs create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return bucketPath
*/
public String getBucketPath() {
return this.bucketPath;
}
/**
* @return mountPath
*/
public String getMountPath() {
return this.mountPath;
}
/**
* @return readOnly
*/
public Boolean getReadOnly() {
return this.readOnly;
}
public static final class Builder {
private String bucketName;
private String bucketPath;
private String mountPath;
private Boolean readOnly;
private Builder() {
}
private Builder(OssMountDescs model) {
this.bucketName = model.bucketName;
this.bucketPath = model.bucketPath;
this.mountPath = model.mountPath;
this.readOnly = model.readOnly;
}
/**
* <p>The name of the bucket.</p>
*
* <strong>example:</strong>
* <p>oss-bucket</p>
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* <p>The directory or object in OSS. If the specified directory or object does not exist, an error is returned.</p>
*
* <strong>example:</strong>
* <p>data/user.data</p>
*/
public Builder bucketPath(String bucketPath) {
this.bucketPath = bucketPath;
return this;
}
/**
* <p>The path of the container in SAE. The parameter value that you specified overwrites the original value. If the specified path does not exist, SAE automatically creates the path.</p>
*
* <strong>example:</strong>
* <p>/usr/data/user.data</p>
*/
public Builder mountPath(String mountPath) {
this.mountPath = mountPath;
return this;
}
/**
* <p>Indicates whether the job template can use the container directory to read data from or write data to resources in the directory of the OSS bucket. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The job template has the read-only permissions.</li>
* <li><strong>false</strong>: The job template has the read and write permissions.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public OssMountDescs build() {
return new OssMountDescs(this);
}
}
}
/**
*
* {@link DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>k1</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>v1</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeJobResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AcrAssumeRoleArn")
private String acrAssumeRoleArn;
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@com.aliyun.core.annotation.NameInMap("AppDescription")
private String appDescription;
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("BackoffLimit")
private Long backoffLimit;
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.NameInMap("ConcurrencyPolicy")
private String concurrencyPolicy;
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private java.util.List<ConfigMapMountDesc> configMapMountDesc;
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("CustomHostAlias")
private String customHostAlias;
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.NameInMap("ImagePullSecrets")
private String imagePullSecrets;
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.NameInMap("JarStartArgs")
private String jarStartArgs;
@com.aliyun.core.annotation.NameInMap("JarStartOptions")
private String jarStartOptions;
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.NameInMap("MountDesc")
private java.util.List<MountDesc> mountDesc;
@com.aliyun.core.annotation.NameInMap("MountHost")
private String mountHost;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NasConfigs")
private String nasConfigs;
@com.aliyun.core.annotation.NameInMap("NasId")
private String nasId;
@com.aliyun.core.annotation.NameInMap("OssAkId")
private String ossAkId;
@com.aliyun.core.annotation.NameInMap("OssAkSecret")
private String ossAkSecret;
@com.aliyun.core.annotation.NameInMap("OssMountDescs")
private java.util.List<OssMountDescs> ossMountDescs;
@com.aliyun.core.annotation.NameInMap("PackageType")
private String packageType;
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.NameInMap("PhpConfig")
private String phpConfig;
@com.aliyun.core.annotation.NameInMap("PhpConfigLocation")
private String phpConfigLocation;
@com.aliyun.core.annotation.NameInMap("PostStart")
private String postStart;
@com.aliyun.core.annotation.NameInMap("PreStop")
private String preStop;
@com.aliyun.core.annotation.NameInMap("ProgrammingLanguage")
private String programmingLanguage;
@com.aliyun.core.annotation.NameInMap("PublicWebHookUrls")
private java.util.List<String> publicWebHookUrls;
@com.aliyun.core.annotation.NameInMap("Python")
private String python;
@com.aliyun.core.annotation.NameInMap("PythonModules")
private String pythonModules;
@com.aliyun.core.annotation.NameInMap("RefAppId")
private String refAppId;
@com.aliyun.core.annotation.NameInMap("RefedAppIds")
private java.util.List<String> refedAppIds;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Replicas")
private Integer replicas;
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("Slice")
private Boolean slice;
@com.aliyun.core.annotation.NameInMap("SliceEnvs")
private String sliceEnvs;
@com.aliyun.core.annotation.NameInMap("SlsConfigs")
private String slsConfigs;
@com.aliyun.core.annotation.NameInMap("Suspend")
private Boolean suspend;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.NameInMap("TerminationGracePeriodSeconds")
private Integer terminationGracePeriodSeconds;
@com.aliyun.core.annotation.NameInMap("Timeout")
private Long timeout;
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.NameInMap("TomcatConfig")
private String tomcatConfig;
@com.aliyun.core.annotation.NameInMap("TriggerConfig")
private String triggerConfig;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("VpcWebHookUrls")
private java.util.List<String> vpcWebHookUrls;
@com.aliyun.core.annotation.NameInMap("WarStartOptions")
private String warStartOptions;
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
private Data(Builder builder) {
this.acrAssumeRoleArn = builder.acrAssumeRoleArn;
this.acrInstanceId = builder.acrInstanceId;
this.appDescription = builder.appDescription;
this.appId = builder.appId;
this.appName = builder.appName;
this.backoffLimit = builder.backoffLimit;
this.command = builder.command;
this.commandArgs = builder.commandArgs;
this.concurrencyPolicy = builder.concurrencyPolicy;
this.configMapMountDesc = builder.configMapMountDesc;
this.cpu = builder.cpu;
this.customHostAlias = builder.customHostAlias;
this.edasContainerVersion = builder.edasContainerVersion;
this.envs = builder.envs;
this.imagePullSecrets = builder.imagePullSecrets;
this.imageUrl = builder.imageUrl;
this.jarStartArgs = builder.jarStartArgs;
this.jarStartOptions = builder.jarStartOptions;
this.jdk = builder.jdk;
this.memory = builder.memory;
this.mountDesc = builder.mountDesc;
this.mountHost = builder.mountHost;
this.namespaceId = builder.namespaceId;
this.nasConfigs = builder.nasConfigs;
this.nasId = builder.nasId;
this.ossAkId = builder.ossAkId;
this.ossAkSecret = builder.ossAkSecret;
this.ossMountDescs = builder.ossMountDescs;
this.packageType = builder.packageType;
this.packageUrl = builder.packageUrl;
this.packageVersion = builder.packageVersion;
this.phpConfig = builder.phpConfig;
this.phpConfigLocation = builder.phpConfigLocation;
this.postStart = builder.postStart;
this.preStop = builder.preStop;
this.programmingLanguage = builder.programmingLanguage;
this.publicWebHookUrls = builder.publicWebHookUrls;
this.python = builder.python;
this.pythonModules = builder.pythonModules;
this.refAppId = builder.refAppId;
this.refedAppIds = builder.refedAppIds;
this.regionId = builder.regionId;
this.replicas = builder.replicas;
this.securityGroupId = builder.securityGroupId;
this.slice = builder.slice;
this.sliceEnvs = builder.sliceEnvs;
this.slsConfigs = builder.slsConfigs;
this.suspend = builder.suspend;
this.tags = builder.tags;
this.terminationGracePeriodSeconds = builder.terminationGracePeriodSeconds;
this.timeout = builder.timeout;
this.timezone = builder.timezone;
this.tomcatConfig = builder.tomcatConfig;
this.triggerConfig = builder.triggerConfig;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.vpcWebHookUrls = builder.vpcWebHookUrls;
this.warStartOptions = builder.warStartOptions;
this.webContainer = builder.webContainer;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return acrAssumeRoleArn
*/
public String getAcrAssumeRoleArn() {
return this.acrAssumeRoleArn;
}
/**
* @return acrInstanceId
*/
public String getAcrInstanceId() {
return this.acrInstanceId;
}
/**
* @return appDescription
*/
public String getAppDescription() {
return this.appDescription;
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return backoffLimit
*/
public Long getBackoffLimit() {
return this.backoffLimit;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return concurrencyPolicy
*/
public String getConcurrencyPolicy() {
return this.concurrencyPolicy;
}
/**
* @return configMapMountDesc
*/
public java.util.List<ConfigMapMountDesc> getConfigMapMountDesc() {
return this.configMapMountDesc;
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return customHostAlias
*/
public String getCustomHostAlias() {
return this.customHostAlias;
}
/**
* @return edasContainerVersion
*/
public String getEdasContainerVersion() {
return this.edasContainerVersion;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return imagePullSecrets
*/
public String getImagePullSecrets() {
return this.imagePullSecrets;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return jarStartArgs
*/
public String getJarStartArgs() {
return this.jarStartArgs;
}
/**
* @return jarStartOptions
*/
public String getJarStartOptions() {
return this.jarStartOptions;
}
/**
* @return jdk
*/
public String getJdk() {
return this.jdk;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
/**
* @return mountDesc
*/
public java.util.List<MountDesc> getMountDesc() {
return this.mountDesc;
}
/**
* @return mountHost
*/
public String getMountHost() {
return this.mountHost;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return nasConfigs
*/
public String getNasConfigs() {
return this.nasConfigs;
}
/**
* @return nasId
*/
public String getNasId() {
return this.nasId;
}
/**
* @return ossAkId
*/
public String getOssAkId() {
return this.ossAkId;
}
/**
* @return ossAkSecret
*/
public String getOssAkSecret() {
return this.ossAkSecret;
}
/**
* @return ossMountDescs
*/
public java.util.List<OssMountDescs> getOssMountDescs() {
return this.ossMountDescs;
}
/**
* @return packageType
*/
public String getPackageType() {
return this.packageType;
}
/**
* @return packageUrl
*/
public String getPackageUrl() {
return this.packageUrl;
}
/**
* @return packageVersion
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
* @return phpConfig
*/
public String getPhpConfig() {
return this.phpConfig;
}
/**
* @return phpConfigLocation
*/
public String getPhpConfigLocation() {
return this.phpConfigLocation;
}
/**
* @return postStart
*/
public String getPostStart() {
return this.postStart;
}
/**
* @return preStop
*/
public String getPreStop() {
return this.preStop;
}
/**
* @return programmingLanguage
*/
public String getProgrammingLanguage() {
return this.programmingLanguage;
}
/**
* @return publicWebHookUrls
*/
public java.util.List<String> getPublicWebHookUrls() {
return this.publicWebHookUrls;
}
/**
* @return python
*/
public String getPython() {
return this.python;
}
/**
* @return pythonModules
*/
public String getPythonModules() {
return this.pythonModules;
}
/**
* @return refAppId
*/
public String getRefAppId() {
return this.refAppId;
}
/**
* @return refedAppIds
*/
public java.util.List<String> getRefedAppIds() {
return this.refedAppIds;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return replicas
*/
public Integer getReplicas() {
return this.replicas;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return slice
*/
public Boolean getSlice() {
return this.slice;
}
/**
* @return sliceEnvs
*/
public String getSliceEnvs() {
return this.sliceEnvs;
}
/**
* @return slsConfigs
*/
public String getSlsConfigs() {
return this.slsConfigs;
}
/**
* @return suspend
*/
public Boolean getSuspend() {
return this.suspend;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return terminationGracePeriodSeconds
*/
public Integer getTerminationGracePeriodSeconds() {
return this.terminationGracePeriodSeconds;
}
/**
* @return timeout
*/
public Long getTimeout() {
return this.timeout;
}
/**
* @return timezone
*/
public String getTimezone() {
return this.timezone;
}
/**
* @return tomcatConfig
*/
public String getTomcatConfig() {
return this.tomcatConfig;
}
/**
* @return triggerConfig
*/
public String getTriggerConfig() {
return this.triggerConfig;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpcWebHookUrls
*/
public java.util.List<String> getVpcWebHookUrls() {
return this.vpcWebHookUrls;
}
/**
* @return warStartOptions
*/
public String getWarStartOptions() {
return this.warStartOptions;
}
/**
* @return webContainer
*/
public String getWebContainer() {
return this.webContainer;
}
public static final class Builder {
private String acrAssumeRoleArn;
private String acrInstanceId;
private String appDescription;
private String appId;
private String appName;
private Long backoffLimit;
private String command;
private String commandArgs;
private String concurrencyPolicy;
private java.util.List<ConfigMapMountDesc> configMapMountDesc;
private Integer cpu;
private String customHostAlias;
private String edasContainerVersion;
private String envs;
private String imagePullSecrets;
private String imageUrl;
private String jarStartArgs;
private String jarStartOptions;
private String jdk;
private Integer memory;
private java.util.List<MountDesc> mountDesc;
private String mountHost;
private String namespaceId;
private String nasConfigs;
private String nasId;
private String ossAkId;
private String ossAkSecret;
private java.util.List<OssMountDescs> ossMountDescs;
private String packageType;
private String packageUrl;
private String packageVersion;
private String phpConfig;
private String phpConfigLocation;
private String postStart;
private String preStop;
private String programmingLanguage;
private java.util.List<String> publicWebHookUrls;
private String python;
private String pythonModules;
private String refAppId;
private java.util.List<String> refedAppIds;
private String regionId;
private Integer replicas;
private String securityGroupId;
private Boolean slice;
private String sliceEnvs;
private String slsConfigs;
private Boolean suspend;
private java.util.List<Tags> tags;
private Integer terminationGracePeriodSeconds;
private Long timeout;
private String timezone;
private String tomcatConfig;
private String triggerConfig;
private String vSwitchId;
private String vpcId;
private java.util.List<String> vpcWebHookUrls;
private String warStartOptions;
private String webContainer;
private Builder() {
}
private Builder(Data model) {
this.acrAssumeRoleArn = model.acrAssumeRoleArn;
this.acrInstanceId = model.acrInstanceId;
this.appDescription = model.appDescription;
this.appId = model.appId;
this.appName = model.appName;
this.backoffLimit = model.backoffLimit;
this.command = model.command;
this.commandArgs = model.commandArgs;
this.concurrencyPolicy = model.concurrencyPolicy;
this.configMapMountDesc = model.configMapMountDesc;
this.cpu = model.cpu;
this.customHostAlias = model.customHostAlias;
this.edasContainerVersion = model.edasContainerVersion;
this.envs = model.envs;
this.imagePullSecrets = model.imagePullSecrets;
this.imageUrl = model.imageUrl;
this.jarStartArgs = model.jarStartArgs;
this.jarStartOptions = model.jarStartOptions;
this.jdk = model.jdk;
this.memory = model.memory;
this.mountDesc = model.mountDesc;
this.mountHost = model.mountHost;
this.namespaceId = model.namespaceId;
this.nasConfigs = model.nasConfigs;
this.nasId = model.nasId;
this.ossAkId = model.ossAkId;
this.ossAkSecret = model.ossAkSecret;
this.ossMountDescs = model.ossMountDescs;
this.packageType = model.packageType;
this.packageUrl = model.packageUrl;
this.packageVersion = model.packageVersion;
this.phpConfig = model.phpConfig;
this.phpConfigLocation = model.phpConfigLocation;
this.postStart = model.postStart;
this.preStop = model.preStop;
this.programmingLanguage = model.programmingLanguage;
this.publicWebHookUrls = model.publicWebHookUrls;
this.python = model.python;
this.pythonModules = model.pythonModules;
this.refAppId = model.refAppId;
this.refedAppIds = model.refedAppIds;
this.regionId = model.regionId;
this.replicas = model.replicas;
this.securityGroupId = model.securityGroupId;
this.slice = model.slice;
this.sliceEnvs = model.sliceEnvs;
this.slsConfigs = model.slsConfigs;
this.suspend = model.suspend;
this.tags = model.tags;
this.terminationGracePeriodSeconds = model.terminationGracePeriodSeconds;
this.timeout = model.timeout;
this.timezone = model.timezone;
this.tomcatConfig = model.tomcatConfig;
this.triggerConfig = model.triggerConfig;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
this.vpcWebHookUrls = model.vpcWebHookUrls;
this.warStartOptions = model.warStartOptions;
this.webContainer = model.webContainer;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts. For more information, see <a href="https://help.aliyun.com/document_detail/190675.html">Pull images across Alibaba Cloud accounts</a> and <a href="https://help.aliyun.com/document_detail/223585.html">Grant permissions across Alibaba Cloud accounts by using a RAM role</a>.</p>
*
* <strong>example:</strong>
* <p>acs:ram::123456789012****:role/adminrole</p>
*/
public Builder acrAssumeRoleArn(String acrAssumeRoleArn) {
this.acrAssumeRoleArn = acrAssumeRoleArn;
return this;
}
/**
* <p>The ID of the Container Registry Enterprise Edition instance.</p>
*
* <strong>example:</strong>
* <p>cri-xxxxxx</p>
*/
public Builder acrInstanceId(String acrInstanceId) {
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* <p>The description of the job template.</p>
*
* <strong>example:</strong>
* <p>Sample application</p>
*/
public Builder appDescription(String appDescription) {
this.appDescription = appDescription;
return this;
}
/**
* <p>The ID of the job template.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the job template.</p>
*
* <strong>example:</strong>
* <p>demo-app</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* <p>The number of times that the job was retried.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder backoffLimit(Long backoffLimit) {
this.backoffLimit = backoffLimit;
return this;
}
/**
* <p>The command that is used to start the image. The command must be an existing executable object in the container. Example:</p>
* <pre><code>command:
* - echo
* - abc
* - >
* - file0
* </code></pre>
* <p>In this example, the Command parameter is set to <code>Command="echo", CommandArgs=["abc", ">", "file0"]</code>.</p>
*
* <strong>example:</strong>
* <p>echo</p>
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* <p>The arguments of the image startup command. This parameter contains the arguments that are required for <strong>Command</strong>. Format:</p>
* <p><code>["a","b"]</code></p>
* <p>In the preceding <strong>Command</strong> example, the CommandArgs parameter is set to <code>CommandArgs=["abc", ">", "file0"]</code>. The data type of <code>["abc", ">", "file0"]</code> must be an array of strings in the JSON format. If this parameter does not exist in the Command parameter, you do not need to configure it.</p>
*
* <strong>example:</strong>
* <p>["a","b"]</p>
*/
public Builder commandArgs(String commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* <p>The concurrency policy of the job. Valid values:</p>
* <ul>
* <li><strong>Forbid</strong>: Concurrent running is prohibited. If the previous job is not completed, no new job is created.</li>
* <li><strong>Allow</strong>: Concurrent running is allowed.</li>
* <li><strong>Replace</strong>: If the previous job is not completed when the time to create a new job is reached, the new job replaces the previous job.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Allow</p>
*/
public Builder concurrencyPolicy(String concurrencyPolicy) {
this.concurrencyPolicy = concurrencyPolicy;
return this;
}
/**
* <p>The details of the ConfigMap.</p>
*/
public Builder configMapMountDesc(java.util.List<ConfigMapMountDesc> configMapMountDesc) {
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* <p>The CPU specifications required for each instance. Unit: millicore. This parameter cannot be set to 0. Valid values:</p>
* <ul>
* <li><strong>500</strong></li>
* <li><strong>1000</strong></li>
* <li><strong>2000</strong></li>
* <li><strong>4000</strong></li>
* <li><strong>8000</strong></li>
* <li><strong>16000</strong></li>
* <li><strong>32000</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>The custom mapping between the hostname and IP address in the container. Valid values:</p>
* <ul>
* <li><strong>hostName</strong>: the domain name or hostname.</li>
* <li><strong>ip</strong>: the IP address.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"hostName":"test.host.name","ip":"0.0.0.0"}]</p>
*/
public Builder customHostAlias(String customHostAlias) {
this.customHostAlias = customHostAlias;
return this;
}
/**
* <p>The version of the container, such as Ali-Tomcat, in which a job that is developed based on High-speed Service Framework (HSF) is deployed.</p>
*
* <strong>example:</strong>
* <p>3.5.3</p>
*/
public Builder edasContainerVersion(String edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* <p>The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see <a href="https://help.aliyun.com/document_detail/176914.html">CreateConfigMap</a>. Valid values:</p>
* <ul>
* <li><p>Custom configuration</p>
* <ul>
* <li><strong>name</strong>: the name of the environment variable.</li>
* <li><strong>value</strong>: the value of the environment variable.</li>
* </ul>
* </li>
* <li><p>Reference a ConfigMap</p>
* <ul>
* <li><strong>name</strong>: the name of the environment variable. You can reference one or all keys. To reference all keys, specify <code>sae-sys-configmap-all-<ConfigMap name></code>. Example: <code>sae-sys-configmap-all-test1</code>.</li>
* <li><strong>valueFrom</strong>: the reference of the environment variable. Set the value to <code>configMapRef</code>.</li>
* <li><strong>configMapId</strong>: the ID of the ConfigMap.</li>
* <li><strong>key</strong>: the key. If you want to reference all keys, you do not need to configure this parameter.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]</p>
*/
public Builder envs(String envs) {
this.envs = envs;
return this;
}
/**
* <p>The ID of the corresponding secret.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder imagePullSecrets(String imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
return this;
}
/**
* <p>The URL of the image. This parameter is returned only if <strong>PackageType</strong> is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>docker.io/library/nginx:1.14.2</p>
*/
public Builder imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* <p>The arguments in the JAR package. The arguments are used to start the job. The default startup command is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>start</p>
*/
public Builder jarStartArgs(String jarStartArgs) {
this.jarStartArgs = jarStartArgs;
return this;
}
/**
* <p>The option settings in the JAR package. The settings are used to start the job. The default startup command is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>-Dtest=true</p>
*/
public Builder jarStartOptions(String jarStartOptions) {
this.jarStartOptions = jarStartOptions;
return this;
}
/**
* <p>The version of the Java Development Kit (JDK) on which the deployment package of the application depends. The following versions are supported:</p>
* <ul>
* <li><strong>Open JDK 8</strong></li>
* <li><strong>Open JDK 7</strong></li>
* <li><strong>Dragonwell 11</strong></li>
* <li><strong>Dragonwell 8</strong></li>
* <li><strong>openjdk-8u191-jdk-alpine3.9</strong></li>
* <li><strong>openjdk-7u201-jdk-alpine3.9</strong></li>
* </ul>
* <p>This parameter is not returned if <strong>PackageType</strong> is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder jdk(String jdk) {
this.jdk = jdk;
return this;
}
/**
* <p>The size of memory that is required by each instance. Unit: MB. This parameter cannot be set to 0. The values of this parameter correspond to the values of the Cpu parameter:</p>
* <ul>
* <li>This parameter is set to <strong>1024</strong> if the Cpu parameter is set to 500 or 1000.</li>
* <li>This parameter is set to <strong>2048</strong> if the Cpu parameter is set to 500, 1000, or 2000.</li>
* <li>This parameter is set to <strong>4096</strong> if the Cpu parameter is set to 1000, 2000, or 4000.</li>
* <li>This parameter is set to <strong>8192</strong> if the Cpu parameter is set to 2000, 4000, or 8000.</li>
* <li>This parameter is set to <strong>12288</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>16384</strong> if the Cpu parameter is set to 4000, 8000, or 16000.</li>
* <li>This parameter is set to <strong>24567</strong> if the Cpu parameter is set to 12000.</li>
* <li>This parameter is set to <strong>32768</strong> if the Cpu parameter is set to 16000.</li>
* <li>This parameter is set to <strong>65536</strong> if the Cpu parameter is set to 8000, 16000, or 32000.</li>
* <li>This parameter is set to <strong>131072</strong> if the Cpu parameter is set to 32000.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2048</p>
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
/**
* <p>The details of the mounted NAS file system.</p>
*/
public Builder mountDesc(java.util.List<MountDesc> mountDesc) {
this.mountDesc = mountDesc;
return this;
}
/**
* <p>The mount target of the Apsara File Storage NAS (NAS) file system in the virtual private cloud (VPC) where the job template is deployed. If you do not need to modify the NAS configurations when you deploy the job template, configure the <strong>MountHost</strong> parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use NAS, leave the <strong>MountHost</strong> parameter empty in the request.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder mountHost(String mountHost) {
this.mountHost = mountHost;
return this;
}
/**
* <p>The namespace ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The configurations for mounting the NAS file system.</p>
*
* <strong>example:</strong>
* <p>[{"mountPath":"/test1","readOnly":false,"nasId":"nasId1","mountDomain":"nasId1.cn-shenzhen.nas.aliyuncs.com","nasPath":"/test1"},{"nasId":"nasId2","mountDomain":"nasId2.cn-shenzhen.nas.aliyuncs.com","readOnly":false,"nasPath":"/test2","mountPath":"/test2"}]</p>
*/
public Builder nasConfigs(String nasConfigs) {
this.nasConfigs = nasConfigs;
return this;
}
/**
* <p>The ID of the NAS file system.</p>
*
* <strong>example:</strong>
* <p>AKSN89**</p>
*/
public Builder nasId(String nasId) {
this.nasId = nasId;
return this;
}
/**
* <p>The AccessKey ID that is used to read data from and write data to Object Storage Service (OSS).</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkId(String ossAkId) {
this.ossAkId = ossAkId;
return this;
}
/**
* <p>The AccessKey secret that is used to read data from and write data to OSS.</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkSecret(String ossAkSecret) {
this.ossAkSecret = ossAkSecret;
return this;
}
/**
* <p>The description of mounted OSS buckets.</p>
*/
public Builder ossMountDescs(java.util.List<OssMountDescs> ossMountDescs) {
this.ossMountDescs = ossMountDescs;
return this;
}
/**
* <p>The type of the deployment package. Valid values:</p>
* <ul>
* <li><p>If you deploy a Java job template, you can set this parameter to <strong>FatJar</strong>, <strong>War</strong>, or <strong>Image</strong>.</p>
* </li>
* <li><p>If you deploy a PHP job template, the following types are available:</p>
* <ul>
* <li><strong>PhpZip</strong></li>
* <li><strong>IMAGE_PHP_5_4</strong></li>
* <li><strong>IMAGE_PHP_5_4_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_5</strong></li>
* <li><strong>IMAGE_PHP_5_5_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_5_6</strong></li>
* <li><strong>IMAGE_PHP_5_6_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_0</strong></li>
* <li><strong>IMAGE_PHP_7_0_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_1</strong></li>
* <li><strong>IMAGE_PHP_7_1_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_2</strong></li>
* <li><strong>IMAGE_PHP_7_2_ALPINE</strong></li>
* <li><strong>IMAGE_PHP_7_3</strong></li>
* <li><strong>IMAGE_PHP_7_3_ALPINE</strong></li>
* </ul>
* </li>
* <li><p>If you deploy a Python job template, you can set this parameter to <strong>PythonZip</strong> or <strong>Image</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>War</p>
*/
public Builder packageType(String packageType) {
this.packageType = packageType;
return this;
}
/**
* <p>The URL of the deployment package. This parameter is returned only if <strong>PackageType</strong> is set to <strong>FatJar</strong> or <strong>War</strong>.</p>
*/
public Builder packageUrl(String packageUrl) {
this.packageUrl = packageUrl;
return this;
}
/**
* <p>The version of the deployment package. This parameter is required only if <strong>PackageType</strong> is set to <strong>FatJar</strong> or <strong>War</strong>.</p>
*
* <strong>example:</strong>
* <p>1.0</p>
*/
public Builder packageVersion(String packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* <p>The details of the PHP configuration file.</p>
*
* <strong>example:</strong>
* <p>k1=v1</p>
*/
public Builder phpConfig(String phpConfig) {
this.phpConfig = phpConfig;
return this;
}
/**
* <p>The path on which the PHP configuration file for job startup is mounted. Make sure that the PHP server uses this configuration file during the startup.</p>
*
* <strong>example:</strong>
* <p>/usr/local/etc/php/php.ini</p>
*/
public Builder phpConfigLocation(String phpConfigLocation) {
this.phpConfigLocation = phpConfigLocation;
return this;
}
/**
* <p>The script that is run immediately after the container is started. Example: <code>{"exec":{"command":["cat","/etc/group"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder postStart(String postStart) {
this.postStart = postStart;
return this;
}
/**
* <p>The script that is run before the container is stopped. Example: <code>{"exec":{"command":["cat","/etc/group"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder preStop(String preStop) {
this.preStop = preStop;
return this;
}
/**
* <p>The programming language in which the job template is created. Valid values:</p>
* <ul>
* <li><strong>java</strong>: Java</li>
* <li><strong>php</strong>: PHP</li>
* <li><strong>python</strong>: Python</li>
* <li><strong>other</strong>: other programming languages, such as C++, Go, .NET, and Node.js</li>
* </ul>
*
* <strong>example:</strong>
* <p>java</p>
*/
public Builder programmingLanguage(String programmingLanguage) {
this.programmingLanguage = programmingLanguage;
return this;
}
/**
* <p>The Internet request URLs of one-time jobs.</p>
*/
public Builder publicWebHookUrls(java.util.List<String> publicWebHookUrls) {
this.publicWebHookUrls = publicWebHookUrls;
return this;
}
/**
* <p>The Python environment. PYTHON 3.9.15 is supported.</p>
*
* <strong>example:</strong>
* <p>PYTHON 3.9.15</p>
*/
public Builder python(String python) {
this.python = python;
return this;
}
/**
* <p>The configurations for installing custom module dependencies. By default, the dependencies defined by the requirements.txt file in the root directory are installed. If no software package is configured, you can specify dependencies based on your business requirements.</p>
*
* <strong>example:</strong>
* <p>Flask==2.0</p>
*/
public Builder pythonModules(String pythonModules) {
this.pythonModules = pythonModules;
return this;
}
/**
* <p>The ID of the job template that you reference.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder refAppId(String refAppId) {
this.refAppId = refAppId;
return this;
}
/**
* <p>The IDs of the referenced job templates.</p>
*/
public Builder refedAppIds(java.util.List<String> refedAppIds) {
this.refedAppIds = refedAppIds;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The number of job instances.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder replicas(Integer replicas) {
this.replicas = replicas;
return this;
}
/**
* <p>The ID of the security group.</p>
*
* <strong>example:</strong>
* <p>sg-wz969ngg2e49q5i4****</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>Indicates whether job sharding is enabled.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder slice(Boolean slice) {
this.slice = slice;
return this;
}
/**
* <p>The parameters of job sharding.</p>
*
* <strong>example:</strong>
* <p>SliceEnvs</p>
*/
public Builder sliceEnvs(String sliceEnvs) {
this.sliceEnvs = sliceEnvs;
return this;
}
/**
* <p>The logging configurations of Log Service.</p>
* <ul>
* <li>To use Log Service resources that are automatically created by SAE, set this parameter to <code>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</code>.</li>
* <li>To use custom Log Service resources, set this parameter to <code>[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]</code>.</li>
* </ul>
* <p>Parameter description:</p>
* <ul>
* <li><strong>projectName</strong>: the name of the Log Service project.</li>
* <li><strong>logDir</strong>: the path in which logs are stored.</li>
* <li><strong>logType</strong>: the log type. <strong>stdout</strong>: the standard output (stdout) log of the container. Only one stdout value for this parameter can be specified. If this parameter is not configured, file logs are collected.</li>
* <li><strong>logstoreName</strong>: the name of the Logstore in Log Service.</li>
* <li><strong>logtailName</strong>: the name of the Logtail in Log Service. If this parameter is not configured, a new Logtail is created.</li>
* </ul>
* <p>If you do not need to modify the logging configurations when you deploy the application, configure <strong>SlsConfigs</strong> only in the first request. If you no longer need to use Log Service, leave <strong>SlsConfigs</strong> empty in the request.</p>
*
* <strong>example:</strong>
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*/
public Builder slsConfigs(String slsConfigs) {
this.slsConfigs = slsConfigs;
return this;
}
/**
* <p>Indicates whether the job template is suspended.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder suspend(Boolean suspend) {
this.suspend = suspend;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.tags = tags;
return this;
}
/**
* <p>The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds) {
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
return this;
}
/**
* <p>The timeout period of the job. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder timeout(Long timeout) {
this.timeout = timeout;
return this;
}
/**
* <p>The time zone. Default value: <strong>Asia/Shanghai</strong>.</p>
*
* <strong>example:</strong>
* <p>Asia/Shanghai</p>
*/
public Builder timezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* <p>The Tomcat configuration. If you want to delete the configuration, set this parameter to {} or leave this parameter empty. Parameter description:</p>
* <ul>
* <li><strong>port</strong>: the port number. Valid values: 1024 to 65535. The root permissions are required to perform operations on ports whose number is smaller than 1024. Enter a value that ranges from 1025 to 65535 because the container has only the admin permissions. If this parameter is not configured, the default value 8080 is used.</li>
* <li><strong>contextPath</strong>: the path. Default value: /. The value indicates the root directory.</li>
* <li><strong>maxThreads</strong>: the maximum number of connections in the connection pool. Default value: 400.</li>
* <li><strong>uriEncoding</strong>: the URI encoding scheme in the Tomcat container. Valid values: <strong>UTF-8</strong>, <strong>ISO-8859-1</strong>, <strong>GBK</strong>, and <strong>GB2312</strong>. If this parameter is not configured, the default value <strong>ISO-8859-1</strong> is used.</li>
* <li><strong>useBodyEncoding</strong>: indicates whether to use the encoding scheme that is specified by <strong>BodyEncoding for URL</strong>. Default value: <strong>true</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*/
public Builder tomcatConfig(String tomcatConfig) {
this.tomcatConfig = tomcatConfig;
return this;
}
/**
* TriggerConfig.
*/
public Builder triggerConfig(String triggerConfig) {
this.triggerConfig = triggerConfig;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-2ze559r1z1bpwqxwp****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-2ze0i263cnn311nvj****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The internal request URLs for one-time jobs.</p>
*/
public Builder vpcWebHookUrls(java.util.List<String> vpcWebHookUrls) {
this.vpcWebHookUrls = vpcWebHookUrls;
return this;
}
/**
* <p>The option settings in the WAR package. The settings are used to start the job. The default startup command is <code>java $JAVA_OPTS $CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$@" start</code>.</p>
*
* <strong>example:</strong>
* <p>custom-option</p>
*/
public Builder warStartOptions(String warStartOptions) {
this.warStartOptions = warStartOptions;
return this;
}
/**
* <p>The version of the Tomcat container on which the deployment package depends. The following versions are supported:</p>
* <ul>
* <li><strong>apache-tomcat-7.0.91</strong></li>
* <li><strong>apache-tomcat-8.5.42</strong></li>
* </ul>
* <p>This parameter is not returned if <strong>PackageType</strong> is set to <strong>Image</strong>.</p>
*
* <strong>example:</strong>
* <p>apache-tomcat-7.0.91</p>
*/
public Builder webContainer(String webContainer) {
this.webContainer = webContainer;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobStatusRequest} extends {@link RequestModel}
*
* <p>DescribeJobStatusRequest</p>
*/
public class DescribeJobStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
private DescribeJobStatusRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
public static final class Builder extends Request.Builder<DescribeJobStatusRequest, Builder> {
private String appId;
private String jobId;
private Builder() {
super();
}
private Builder(DescribeJobStatusRequest request) {
super(request);
this.appId = request.appId;
this.jobId = request.jobId;
}
/**
* <p>The ID of the job template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>e1a7a07-abcb-4652-a1d3-2d57f415****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The job ID.</p>
*
* <strong>example:</strong>
* <p>event-b798157b-40a2-4388-b578-71fb897103**-**</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public DescribeJobStatusRequest build() {
return new DescribeJobStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobStatusResponse} extends {@link TeaModel}
*
* <p>DescribeJobStatusResponse</p>
*/
public class DescribeJobStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeJobStatusResponseBody body;
private DescribeJobStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeJobStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeJobStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeJobStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeJobStatusResponseBody body);
@Override
DescribeJobStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeJobStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeJobStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeJobStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeJobStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeJobStatusResponse build() {
return new DescribeJobStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeJobStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeJobStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobStatusResponseBody</p>
*/
public class DescribeJobStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeJobStatusResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeJobStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeJobStatusResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned. Take note of the following rules:</p>
* <ul>
* <li><strong>ErrorCode</strong> is not returned if the request succeeds.</li>
* <li><strong>ErrorCode</strong> is returned if the request fails. For more information, see the "<strong>Error codes</strong>" section in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Take note of the following rules:</p>
* <ul>
* <li>If the call is successful, <strong>success</strong> is returned.</li>
* <li>If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>53F15A18-8079-5992-810C-0211A5AE****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the call was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0b1639af16575057857241351e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeJobStatusResponseBody build() {
return new DescribeJobStatusResponseBody(this);
}
}
/**
*
* {@link DescribeJobStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeJobStatusResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Active")
private Long active;
@com.aliyun.core.annotation.NameInMap("CompletionTime")
private Long completionTime;
@com.aliyun.core.annotation.NameInMap("Failed")
private Long failed;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
@com.aliyun.core.annotation.NameInMap("Succeeded")
private Long succeeded;
private Data(Builder builder) {
this.active = builder.active;
this.completionTime = builder.completionTime;
this.failed = builder.failed;
this.jobId = builder.jobId;
this.message = builder.message;
this.startTime = builder.startTime;
this.state = builder.state;
this.succeeded = builder.succeeded;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return active
*/
public Long getActive() {
return this.active;
}
/**
* @return completionTime
*/
public Long getCompletionTime() {
return this.completionTime;
}
/**
* @return failed
*/
public Long getFailed() {
return this.failed;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
/**
* @return succeeded
*/
public Long getSucceeded() {
return this.succeeded;
}
public static final class Builder {
private Long active;
private Long completionTime;
private Long failed;
private String jobId;
private String message;
private Long startTime;
private String state;
private Long succeeded;
private Builder() {
}
private Builder(Data model) {
this.active = model.active;
this.completionTime = model.completionTime;
this.failed = model.failed;
this.jobId = model.jobId;
this.message = model.message;
this.startTime = model.startTime;
this.state = model.state;
this.succeeded = model.succeeded;
}
/**
* <p>The number of running instances.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder active(Long active) {
this.active = active;
return this;
}
/**
* <p>The time when the job was executed.</p>
*
* <strong>example:</strong>
* <p>1657522839</p>
*/
public Builder completionTime(Long completionTime) {
this.completionTime = completionTime;
return this;
}
/**
* <p>The number of instances that failed to run.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder failed(Long failed) {
this.failed = failed;
return this;
}
/**
* <p>The job ID.</p>
*
* <strong>example:</strong>
* <p>event-b798157b-40a2-4388-b578-71fb897103**-**</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The returned message. Take note of the following rules:</p>
* <ul>
* <li>If the call is successful, <strong>success</strong> is returned.</li>
* <li>If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The time when the job was created.</p>
*
* <strong>example:</strong>
* <p>1657522800</p>
*/
public Builder startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The status of the job. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The job is not executed.</li>
* <li><strong>1</strong>: The job was executed.</li>
* <li><strong>2</strong>: The job failed to be executed.</li>
* <li><strong>3</strong>: The job is being executed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder state(String state) {
this.state = state;
return this;
}
/**
* <p>The number of instances that are successfully run.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder succeeded(Long succeeded) {
this.succeeded = succeeded;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceListRequest} extends {@link RequestModel}
*
* <p>DescribeNamespaceListRequest</p>
*/
public class DescribeNamespaceListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ContainCustom")
private Boolean containCustom;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HybridCloudExclude")
private Boolean hybridCloudExclude;
private DescribeNamespaceListRequest(Builder builder) {
super(builder);
this.containCustom = builder.containCustom;
this.hybridCloudExclude = builder.hybridCloudExclude;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return containCustom
*/
public Boolean getContainCustom() {
return this.containCustom;
}
/**
* @return hybridCloudExclude
*/
public Boolean getHybridCloudExclude() {
return this.hybridCloudExclude;
}
public static final class Builder extends Request.Builder<DescribeNamespaceListRequest, Builder> {
private Boolean containCustom;
private Boolean hybridCloudExclude;
private Builder() {
super();
}
private Builder(DescribeNamespaceListRequest request) {
super(request);
this.containCustom = request.containCustom;
this.hybridCloudExclude = request.hybridCloudExclude;
}
/**
* <p>Specifies whether to return custom namespaces. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The system returns custom namespaces.</li>
* <li><strong>false</strong>: The system does not return custom namespaces.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder containCustom(Boolean containCustom) {
this.putQueryParameter("ContainCustom", containCustom);
this.containCustom = containCustom;
return this;
}
/**
* <p>Specifies whether to exclude hybrid cloud namespaces from the result. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The system excludes hybrid cloud namespaces from the result.</li>
* <li><strong>false</strong>: The system does not exclude hybrid cloud namespaces from the result.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder hybridCloudExclude(Boolean hybridCloudExclude) {
this.putQueryParameter("HybridCloudExclude", hybridCloudExclude);
this.hybridCloudExclude = hybridCloudExclude;
return this;
}
@Override
public DescribeNamespaceListRequest build() {
return new DescribeNamespaceListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceListResponse} extends {@link TeaModel}
*
* <p>DescribeNamespaceListResponse</p>
*/
public class DescribeNamespaceListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNamespaceListResponseBody body;
private DescribeNamespaceListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNamespaceListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNamespaceListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNamespaceListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNamespaceListResponseBody body);
@Override
DescribeNamespaceListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNamespaceListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNamespaceListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNamespaceListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNamespaceListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNamespaceListResponse build() {
return new DescribeNamespaceListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceListResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceListResponseBody</p>
*/
public class DescribeNamespaceListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private java.util.List<Data> data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeNamespaceListResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public java.util.List<Data> getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private java.util.List<Data> data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeNamespaceListResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The namespaces.</p>
*/
public Builder data(java.util.List<Data> data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>NULL</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>30375C38-F4ED-4135-A0AE-5C75DC7F****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the list of namespaces was queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The list was queried.</li>
* <li><strong>false</strong>: The list failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>ac1a0b2215622920113732501e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeNamespaceListResponseBody build() {
return new DescribeNamespaceListResponseBody(this);
}
}
/**
*
* {@link DescribeNamespaceListResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceListResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AgentInstall")
private String agentInstall;
@com.aliyun.core.annotation.NameInMap("Current")
private Boolean current;
@com.aliyun.core.annotation.NameInMap("Custom")
private Boolean custom;
@com.aliyun.core.annotation.NameInMap("HybridCloudEnable")
private Boolean hybridCloudEnable;
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NamespaceName")
private String namespaceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private Data(Builder builder) {
this.agentInstall = builder.agentInstall;
this.current = builder.current;
this.custom = builder.custom;
this.hybridCloudEnable = builder.hybridCloudEnable;
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceId = builder.namespaceId;
this.namespaceName = builder.namespaceName;
this.regionId = builder.regionId;
this.securityGroupId = builder.securityGroupId;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return agentInstall
*/
public String getAgentInstall() {
return this.agentInstall;
}
/**
* @return current
*/
public Boolean getCurrent() {
return this.current;
}
/**
* @return custom
*/
public Boolean getCustom() {
return this.custom;
}
/**
* @return hybridCloudEnable
*/
public Boolean getHybridCloudEnable() {
return this.hybridCloudEnable;
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return namespaceName
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String agentInstall;
private Boolean current;
private Boolean custom;
private Boolean hybridCloudEnable;
private String nameSpaceShortId;
private String namespaceId;
private String namespaceName;
private String regionId;
private String securityGroupId;
private String vSwitchId;
private String vpcId;
private Builder() {
}
private Builder(Data model) {
this.agentInstall = model.agentInstall;
this.current = model.current;
this.custom = model.custom;
this.hybridCloudEnable = model.hybridCloudEnable;
this.nameSpaceShortId = model.nameSpaceShortId;
this.namespaceId = model.namespaceId;
this.namespaceName = model.namespaceName;
this.regionId = model.regionId;
this.securityGroupId = model.securityGroupId;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
}
/**
* <p>The command that was run to install the agent.</p>
*
* <strong>example:</strong>
* <p><a href="http://edas-bj.oss-cn-beijing-internal.aliyuncs.com/test/install.sh">http://edas-bj.oss-cn-beijing-internal.aliyuncs.com/test/install.sh</a></p>
*/
public Builder agentInstall(String agentInstall) {
this.agentInstall = agentInstall;
return this;
}
/**
* <p>This parameter is no longer valid.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder current(Boolean current) {
this.current = current;
return this;
}
/**
* <p>Indicates whether custom namespaces are returned. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Custom namespaces are returned.</li>
* <li><strong>false</strong>: Custom namespaces are not returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder custom(Boolean custom) {
this.custom = custom;
return this;
}
/**
* <p>Indicates whether hybrid cloud namespaces are excluded. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Hybrid cloud namespaces are excluded.</li>
* <li><strong>false</strong>: Hybrid cloud namespaces are included.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hybridCloudEnable(Boolean hybridCloudEnable) {
this.hybridCloudEnable = hybridCloudEnable;
return this;
}
/**
* <p>The short ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The name of the namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder namespaceName(String namespaceName) {
this.namespaceName = namespaceName;
return this;
}
/**
* <p>The region to which the namespace belongs.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the security group.</p>
*
* <strong>example:</strong>
* <p>sg-wz969ngg2e49q5i4****</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-2ze559r1z1bpwqxwp****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-2ze0i263cnn311nvj****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceRequest} extends {@link RequestModel}
*
* <p>DescribeNamespaceRequest</p>
*/
public class DescribeNamespaceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
private DescribeNamespaceRequest(Builder builder) {
super(builder);
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeNamespaceRequest, Builder> {
private String nameSpaceShortId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeNamespaceRequest request) {
super(request);
this.nameSpaceShortId = request.nameSpaceShortId;
this.namespaceId = request.namespaceId;
}
/**
* <p>The short ID of the namespace. You do not need to specify a region ID. The value of this parameter can be up to 20 characters in length and can contain only lowercase letters and digits.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.putQueryParameter("NameSpaceShortId", nameSpaceShortId);
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The ID of the namespace. The information about the default namespace cannot be queried or modified. The default namespace cannot be deleted.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeNamespaceRequest build() {
return new DescribeNamespaceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceResourcesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceResourcesRequest} extends {@link RequestModel}
*
* <p>DescribeNamespaceResourcesRequest</p>
*/
public class DescribeNamespaceResourcesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
private DescribeNamespaceResourcesRequest(Builder builder) {
super(builder);
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceResourcesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeNamespaceResourcesRequest, Builder> {
private String nameSpaceShortId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeNamespaceResourcesRequest request) {
super(request);
this.nameSpaceShortId = request.nameSpaceShortId;
this.namespaceId = request.namespaceId;
}
/**
* NameSpaceShortId.
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.putQueryParameter("NameSpaceShortId", nameSpaceShortId);
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>cn-shanghai:test</p>
*
* <strong>example:</strong>
* <p>cn-shanghai:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeNamespaceResourcesRequest build() {
return new DescribeNamespaceResourcesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceResourcesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceResourcesResponse} extends {@link TeaModel}
*
* <p>DescribeNamespaceResourcesResponse</p>
*/
public class DescribeNamespaceResourcesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNamespaceResourcesResponseBody body;
private DescribeNamespaceResourcesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNamespaceResourcesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNamespaceResourcesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNamespaceResourcesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNamespaceResourcesResponseBody body);
@Override
DescribeNamespaceResourcesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNamespaceResourcesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNamespaceResourcesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNamespaceResourcesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNamespaceResourcesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNamespaceResourcesResponse build() {
return new DescribeNamespaceResourcesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceResourcesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceResourcesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceResourcesResponseBody</p>
*/
public class DescribeNamespaceResourcesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeNamespaceResourcesResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceResourcesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeNamespaceResourcesResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: indicates that the request was successful.</li>
* <li><strong>3xx</strong>: indicates that the request was redirected.</li>
* <li><strong>4xx</strong>: indicates that the request failed.</li>
* <li><strong>5xx</strong>: indicates that a server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code.</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned when the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned when the request fails. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message.</p>
* <ul>
* <li><strong>success</strong> is returned when the request succeeds.</li>
* <li>An error code is returned when the request fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information about resources in the namespace was queried successfully. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the query was successful.</li>
* <li><strong>false</strong>: indicates that the query failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the trace. It can be used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeNamespaceResourcesResponseBody build() {
return new DescribeNamespaceResourcesResponseBody(this);
}
}
/**
*
* {@link DescribeNamespaceResourcesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceResourcesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppCount")
private Long appCount;
@com.aliyun.core.annotation.NameInMap("BelongRegion")
private String belongRegion;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("JumpServerAppId")
private String jumpServerAppId;
@com.aliyun.core.annotation.NameInMap("JumpServerIp")
private String jumpServerIp;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderId")
private String lastChangeOrderId;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderRunning")
private Boolean lastChangeOrderRunning;
@com.aliyun.core.annotation.NameInMap("LastChangeOrderStatus")
private String lastChangeOrderStatus;
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NamespaceName")
private String namespaceName;
@com.aliyun.core.annotation.NameInMap("NotificationExpired")
private Boolean notificationExpired;
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("TenantId")
private String tenantId;
@com.aliyun.core.annotation.NameInMap("UserId")
private String userId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VSwitchName")
private String vSwitchName;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("VpcName")
private String vpcName;
private Data(Builder builder) {
this.appCount = builder.appCount;
this.belongRegion = builder.belongRegion;
this.description = builder.description;
this.jumpServerAppId = builder.jumpServerAppId;
this.jumpServerIp = builder.jumpServerIp;
this.lastChangeOrderId = builder.lastChangeOrderId;
this.lastChangeOrderRunning = builder.lastChangeOrderRunning;
this.lastChangeOrderStatus = builder.lastChangeOrderStatus;
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceId = builder.namespaceId;
this.namespaceName = builder.namespaceName;
this.notificationExpired = builder.notificationExpired;
this.securityGroupId = builder.securityGroupId;
this.tenantId = builder.tenantId;
this.userId = builder.userId;
this.vSwitchId = builder.vSwitchId;
this.vSwitchName = builder.vSwitchName;
this.vpcId = builder.vpcId;
this.vpcName = builder.vpcName;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appCount
*/
public Long getAppCount() {
return this.appCount;
}
/**
* @return belongRegion
*/
public String getBelongRegion() {
return this.belongRegion;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return jumpServerAppId
*/
public String getJumpServerAppId() {
return this.jumpServerAppId;
}
/**
* @return jumpServerIp
*/
public String getJumpServerIp() {
return this.jumpServerIp;
}
/**
* @return lastChangeOrderId
*/
public String getLastChangeOrderId() {
return this.lastChangeOrderId;
}
/**
* @return lastChangeOrderRunning
*/
public Boolean getLastChangeOrderRunning() {
return this.lastChangeOrderRunning;
}
/**
* @return lastChangeOrderStatus
*/
public String getLastChangeOrderStatus() {
return this.lastChangeOrderStatus;
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return namespaceName
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
* @return notificationExpired
*/
public Boolean getNotificationExpired() {
return this.notificationExpired;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return tenantId
*/
public String getTenantId() {
return this.tenantId;
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vSwitchName
*/
public String getVSwitchName() {
return this.vSwitchName;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpcName
*/
public String getVpcName() {
return this.vpcName;
}
public static final class Builder {
private Long appCount;
private String belongRegion;
private String description;
private String jumpServerAppId;
private String jumpServerIp;
private String lastChangeOrderId;
private Boolean lastChangeOrderRunning;
private String lastChangeOrderStatus;
private String nameSpaceShortId;
private String namespaceId;
private String namespaceName;
private Boolean notificationExpired;
private String securityGroupId;
private String tenantId;
private String userId;
private String vSwitchId;
private String vSwitchName;
private String vpcId;
private String vpcName;
private Builder() {
}
private Builder(Data model) {
this.appCount = model.appCount;
this.belongRegion = model.belongRegion;
this.description = model.description;
this.jumpServerAppId = model.jumpServerAppId;
this.jumpServerIp = model.jumpServerIp;
this.lastChangeOrderId = model.lastChangeOrderId;
this.lastChangeOrderRunning = model.lastChangeOrderRunning;
this.lastChangeOrderStatus = model.lastChangeOrderStatus;
this.nameSpaceShortId = model.nameSpaceShortId;
this.namespaceId = model.namespaceId;
this.namespaceName = model.namespaceName;
this.notificationExpired = model.notificationExpired;
this.securityGroupId = model.securityGroupId;
this.tenantId = model.tenantId;
this.userId = model.userId;
this.vSwitchId = model.vSwitchId;
this.vSwitchName = model.vSwitchName;
this.vpcId = model.vpcId;
this.vpcName = model.vpcName;
}
/**
* <p>The number of applications.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder appCount(Long appCount) {
this.appCount = appCount;
return this;
}
/**
* <p>The region to which the namespace belongs.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder belongRegion(String belongRegion) {
this.belongRegion = belongRegion;
return this;
}
/**
* <p>The description of the namespace.</p>
*
* <strong>example:</strong>
* <p>decs</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the jump server application.</p>
*
* <strong>example:</strong>
* <p>5ec46468-6b26-4a3c-9f7c-bf88761a****</p>
*/
public Builder jumpServerAppId(String jumpServerAppId) {
this.jumpServerAppId = jumpServerAppId;
return this;
}
/**
* <p>The IP address of the jump server.</p>
*
* <strong>example:</strong>
* <p>120.78.XXX.XX</p>
*/
public Builder jumpServerIp(String jumpServerIp) {
this.jumpServerIp = jumpServerIp;
return this;
}
/**
* <p>The ID of the change order.</p>
*
* <strong>example:</strong>
* <p>afedb3c4-63f8-4a3d-aaa3-2c30363f****</p>
*/
public Builder lastChangeOrderId(String lastChangeOrderId) {
this.lastChangeOrderId = lastChangeOrderId;
return this;
}
/**
* <p>Indicates whether a change order is being executed in the namespace. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that a change order is being executed in the namespace.</li>
* <li><strong>false</strong>: indicates that no change orders are being executed in the namespace.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder lastChangeOrderRunning(Boolean lastChangeOrderRunning) {
this.lastChangeOrderRunning = lastChangeOrderRunning;
return this;
}
/**
* <p>The status of the latest change order. Valid values:</p>
* <ul>
* <li><strong>READY</strong>: The change order is ready.</li>
* <li><strong>RUNNING</strong>: The change order is being executed.</li>
* <li><strong>SUCCESS</strong>: The change order was executed.</li>
* <li><strong>FAIL</strong>: The change order could not be executed.</li>
* <li><strong>ABORT</strong>: The change order was terminated.</li>
* <li><strong>WAIT_BATCH_CONFIRM</strong>: The change order is pending execution. You must manually confirm the release batch.</li>
* <li><strong>AUTO_BATCH_WAIT</strong>: The change order is pending execution. SAE will automatically confirm the release batch.</li>
* <li><strong>SYSTEM_FAIL</strong>: A system exception occurred.</li>
* <li><strong>WAIT_APPROVAL</strong>: The change order is pending approval.</li>
* <li><strong>APPROVED</strong>: The change order is approved and is pending execution.</li>
* </ul>
*
* <strong>example:</strong>
* <p>SUCCESS</p>
*/
public Builder lastChangeOrderStatus(String lastChangeOrderStatus) {
this.lastChangeOrderStatus = lastChangeOrderStatus;
return this;
}
/**
* NameSpaceShortId.
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>cn-shangha:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The name of the namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder namespaceName(String namespaceName) {
this.namespaceName = namespaceName;
return this;
}
/**
* <p>Indicates whether the notification of a change order is expired. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the notification is expired.</li>
* <li><strong>false</strong>: indicates that the notification is not expired.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder notificationExpired(Boolean notificationExpired) {
this.notificationExpired = notificationExpired;
return this;
}
/**
* <p>The ID of the security group.</p>
*
* <strong>example:</strong>
* <p>sg-wz969ngg2e49q5i4****</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>The ID of the tenant in the SAE namespace.</p>
*
* <strong>example:</strong>
* <p>838cad95-973f-48fe-830b-2a8546d7****</p>
*/
public Builder tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* <p>The ID of the user.</p>
*
* <strong>example:</strong>
* <p><a href="mailto:test@aliyun.com">test@aliyun.com</a></p>
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-2ze559r1z1bpwqxwp****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The name of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder vSwitchName(String vSwitchName) {
this.vSwitchName = vSwitchName;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-2ze0i263cnn311nvj****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* <p>The name of the VPC.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder vpcName(String vpcName) {
this.vpcName = vpcName;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceResponse} extends {@link TeaModel}
*
* <p>DescribeNamespaceResponse</p>
*/
public class DescribeNamespaceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNamespaceResponseBody body;
private DescribeNamespaceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNamespaceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNamespaceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNamespaceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNamespaceResponseBody body);
@Override
DescribeNamespaceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNamespaceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNamespaceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNamespaceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNamespaceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNamespaceResponse build() {
return new DescribeNamespaceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespaceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespaceResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceResponseBody</p>
*/
public class DescribeNamespaceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeNamespaceResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespaceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeNamespaceResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about the namespace.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned. Take note of the following rules:</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned if the request succeeds.</li>
* <li>The <strong>ErrorCode</strong> parameter is returned if the request fails. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The additional information that is returned. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the information about the namespace was queried successfully. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The image failed to be found.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a981dd515966966104121683d****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeNamespaceResponseBody build() {
return new DescribeNamespaceResponseBody(this);
}
}
/**
*
* {@link DescribeNamespaceResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespaceResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EnableMicroRegistration")
private Boolean enableMicroRegistration;
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.NameInMap("NamespaceDescription")
private String namespaceDescription;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NamespaceName")
private String namespaceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private Data(Builder builder) {
this.enableMicroRegistration = builder.enableMicroRegistration;
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceDescription = builder.namespaceDescription;
this.namespaceId = builder.namespaceId;
this.namespaceName = builder.namespaceName;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return enableMicroRegistration
*/
public Boolean getEnableMicroRegistration() {
return this.enableMicroRegistration;
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceDescription
*/
public String getNamespaceDescription() {
return this.namespaceDescription;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return namespaceName
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private Boolean enableMicroRegistration;
private String nameSpaceShortId;
private String namespaceDescription;
private String namespaceId;
private String namespaceName;
private String regionId;
private Builder() {
}
private Builder(Data model) {
this.enableMicroRegistration = model.enableMicroRegistration;
this.nameSpaceShortId = model.nameSpaceShortId;
this.namespaceDescription = model.namespaceDescription;
this.namespaceId = model.namespaceId;
this.namespaceName = model.namespaceName;
this.regionId = model.regionId;
}
/**
* <p>Indicates whether the SAE built-in registry is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableMicroRegistration(Boolean enableMicroRegistration) {
this.enableMicroRegistration = enableMicroRegistration;
return this;
}
/**
* <p>The short ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The description of the namespace.</p>
*
* <strong>example:</strong>
* <p>desc</p>
*/
public Builder namespaceDescription(String namespaceDescription) {
this.namespaceDescription = namespaceDescription;
return this;
}
/**
* <p>The ID of the namespace. The information about the default namespace cannot be queried or modified. The default namespace cannot be deleted.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The name of the namespace.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder namespaceName(String namespaceName) {
this.namespaceName = namespaceName;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespacesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespacesRequest} extends {@link RequestModel}
*
* <p>DescribeNamespacesRequest</p>
*/
public class DescribeNamespacesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
private DescribeNamespacesRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespacesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribeNamespacesRequest, Builder> {
private Integer currentPage;
private Integer pageSize;
private Builder() {
super();
}
private Builder(DescribeNamespacesRequest request) {
super(request);
this.currentPage = request.currentPage;
this.pageSize = request.pageSize;
}
/**
* <p>The page number.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page. Valid values: 0 to 10000.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribeNamespacesRequest build() {
return new DescribeNamespacesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespacesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespacesResponse} extends {@link TeaModel}
*
* <p>DescribeNamespacesResponse</p>
*/
public class DescribeNamespacesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeNamespacesResponseBody body;
private DescribeNamespacesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeNamespacesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeNamespacesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeNamespacesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeNamespacesResponseBody body);
@Override
DescribeNamespacesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeNamespacesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeNamespacesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeNamespacesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeNamespacesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeNamespacesResponse build() {
return new DescribeNamespacesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeNamespacesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeNamespacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespacesResponseBody</p>
*/
public class DescribeNamespacesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeNamespacesResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNamespacesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeNamespacesResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information of namespaces.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</p>
* <ul>
* <li>If the call is successful, the <strong>ErrorCode</strong> parameter is not returned.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the <strong>Error codes</strong> section in this topic.</li>
* </ul>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The returned message. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the list of namespaces was queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The list was queried.</li>
* <li><strong>false</strong>: The list failed to be queried.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a981dd515966966104121683d****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeNamespacesResponseBody build() {
return new DescribeNamespacesResponseBody(this);
}
}
/**
*
* {@link DescribeNamespacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespacesResponseBody</p>
*/
public static class Namespaces extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessKey")
private String accessKey;
@com.aliyun.core.annotation.NameInMap("AddressServerHost")
private String addressServerHost;
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.NameInMap("NamespaceDescription")
private String namespaceDescription;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("NamespaceName")
private String namespaceName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SecretKey")
private String secretKey;
@com.aliyun.core.annotation.NameInMap("TenantId")
private String tenantId;
private Namespaces(Builder builder) {
this.accessKey = builder.accessKey;
this.addressServerHost = builder.addressServerHost;
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceDescription = builder.namespaceDescription;
this.namespaceId = builder.namespaceId;
this.namespaceName = builder.namespaceName;
this.regionId = builder.regionId;
this.secretKey = builder.secretKey;
this.tenantId = builder.tenantId;
}
public static Builder builder() {
return new Builder();
}
public static Namespaces create() {
return builder().build();
}
/**
* @return accessKey
*/
public String getAccessKey() {
return this.accessKey;
}
/**
* @return addressServerHost
*/
public String getAddressServerHost() {
return this.addressServerHost;
}
/**
* @return nameSpaceShortId
*/
public String getNameSpaceShortId() {
return this.nameSpaceShortId;
}
/**
* @return namespaceDescription
*/
public String getNamespaceDescription() {
return this.namespaceDescription;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return namespaceName
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return secretKey
*/
public String getSecretKey() {
return this.secretKey;
}
/**
* @return tenantId
*/
public String getTenantId() {
return this.tenantId;
}
public static final class Builder {
private String accessKey;
private String addressServerHost;
private String nameSpaceShortId;
private String namespaceDescription;
private String namespaceId;
private String namespaceName;
private String regionId;
private String secretKey;
private String tenantId;
private Builder() {
}
private Builder(Namespaces model) {
this.accessKey = model.accessKey;
this.addressServerHost = model.addressServerHost;
this.nameSpaceShortId = model.nameSpaceShortId;
this.namespaceDescription = model.namespaceDescription;
this.namespaceId = model.namespaceId;
this.namespaceName = model.namespaceName;
this.regionId = model.regionId;
this.secretKey = model.secretKey;
this.tenantId = model.tenantId;
}
/**
* <p>The ACM-specific AccessKey ID. It can be used to manage data in an Application Configuration Management (ACM) namespace. For more information, see <a href="https://help.aliyun.com/document_detail/68941.html">Differences between Alibaba Cloud AccessKey and ACM-specific AccessKey</a>.</p>
*
* <strong>example:</strong>
* <p>b34dbe3315c64f9f99b58ea447ec****</p>
*/
public Builder accessKey(String accessKey) {
this.accessKey = accessKey;
return this;
}
/**
* <p>The endpoint of the host.</p>
*
* <strong>example:</strong>
* <p>addr-bj-internal.edas.aliyun.com</p>
*/
public Builder addressServerHost(String addressServerHost) {
this.addressServerHost = addressServerHost;
return this;
}
/**
* <p>The short ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The description of the namespace.</p>
*
* <strong>example:</strong>
* <p>desc</p>
*/
public Builder namespaceDescription(String namespaceDescription) {
this.namespaceDescription = namespaceDescription;
return this;
}
/**
* <p>The ID of the namespace. You cannot query, modify, or delete the default namespace.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The name of the namespace.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder namespaceName(String namespaceName) {
this.namespaceName = namespaceName;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ACM-specific AccessKey secret. It can be used to manage data in an ACM namespace. For more information, see <a href="https://help.aliyun.com/document_detail/68941.html">Differences between Alibaba Cloud AccessKey and ACM-specific AccessKey</a>.</p>
*
* <strong>example:</strong>
* <p>G/w6sseK7+nb3S6HBmANDBMD****</p>
*/
public Builder secretKey(String secretKey) {
this.secretKey = secretKey;
return this;
}
/**
* <p>The tenant ID.</p>
*
* <strong>example:</strong>
* <p>838cad95-973f-48fe-830b-2a8546d7****</p>
*/
public Builder tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
public Namespaces build() {
return new Namespaces(this);
}
}
}
/**
*
* {@link DescribeNamespacesResponseBody} extends {@link TeaModel}
*
* <p>DescribeNamespacesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("Namespaces")
private java.util.List<Namespaces> namespaces;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Integer totalSize;
private Data(Builder builder) {
this.currentPage = builder.currentPage;
this.namespaces = builder.namespaces;
this.pageSize = builder.pageSize;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return namespaces
*/
public java.util.List<Namespaces> getNamespaces() {
return this.namespaces;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalSize
*/
public Integer getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private Integer currentPage;
private java.util.List<Namespaces> namespaces;
private Integer pageSize;
private Integer totalSize;
private Builder() {
}
private Builder(Data model) {
this.currentPage = model.currentPage;
this.namespaces = model.namespaces;
this.pageSize = model.pageSize;
this.totalSize = model.totalSize;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The namespaces.</p>
*/
public Builder namespaces(java.util.List<Namespaces> namespaces) {
this.namespaces = namespaces;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of namespaces.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalSize(Integer totalSize) {
this.totalSize = totalSize;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribePipelineRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribePipelineRequest} extends {@link RequestModel}
*
* <p>DescribePipelineRequest</p>
*/
public class DescribePipelineRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PipelineId")
@com.aliyun.core.annotation.Validation(required = true)
private String pipelineId;
private DescribePipelineRequest(Builder builder) {
super(builder);
this.pipelineId = builder.pipelineId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePipelineRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
public static final class Builder extends Request.Builder<DescribePipelineRequest, Builder> {
private String pipelineId;
private Builder() {
super();
}
private Builder(DescribePipelineRequest request) {
super(request);
this.pipelineId = request.pipelineId;
}
/**
* <p>The ID of the batch. You can call the <a href="https://help.aliyun.com/document_detail/126617.html">DescribeChangeOrder</a> operation to obtain the ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>917660ba-5092-44ca-b8e0-80012c96****</p>
*/
public Builder pipelineId(String pipelineId) {
this.putQueryParameter("PipelineId", pipelineId);
this.pipelineId = pipelineId;
return this;
}
@Override
public DescribePipelineRequest build() {
return new DescribePipelineRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribePipelineResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribePipelineResponse} extends {@link TeaModel}
*
* <p>DescribePipelineResponse</p>
*/
public class DescribePipelineResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePipelineResponseBody body;
private DescribePipelineResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePipelineResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePipelineResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePipelineResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePipelineResponseBody body);
@Override
DescribePipelineResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePipelineResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePipelineResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePipelineResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePipelineResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePipelineResponse build() {
return new DescribePipelineResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribePipelineResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribePipelineResponseBody} extends {@link TeaModel}
*
* <p>DescribePipelineResponseBody</p>
*/
public class DescribePipelineResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribePipelineResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePipelineResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribePipelineResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The batch information.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned if the request failed. Take note of the following rules:</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned if the request succeeds.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see the "<strong>Error codes</strong>" section of this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The message returned for the operation.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>559B4247-C41C-4D9E-B866-B55D360B****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the batch information was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The image failed to be found.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0be3e0c316390414649128666e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribePipelineResponseBody build() {
return new DescribePipelineResponseBody(this);
}
}
/**
*
* {@link DescribePipelineResponseBody} extends {@link TeaModel}
*
* <p>DescribePipelineResponseBody</p>
*/
public static class TaskList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("ErrorIgnore")
private Integer errorIgnore;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("ShowManualIgnore")
private Boolean showManualIgnore;
@com.aliyun.core.annotation.NameInMap("StageId")
private String stageId;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
private TaskList(Builder builder) {
this.errorCode = builder.errorCode;
this.errorIgnore = builder.errorIgnore;
this.errorMessage = builder.errorMessage;
this.message = builder.message;
this.showManualIgnore = builder.showManualIgnore;
this.stageId = builder.stageId;
this.status = builder.status;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
}
public static Builder builder() {
return new Builder();
}
public static TaskList create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return errorIgnore
*/
public Integer getErrorIgnore() {
return this.errorIgnore;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return showManualIgnore
*/
public Boolean getShowManualIgnore() {
return this.showManualIgnore;
}
/**
* @return stageId
*/
public String getStageId() {
return this.stageId;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
public static final class Builder {
private String errorCode;
private Integer errorIgnore;
private String errorMessage;
private String message;
private Boolean showManualIgnore;
private String stageId;
private Integer status;
private String taskId;
private String taskName;
private Builder() {
}
private Builder(TaskList model) {
this.errorCode = model.errorCode;
this.errorIgnore = model.errorIgnore;
this.errorMessage = model.errorMessage;
this.message = model.message;
this.showManualIgnore = model.showManualIgnore;
this.stageId = model.stageId;
this.status = model.status;
this.taskId = model.taskId;
this.taskName = model.taskName;
}
/**
* <p>The error code returned when the task could not be executed. If the task is successfully executed, this parameter is not returned.</p>
*
* <strong>example:</strong>
* <p>EDAS-10022</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>Indicates whether to execute the subsequent tasks when the task failed. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The subsequent tasks cannot be executed.</li>
* <li><strong>1</strong>: The subsequent tasks can be executed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder errorIgnore(Integer errorIgnore) {
this.errorIgnore = errorIgnore;
return this;
}
/**
* <p>The error message returned when the task could not be executed. If the task is successfully executed, this parameter is not returned.</p>
*
* <strong>example:</strong>
* <p>EDAS-10022</p>
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* <p>The returned message indicating the task execution result.</p>
*
* <strong>example:</strong>
* <p>init Namespace success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>Indicates whether a running task can be manually skipped. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The running task can be skipped.</li>
* <li><strong>false</strong>: The zone does not allow you to change the network type of an ApsaraDB for Redis instance from classic network to VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder showManualIgnore(Boolean showManualIgnore) {
this.showManualIgnore = showManualIgnore;
return this;
}
/**
* <p>The ID of the stage.</p>
*
* <strong>example:</strong>
* <p>c3a55592-4c30-4d84-ac2d-e98c18ec****</p>
*/
public Builder stageId(String stageId) {
this.stageId = stageId;
return this;
}
/**
* <p>The task status. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The task is prepared for execution.</li>
* <li><strong>1</strong>: The task is being executed.</li>
* <li><strong>2</strong>: successful</li>
* <li><strong>3</strong>: The task could not be executed.</li>
* <li><strong>5</strong>: The task is pending retry.</li>
* <li><strong>6</strong>: The task was terminated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>bef0122f-de9a-4ab0-8223-b88bf8ad****</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the task.</p>
*
* <strong>example:</strong>
* <p>Environment initialization</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
public TaskList build() {
return new TaskList(this);
}
}
}
/**
*
* {@link DescribePipelineResponseBody} extends {@link TeaModel}
*
* <p>DescribePipelineResponseBody</p>
*/
public static class StageList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ExecutorType")
private Integer executorType;
@com.aliyun.core.annotation.NameInMap("StageId")
private String stageId;
@com.aliyun.core.annotation.NameInMap("StageName")
private String stageName;
@com.aliyun.core.annotation.NameInMap("Status")
private Integer status;
@com.aliyun.core.annotation.NameInMap("TaskList")
private java.util.List<TaskList> taskList;
private StageList(Builder builder) {
this.executorType = builder.executorType;
this.stageId = builder.stageId;
this.stageName = builder.stageName;
this.status = builder.status;
this.taskList = builder.taskList;
}
public static Builder builder() {
return new Builder();
}
public static StageList create() {
return builder().build();
}
/**
* @return executorType
*/
public Integer getExecutorType() {
return this.executorType;
}
/**
* @return stageId
*/
public String getStageId() {
return this.stageId;
}
/**
* @return stageName
*/
public String getStageName() {
return this.stageName;
}
/**
* @return status
*/
public Integer getStatus() {
return this.status;
}
/**
* @return taskList
*/
public java.util.List<TaskList> getTaskList() {
return this.taskList;
}
public static final class Builder {
private Integer executorType;
private String stageId;
private String stageName;
private Integer status;
private java.util.List<TaskList> taskList;
private Builder() {
}
private Builder(StageList model) {
this.executorType = model.executorType;
this.stageId = model.stageId;
this.stageName = model.stageName;
this.status = model.status;
this.taskList = model.taskList;
}
/**
* <p>The execution type of the stage. Valid values:</p>
* <ul>
* <li><strong>0</strong>: in sequence.</li>
* <li><strong>1</strong>: in parallel.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder executorType(Integer executorType) {
this.executorType = executorType;
return this;
}
/**
* <p>The ID of the stage.</p>
*
* <strong>example:</strong>
* <p>c3a55592-4c30-4d84-ac2d-e98c18ec****</p>
*/
public Builder stageId(String stageId) {
this.stageId = stageId;
return this;
}
/**
* <p>The name of the stage.</p>
*
* <strong>example:</strong>
* <p>Deploy an application</p>
*/
public Builder stageName(String stageName) {
this.stageName = stageName;
return this;
}
/**
* <p>The status of the batch processing stage. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The batch is prepared for this processing stage.</li>
* <li><strong>1</strong>: The task is being executed.</li>
* <li><strong>2</strong>: successful</li>
* <li><strong>3</strong>: The processing failed in this stage.</li>
* <li><strong>6</strong>: The processing stage was terminated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(Integer status) {
this.status = status;
return this;
}
/**
* <p>The list of task statuses.</p>
*/
public Builder taskList(java.util.List<TaskList> taskList) {
this.taskList = taskList;
return this;
}
public StageList build() {
return new StageList(this);
}
}
}
/**
*
* {@link DescribePipelineResponseBody} extends {@link TeaModel}
*
* <p>DescribePipelineResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CoStatus")
private String coStatus;
@com.aliyun.core.annotation.NameInMap("CurrentStageId")
private String currentStageId;
@com.aliyun.core.annotation.NameInMap("NextPipelineId")
private String nextPipelineId;
@com.aliyun.core.annotation.NameInMap("PipelineId")
private String pipelineId;
@com.aliyun.core.annotation.NameInMap("PipelineName")
private String pipelineName;
@com.aliyun.core.annotation.NameInMap("PipelineStatus")
private Integer pipelineStatus;
@com.aliyun.core.annotation.NameInMap("ShowBatch")
private Boolean showBatch;
@com.aliyun.core.annotation.NameInMap("StageList")
private java.util.List<StageList> stageList;
private Data(Builder builder) {
this.coStatus = builder.coStatus;
this.currentStageId = builder.currentStageId;
this.nextPipelineId = builder.nextPipelineId;
this.pipelineId = builder.pipelineId;
this.pipelineName = builder.pipelineName;
this.pipelineStatus = builder.pipelineStatus;
this.showBatch = builder.showBatch;
this.stageList = builder.stageList;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return coStatus
*/
public String getCoStatus() {
return this.coStatus;
}
/**
* @return currentStageId
*/
public String getCurrentStageId() {
return this.currentStageId;
}
/**
* @return nextPipelineId
*/
public String getNextPipelineId() {
return this.nextPipelineId;
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
/**
* @return pipelineName
*/
public String getPipelineName() {
return this.pipelineName;
}
/**
* @return pipelineStatus
*/
public Integer getPipelineStatus() {
return this.pipelineStatus;
}
/**
* @return showBatch
*/
public Boolean getShowBatch() {
return this.showBatch;
}
/**
* @return stageList
*/
public java.util.List<StageList> getStageList() {
return this.stageList;
}
public static final class Builder {
private String coStatus;
private String currentStageId;
private String nextPipelineId;
private String pipelineId;
private String pipelineName;
private Integer pipelineStatus;
private Boolean showBatch;
private java.util.List<StageList> stageList;
private Builder() {
}
private Builder(Data model) {
this.coStatus = model.coStatus;
this.currentStageId = model.currentStageId;
this.nextPipelineId = model.nextPipelineId;
this.pipelineId = model.pipelineId;
this.pipelineName = model.pipelineName;
this.pipelineStatus = model.pipelineStatus;
this.showBatch = model.showBatch;
this.stageList = model.stageList;
}
/**
* <p>The status of the change order for the batch.</p>
*
* <strong>example:</strong>
* <p>Successful</p>
*/
public Builder coStatus(String coStatus) {
this.coStatus = coStatus;
return this;
}
/**
* <p>The ID of the batch processing stage.</p>
*
* <strong>example:</strong>
* <p>c3a55592-4c30-4d84-ac2d-e98c18ec****</p>
*/
public Builder currentStageId(String currentStageId) {
this.currentStageId = currentStageId;
return this;
}
/**
* <p>The ID of the next batch.</p>
*
* <strong>example:</strong>
* <p>b77b1c98-5772-4f05-95fc-c7bee5fa****</p>
*/
public Builder nextPipelineId(String nextPipelineId) {
this.nextPipelineId = nextPipelineId;
return this;
}
/**
* <p>The ID of the batch.</p>
*
* <strong>example:</strong>
* <p>917660ba-5092-44ca-b8e0-80012c96****</p>
*/
public Builder pipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
}
/**
* <p>The name of the batch.</p>
*
* <strong>example:</strong>
* <p>First batch</p>
*/
public Builder pipelineName(String pipelineName) {
this.pipelineName = pipelineName;
return this;
}
/**
* <p>The batch status. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The batch is prepared for processing.</li>
* <li><strong>1</strong>: The task is being executed.</li>
* <li><strong>2</strong>: successful</li>
* <li><strong>3</strong>: The processing failed in this stage.</li>
* <li><strong>6</strong>: The batch processing was terminated.</li>
* <li><strong>10</strong>: The batch could not be processed due to a system exception.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder pipelineStatus(Integer pipelineStatus) {
this.pipelineStatus = pipelineStatus;
return this;
}
/**
* <p>Indicates whether to start processing the next batch. Valid values:</p>
* <ul>
* <li><strong>false</strong>: indicates that the next batch cannot be processed yet.</li>
* <li><strong>true</strong>: indicates that the next batch can be processed now.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder showBatch(Boolean showBatch) {
this.showBatch = showBatch;
return this;
}
/**
* <p>The list of batch processing stages.</p>
*/
public Builder stageList(java.util.List<StageList> stageList) {
this.stageList = stageList;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeRegionsRequest} extends {@link RequestModel}
*
* <p>DescribeRegionsRequest</p>
*/
public class DescribeRegionsRequest extends Request {
private DescribeRegionsRequest(Builder builder) {
super(builder);
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
public static final class Builder extends Request.Builder<DescribeRegionsRequest, Builder> {
private Builder() {
super();
}
private Builder(DescribeRegionsRequest request) {
super(request);
}
@Override
public DescribeRegionsRequest build() {
return new DescribeRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeRegionsResponse} extends {@link TeaModel}
*
* <p>DescribeRegionsResponse</p>
*/
public class DescribeRegionsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRegionsResponseBody body;
private DescribeRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRegionsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRegionsResponseBody body);
@Override
DescribeRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRegionsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRegionsResponse build() {
return new DescribeRegionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public class DescribeRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private Integer code;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Regions")
private Regions regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRegionsResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public Integer getCode() {
return this.code;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return regions
*/
public Regions getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Integer code;
private String message;
private Regions regions;
private String requestId;
private Builder() {
}
private Builder(DescribeRegionsResponseBody model) {
this.code = model.code;
this.message = model.message;
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(Integer code) {
this.code = code;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The regions.</p>
*/
public Builder regions(Regions regions) {
this.regions = regions;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DDE85827-B0B3-4E56-86E8-17C42009****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRegionsResponseBody build() {
return new DescribeRegionsResponseBody(this);
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class RecommendZones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RecommendZone")
private java.util.List<String> recommendZone;
private RecommendZones(Builder builder) {
this.recommendZone = builder.recommendZone;
}
public static Builder builder() {
return new Builder();
}
public static RecommendZones create() {
return builder().build();
}
/**
* @return recommendZone
*/
public java.util.List<String> getRecommendZone() {
return this.recommendZone;
}
public static final class Builder {
private java.util.List<String> recommendZone;
private Builder() {
}
private Builder(RecommendZones model) {
this.recommendZone = model.recommendZone;
}
/**
* RecommendZone.
*/
public Builder recommendZone(java.util.List<String> recommendZone) {
this.recommendZone = recommendZone;
return this;
}
public RecommendZones build() {
return new RecommendZones(this);
}
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Region extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("RecommendZones")
private RecommendZones recommendZones;
@com.aliyun.core.annotation.NameInMap("RegionEndpoint")
private String regionEndpoint;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private Region(Builder builder) {
this.localName = builder.localName;
this.recommendZones = builder.recommendZones;
this.regionEndpoint = builder.regionEndpoint;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static Region create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return recommendZones
*/
public RecommendZones getRecommendZones() {
return this.recommendZones;
}
/**
* @return regionEndpoint
*/
public String getRegionEndpoint() {
return this.regionEndpoint;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String localName;
private RecommendZones recommendZones;
private String regionEndpoint;
private String regionId;
private Builder() {
}
private Builder(Region model) {
this.localName = model.localName;
this.recommendZones = model.recommendZones;
this.regionEndpoint = model.regionEndpoint;
this.regionId = model.regionId;
}
/**
* <p>The region name. Valid values:</p>
* <ul>
* <li><strong>China (Hangzhou)</strong></li>
* <li><strong>China (Shanghai)</strong></li>
* <li><strong>China (Beijing)</strong></li>
* <li><strong>China (Zhangjiakou)</strong></li>
* <li><strong>China (Shenzhen)</strong></li>
* <li><strong>China (Guangzhou)</strong></li>
* <li><strong>China (Hong Kong)</strong></li>
* <li><strong>Singapore</strong></li>
* <li><strong>US (Silicon Valley)</strong></li>
* </ul>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The recommended zones.</p>
*/
public Builder recommendZones(RecommendZones recommendZones) {
this.recommendZones = recommendZones;
return this;
}
/**
* <p>The endpoint for the region. Valid values:</p>
* <ul>
* <li><strong>sae.cn-hangzhou.aliyuncs.com</strong></li>
* <li><strong>sae.cn-shanghai.aliyuncs.com</strong></li>
* <li><strong>sae.cn-beijing.aliyuncs.com</strong></li>
* <li><strong>sae.cn-zhangjiakou.aliyuncs.com</strong></li>
* <li><strong>sae.cn-shenzhen.aliyuncs.com</strong></li>
* <li><strong>sae.cn-guangzhou.aliyuncs.com</strong></li>
* <li><strong>sae.cn-hongkong.aliyuncs.com</strong></li>
* <li><strong>sae.ap-southeast-1.aliyuncs.com</strong></li>
* <li><strong>sae.us-west-1.aliyuncs.com</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>sae.cn-shanghai.aliyuncs.com</p>
*/
public Builder regionEndpoint(String regionEndpoint) {
this.regionEndpoint = regionEndpoint;
return this;
}
/**
* <p>The region ID. Valid values:</p>
* <ul>
* <li><strong>cn-hangzhou</strong>: the ID of the China (Hangzhou) region</li>
* <li><strong>cn-shanghai</strong>: the ID of the China (Shanghai) region</li>
* <li><strong>cn-beijing</strong>: the ID of the China (Beijing) region</li>
* <li><strong>cn-zhangjiakou</strong>: the ID of the China (Zhangjiakou) region</li>
* <li><strong>cn-shenzhen</strong>: the ID of the China (Shenzhen) region</li>
* <li><strong>cn-guangzhou</strong>: the ID of the China (Guangzhou) region</li>
* <li><strong>cn-hongkong</strong>: the ID of the China (Hong Kong) region</li>
* <li><strong>ap-southeast-1</strong>: the ID of the Singapore region</li>
* <li><strong>us-west-1</strong>: the ID of the US (Silicon Valley) region</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public Region build() {
return new Region(this);
}
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Region")
private java.util.List<Region> region;
private Regions(Builder builder) {
this.region = builder.region;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return region
*/
public java.util.List<Region> getRegion() {
return this.region;
}
public static final class Builder {
private java.util.List<Region> region;
private Builder() {
}
private Builder(Regions model) {
this.region = model.region;
}
/**
* Region.
*/
public Builder region(java.util.List<Region> region) {
this.region = region;
return this;
}
public Regions build() {
return new Regions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSecretRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSecretRequest} extends {@link RequestModel}
*
* <p>DescribeSecretRequest</p>
*/
public class DescribeSecretRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecretId")
@com.aliyun.core.annotation.Validation(required = true, maximum = 1000000000, minimum = 1)
private Long secretId;
private DescribeSecretRequest(Builder builder) {
super(builder);
this.namespaceId = builder.namespaceId;
this.secretId = builder.secretId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecretRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return secretId
*/
public Long getSecretId() {
return this.secretId;
}
public static final class Builder extends Request.Builder<DescribeSecretRequest, Builder> {
private String namespaceId;
private Long secretId;
private Builder() {
super();
}
private Builder(DescribeSecretRequest request) {
super(request);
this.namespaceId = request.namespaceId;
this.secretId = request.secretId;
}
/**
* <p>The ID of the namespace where the Secret resides. If the namespace is the default namespace, you need to only enter the region ID, such as <code>cn-beijing</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The ID of the Secret instance to be queried. You can call the <a href="https://help.aliyun.com/document_detail/466929.html">ListSecrets</a> operation to view the IDs of Secrete instances.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder secretId(Long secretId) {
this.putQueryParameter("SecretId", secretId);
this.secretId = secretId;
return this;
}
@Override
public DescribeSecretRequest build() {
return new DescribeSecretRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSecretResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSecretResponse} extends {@link TeaModel}
*
* <p>DescribeSecretResponse</p>
*/
public class DescribeSecretResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecretResponseBody body;
private DescribeSecretResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecretResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecretResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecretResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecretResponseBody body);
@Override
DescribeSecretResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecretResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecretResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecretResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecretResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecretResponse build() {
return new DescribeSecretResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSecretResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSecretResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecretResponseBody</p>
*/
public class DescribeSecretResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeSecretResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecretResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeSecretResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* <p>The HTTP status code. Valid values:</p>
* <ul>
* <li><strong>2xx</strong>: The call was successful.</li>
* <li><strong>3xx</strong>: The call was redirected.</li>
* <li><strong>4xx</strong>: The call failed.</li>
* <li><strong>5xx</strong>: A server error occurred.</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The response.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code returned. Valid values:</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned if the request succeeds.</li>
* <li>If the call fails, the <strong>ErrorCode</strong> parameter is returned. For more information, see <strong>Error codes</strong> in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Null</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The additional information that is returned. Valid values:</p>
* <ul>
* <li>success: If the call is successful, <strong>success</strong> is returned.</li>
* <li>An error code: If the call fails, an error code is returned.</li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the details of the Secret instance are successfully queried. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The information was queried.</li>
* <li><strong>false</strong>: The image failed to be found.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeSecretResponseBody build() {
return new DescribeSecretResponseBody(this);
}
}
/**
*
* {@link DescribeSecretResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecretResponseBody</p>
*/
public static class RelateApps extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
private RelateApps(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
}
public static Builder builder() {
return new Builder();
}
public static RelateApps create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
public static final class Builder {
private String appId;
private String appName;
private Builder() {
}
private Builder(RelateApps model) {
this.appId = model.appId;
this.appName = model.appName;
}
/**
* <p>The application ID.</p>
*
* <strong>example:</strong>
* <p>f16b4000-9058-4c22-a49d-49a28f0b****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>test-app</p>
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
public RelateApps build() {
return new RelateApps(this);
}
}
}
/**
*
* {@link DescribeSecretResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecretResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.NameInMap("RelateApps")
private java.util.List<RelateApps> relateApps;
@com.aliyun.core.annotation.NameInMap("SecretData")
private java.util.Map<String, String> secretData;
@com.aliyun.core.annotation.NameInMap("SecretId")
private Long secretId;
@com.aliyun.core.annotation.NameInMap("SecretName")
private String secretName;
@com.aliyun.core.annotation.NameInMap("SecretType")
private String secretType;
@com.aliyun.core.annotation.NameInMap("UpdateTime")
private Long updateTime;
private Data(Builder builder) {
this.createTime = builder.createTime;
this.namespaceId = builder.namespaceId;
this.relateApps = builder.relateApps;
this.secretData = builder.secretData;
this.secretId = builder.secretId;
this.secretName = builder.secretName;
this.secretType = builder.secretType;
this.updateTime = builder.updateTime;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return relateApps
*/
public java.util.List<RelateApps> getRelateApps() {
return this.relateApps;
}
/**
* @return secretData
*/
public java.util.Map<String, String> getSecretData() {
return this.secretData;
}
/**
* @return secretId
*/
public Long getSecretId() {
return this.secretId;
}
/**
* @return secretName
*/
public String getSecretName() {
return this.secretName;
}
/**
* @return secretType
*/
public String getSecretType() {
return this.secretType;
}
/**
* @return updateTime
*/
public Long getUpdateTime() {
return this.updateTime;
}
public static final class Builder {
private Long createTime;
private String namespaceId;
private java.util.List<RelateApps> relateApps;
private java.util.Map<String, String> secretData;
private Long secretId;
private String secretName;
private String secretType;
private Long updateTime;
private Builder() {
}
private Builder(Data model) {
this.createTime = model.createTime;
this.namespaceId = model.namespaceId;
this.relateApps = model.relateApps;
this.secretData = model.secretData;
this.secretId = model.secretId;
this.secretName = model.secretName;
this.secretType = model.secretType;
this.updateTime = model.updateTime;
}
/**
* <p>The time when the task was created.</p>
*
* <strong>example:</strong>
* <p>1593746835111</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The associated application.</p>
*/
public Builder relateApps(java.util.List<RelateApps> relateApps) {
this.relateApps = relateApps;
return this;
}
/**
* <p>Secret key-value pair data.</p>
*/
public Builder secretData(java.util.Map<String, String> secretData) {
this.secretData = secretData;
return this;
}
/**
* <p>The ID of the Secret instance.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder secretId(Long secretId) {
this.secretId = secretId;
return this;
}
/**
* <p>The name of the Secret instance.</p>
*
* <strong>example:</strong>
* <p>registry-auth</p>
*/
public Builder secretName(String secretName) {
this.secretName = secretName;
return this;
}
/**
* <p>The type of the Secret instance.</p>
*
* <strong>example:</strong>
* <p>kubernetes.io/dockerconfigjson</p>
*/
public Builder secretType(String secretType) {
this.secretType = secretType;
return this;
}
/**
* <p>The time when the task was updated.</p>
*
* <strong>example:</strong>
* <p>1593746835111</p>
*/
public Builder updateTime(Long updateTime) {
this.updateTime = updateTime;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSwimmingLaneRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSwimmingLaneRequest} extends {@link RequestModel}
*
* <p>DescribeSwimmingLaneRequest</p>
*/
public class DescribeSwimmingLaneRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LaneId")
private Long laneId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
private DescribeSwimmingLaneRequest(Builder builder) {
super(builder);
this.groupId = builder.groupId;
this.laneId = builder.laneId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSwimmingLaneRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return laneId
*/
public Long getLaneId() {
return this.laneId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeSwimmingLaneRequest, Builder> {
private Long groupId;
private Long laneId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeSwimmingLaneRequest request) {
super(request);
this.groupId = request.groupId;
this.laneId = request.laneId;
this.namespaceId = request.namespaceId;
}
/**
* GroupId.
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* LaneId.
*/
public Builder laneId(Long laneId) {
this.putQueryParameter("LaneId", laneId);
this.laneId = laneId;
return this;
}
/**
* NamespaceId.
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeSwimmingLaneRequest build() {
return new DescribeSwimmingLaneRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSwimmingLaneResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSwimmingLaneResponse} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponse</p>
*/
public class DescribeSwimmingLaneResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSwimmingLaneResponseBody body;
private DescribeSwimmingLaneResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSwimmingLaneResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSwimmingLaneResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSwimmingLaneResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSwimmingLaneResponseBody body);
@Override
DescribeSwimmingLaneResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSwimmingLaneResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSwimmingLaneResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSwimmingLaneResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSwimmingLaneResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSwimmingLaneResponse build() {
return new DescribeSwimmingLaneResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeSwimmingLaneResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public class DescribeSwimmingLaneResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("TraceId")
private String traceId;
private DescribeSwimmingLaneResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.errorCode = builder.errorCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
this.traceId = builder.traceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSwimmingLaneResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return traceId
*/
public String getTraceId() {
return this.traceId;
}
public static final class Builder {
private String code;
private Data data;
private String errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DescribeSwimmingLaneResponseBody model) {
this.code = model.code;
this.data = model.data;
this.errorCode = model.errorCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
this.traceId = model.traceId;
}
/**
* Code.
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* Data.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* ErrorCode.
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Message.
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Success.
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* TraceId.
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeSwimmingLaneResponseBody build() {
return new DescribeSwimmingLaneResponseBody(this);
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class Conditions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
@com.aliyun.core.annotation.NameInMap("Values")
private java.util.List<String> values;
private Conditions(Builder builder) {
this.condition = builder.condition;
this.name = builder.name;
this.type = builder.type;
this.value = builder.value;
this.values = builder.values;
}
public static Builder builder() {
return new Builder();
}
public static Conditions create() {
return builder().build();
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
/**
* @return values
*/
public java.util.List<String> getValues() {
return this.values;
}
public static final class Builder {
private String condition;
private String name;
private String type;
private String value;
private java.util.List<String> values;
private Builder() {
}
private Builder(Conditions model) {
this.condition = model.condition;
this.name = model.name;
this.type = model.type;
this.value = model.value;
this.values = model.values;
}
/**
* Condition.
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
/**
* Values.
*/
public Builder values(java.util.List<String> values) {
this.values = values;
return this;
}
public Conditions build() {
return new Conditions(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class AppEntryRule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConditionJoiner")
private String conditionJoiner;
@com.aliyun.core.annotation.NameInMap("Conditions")
private java.util.List<Conditions> conditions;
@com.aliyun.core.annotation.NameInMap("IndependentPercentageEnable")
private Boolean independentPercentageEnable;
@com.aliyun.core.annotation.NameInMap("Paths")
private java.util.List<String> paths;
@com.aliyun.core.annotation.NameInMap("Percentage")
private Integer percentage;
@com.aliyun.core.annotation.NameInMap("PercentageByPath")
private java.util.Map<String, Integer> percentageByPath;
private AppEntryRule(Builder builder) {
this.conditionJoiner = builder.conditionJoiner;
this.conditions = builder.conditions;
this.independentPercentageEnable = builder.independentPercentageEnable;
this.paths = builder.paths;
this.percentage = builder.percentage;
this.percentageByPath = builder.percentageByPath;
}
public static Builder builder() {
return new Builder();
}
public static AppEntryRule create() {
return builder().build();
}
/**
* @return conditionJoiner
*/
public String getConditionJoiner() {
return this.conditionJoiner;
}
/**
* @return conditions
*/
public java.util.List<Conditions> getConditions() {
return this.conditions;
}
/**
* @return independentPercentageEnable
*/
public Boolean getIndependentPercentageEnable() {
return this.independentPercentageEnable;
}
/**
* @return paths
*/
public java.util.List<String> getPaths() {
return this.paths;
}
/**
* @return percentage
*/
public Integer getPercentage() {
return this.percentage;
}
/**
* @return percentageByPath
*/
public java.util.Map<String, Integer> getPercentageByPath() {
return this.percentageByPath;
}
public static final class Builder {
private String conditionJoiner;
private java.util.List<Conditions> conditions;
private Boolean independentPercentageEnable;
private java.util.List<String> paths;
private Integer percentage;
private java.util.Map<String, Integer> percentageByPath;
private Builder() {
}
private Builder(AppEntryRule model) {
this.conditionJoiner = model.conditionJoiner;
this.conditions = model.conditions;
this.independentPercentageEnable = model.independentPercentageEnable;
this.paths = model.paths;
this.percentage = model.percentage;
this.percentageByPath = model.percentageByPath;
}
/**
* ConditionJoiner.
*/
public Builder conditionJoiner(String conditionJoiner) {
this.conditionJoiner = conditionJoiner;
return this;
}
/**
* Conditions.
*/
public Builder conditions(java.util.List<Conditions> conditions) {
this.conditions = conditions;
return this;
}
/**
* IndependentPercentageEnable.
*/
public Builder independentPercentageEnable(Boolean independentPercentageEnable) {
this.independentPercentageEnable = independentPercentageEnable;
return this;
}
/**
* Paths.
*/
public Builder paths(java.util.List<String> paths) {
this.paths = paths;
return this;
}
/**
* Percentage.
*/
public Builder percentage(Integer percentage) {
this.percentage = percentage;
return this;
}
/**
* PercentageByPath.
*/
public Builder percentageByPath(java.util.Map<String, Integer> percentageByPath) {
this.percentageByPath = percentageByPath;
return this;
}
public AppEntryRule build() {
return new AppEntryRule(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class Apps extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("AppName")
private String appName;
@com.aliyun.core.annotation.NameInMap("MseAppId")
private String mseAppId;
@com.aliyun.core.annotation.NameInMap("MseAppName")
private String mseAppName;
@com.aliyun.core.annotation.NameInMap("mseNamespaceId")
private String mseNamespaceId;
private Apps(Builder builder) {
this.appId = builder.appId;
this.appName = builder.appName;
this.mseAppId = builder.mseAppId;
this.mseAppName = builder.mseAppName;
this.mseNamespaceId = builder.mseNamespaceId;
}
public static Builder builder() {
return new Builder();
}
public static Apps create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return mseAppId
*/
public String getMseAppId() {
return this.mseAppId;
}
/**
* @return mseAppName
*/
public String getMseAppName() {
return this.mseAppName;
}
/**
* @return mseNamespaceId
*/
public String getMseNamespaceId() {
return this.mseNamespaceId;
}
public static final class Builder {
private String appId;
private String appName;
private String mseAppId;
private String mseAppName;
private String mseNamespaceId;
private Builder() {
}
private Builder(Apps model) {
this.appId = model.appId;
this.appName = model.appName;
this.mseAppId = model.mseAppId;
this.mseAppName = model.mseAppName;
this.mseNamespaceId = model.mseNamespaceId;
}
/**
* AppId.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* AppName.
*/
public Builder appName(String appName) {
this.appName = appName;
return this;
}
/**
* MseAppId.
*/
public Builder mseAppId(String mseAppId) {
this.mseAppId = mseAppId;
return this;
}
/**
* MseAppName.
*/
public Builder mseAppName(String mseAppName) {
this.mseAppName = mseAppName;
return this;
}
/**
* mseNamespaceId.
*/
public Builder mseNamespaceId(String mseNamespaceId) {
this.mseNamespaceId = mseNamespaceId;
return this;
}
public Apps build() {
return new Apps(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class MseGatewayEntryRuleConditions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Condition")
private String condition;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private MseGatewayEntryRuleConditions(Builder builder) {
this.condition = builder.condition;
this.name = builder.name;
this.type = builder.type;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static MseGatewayEntryRuleConditions create() {
return builder().build();
}
/**
* @return condition
*/
public String getCondition() {
return this.condition;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String condition;
private String name;
private String type;
private String value;
private Builder() {
}
private Builder(MseGatewayEntryRuleConditions model) {
this.condition = model.condition;
this.name = model.name;
this.type = model.type;
this.value = model.value;
}
/**
* Condition.
*/
public Builder condition(String condition) {
this.condition = condition;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.name = name;
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 MseGatewayEntryRuleConditions build() {
return new MseGatewayEntryRuleConditions(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class PathPredicate extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private PathPredicate(Builder builder) {
this.path = builder.path;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static PathPredicate create() {
return builder().build();
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String path;
private String type;
private Builder() {
}
private Builder(PathPredicate model) {
this.path = model.path;
this.type = model.type;
}
/**
* Path.
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.type = type;
return this;
}
public PathPredicate build() {
return new PathPredicate(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class RoutePredicate extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PathPredicate")
private PathPredicate pathPredicate;
private RoutePredicate(Builder builder) {
this.pathPredicate = builder.pathPredicate;
}
public static Builder builder() {
return new Builder();
}
public static RoutePredicate create() {
return builder().build();
}
/**
* @return pathPredicate
*/
public PathPredicate getPathPredicate() {
return this.pathPredicate;
}
public static final class Builder {
private PathPredicate pathPredicate;
private Builder() {
}
private Builder(RoutePredicate model) {
this.pathPredicate = model.pathPredicate;
}
/**
* PathPredicate.
*/
public Builder pathPredicate(PathPredicate pathPredicate) {
this.pathPredicate = pathPredicate;
return this;
}
public RoutePredicate build() {
return new RoutePredicate(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class Routes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RouteId")
private Long routeId;
@com.aliyun.core.annotation.NameInMap("RouteName")
private String routeName;
@com.aliyun.core.annotation.NameInMap("RoutePredicate")
private RoutePredicate routePredicate;
private Routes(Builder builder) {
this.routeId = builder.routeId;
this.routeName = builder.routeName;
this.routePredicate = builder.routePredicate;
}
public static Builder builder() {
return new Builder();
}
public static Routes create() {
return builder().build();
}
/**
* @return routeId
*/
public Long getRouteId() {
return this.routeId;
}
/**
* @return routeName
*/
public String getRouteName() {
return this.routeName;
}
/**
* @return routePredicate
*/
public RoutePredicate getRoutePredicate() {
return this.routePredicate;
}
public static final class Builder {
private Long routeId;
private String routeName;
private RoutePredicate routePredicate;
private Builder() {
}
private Builder(Routes model) {
this.routeId = model.routeId;
this.routeName = model.routeName;
this.routePredicate = model.routePredicate;
}
/**
* RouteId.
*/
public Builder routeId(Long routeId) {
this.routeId = routeId;
return this;
}
/**
* RouteName.
*/
public Builder routeName(String routeName) {
this.routeName = routeName;
return this;
}
/**
* RoutePredicate.
*/
public Builder routePredicate(RoutePredicate routePredicate) {
this.routePredicate = routePredicate;
return this;
}
public Routes build() {
return new Routes(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class MseGatewayEntryRule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConditionJoiner")
private String conditionJoiner;
@com.aliyun.core.annotation.NameInMap("Conditions")
private java.util.List<MseGatewayEntryRuleConditions> conditions;
@com.aliyun.core.annotation.NameInMap("IndependentPercentageEnable")
private Boolean independentPercentageEnable;
@com.aliyun.core.annotation.NameInMap("Percentage")
private Integer percentage;
@com.aliyun.core.annotation.NameInMap("PercentageByRoute")
private java.util.Map<String, Integer> percentageByRoute;
@com.aliyun.core.annotation.NameInMap("RouteIds")
private java.util.List<Long> routeIds;
@com.aliyun.core.annotation.NameInMap("Routes")
private java.util.List<Routes> routes;
private MseGatewayEntryRule(Builder builder) {
this.conditionJoiner = builder.conditionJoiner;
this.conditions = builder.conditions;
this.independentPercentageEnable = builder.independentPercentageEnable;
this.percentage = builder.percentage;
this.percentageByRoute = builder.percentageByRoute;
this.routeIds = builder.routeIds;
this.routes = builder.routes;
}
public static Builder builder() {
return new Builder();
}
public static MseGatewayEntryRule create() {
return builder().build();
}
/**
* @return conditionJoiner
*/
public String getConditionJoiner() {
return this.conditionJoiner;
}
/**
* @return conditions
*/
public java.util.List<MseGatewayEntryRuleConditions> getConditions() {
return this.conditions;
}
/**
* @return independentPercentageEnable
*/
public Boolean getIndependentPercentageEnable() {
return this.independentPercentageEnable;
}
/**
* @return percentage
*/
public Integer getPercentage() {
return this.percentage;
}
/**
* @return percentageByRoute
*/
public java.util.Map<String, Integer> getPercentageByRoute() {
return this.percentageByRoute;
}
/**
* @return routeIds
*/
public java.util.List<Long> getRouteIds() {
return this.routeIds;
}
/**
* @return routes
*/
public java.util.List<Routes> getRoutes() {
return this.routes;
}
public static final class Builder {
private String conditionJoiner;
private java.util.List<MseGatewayEntryRuleConditions> conditions;
private Boolean independentPercentageEnable;
private Integer percentage;
private java.util.Map<String, Integer> percentageByRoute;
private java.util.List<Long> routeIds;
private java.util.List<Routes> routes;
private Builder() {
}
private Builder(MseGatewayEntryRule model) {
this.conditionJoiner = model.conditionJoiner;
this.conditions = model.conditions;
this.independentPercentageEnable = model.independentPercentageEnable;
this.percentage = model.percentage;
this.percentageByRoute = model.percentageByRoute;
this.routeIds = model.routeIds;
this.routes = model.routes;
}
/**
* ConditionJoiner.
*/
public Builder conditionJoiner(String conditionJoiner) {
this.conditionJoiner = conditionJoiner;
return this;
}
/**
* Conditions.
*/
public Builder conditions(java.util.List<MseGatewayEntryRuleConditions> conditions) {
this.conditions = conditions;
return this;
}
/**
* IndependentPercentageEnable.
*/
public Builder independentPercentageEnable(Boolean independentPercentageEnable) {
this.independentPercentageEnable = independentPercentageEnable;
return this;
}
/**
* Percentage.
*/
public Builder percentage(Integer percentage) {
this.percentage = percentage;
return this;
}
/**
* PercentageByRoute.
*/
public Builder percentageByRoute(java.util.Map<String, Integer> percentageByRoute) {
this.percentageByRoute = percentageByRoute;
return this;
}
/**
* RouteIds.
*/
public Builder routeIds(java.util.List<Long> routeIds) {
this.routeIds = routeIds;
return this;
}
/**
* Routes.
*/
public Builder routes(java.util.List<Routes> routes) {
this.routes = routes;
return this;
}
public MseGatewayEntryRule build() {
return new MseGatewayEntryRule(this);
}
}
}
/**
*
* {@link DescribeSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>DescribeSwimmingLaneResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppEntryRule")
private AppEntryRule appEntryRule;
@com.aliyun.core.annotation.NameInMap("Apps")
private java.util.List<Apps> apps;
@com.aliyun.core.annotation.NameInMap("CanaryModel")
private Integer canaryModel;
@com.aliyun.core.annotation.NameInMap("Enable")
private Boolean enable;
@com.aliyun.core.annotation.NameInMap("EnableRules")
private Boolean enableRules;
@com.aliyun.core.annotation.NameInMap("LaneId")
private Long laneId;
@com.aliyun.core.annotation.NameInMap("LaneName")
private String laneName;
@com.aliyun.core.annotation.NameInMap("LaneTag")
private String laneTag;
@com.aliyun.core.annotation.NameInMap("MseGatewayEntryRule")
private MseGatewayEntryRule mseGatewayEntryRule;
private Data(Builder builder) {
this.appEntryRule = builder.appEntryRule;
this.apps = builder.apps;
this.canaryModel = builder.canaryModel;
this.enable = builder.enable;
this.enableRules = builder.enableRules;
this.laneId = builder.laneId;
this.laneName = builder.laneName;
this.laneTag = builder.laneTag;
this.mseGatewayEntryRule = builder.mseGatewayEntryRule;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appEntryRule
*/
public AppEntryRule getAppEntryRule() {
return this.appEntryRule;
}
/**
* @return apps
*/
public java.util.List<Apps> getApps() {
return this.apps;
}
/**
* @return canaryModel
*/
public Integer getCanaryModel() {
return this.canaryModel;
}
/**
* @return enable
*/
public Boolean getEnable() {
return this.enable;
}
/**
* @return enableRules
*/
public Boolean getEnableRules() {
return this.enableRules;
}
/**
* @return laneId
*/
public Long getLaneId() {
return this.laneId;
}
/**
* @return laneName
*/
public String getLaneName() {
return this.laneName;
}
/**
* @return laneTag
*/
public String getLaneTag() {
return this.laneTag;
}
/**
* @return mseGatewayEntryRule
*/
public MseGatewayEntryRule getMseGatewayEntryRule() {
return this.mseGatewayEntryRule;
}
public static final class Builder {
private AppEntryRule appEntryRule;
private java.util.List<Apps> apps;
private Integer canaryModel;
private Boolean enable;
private Boolean enableRules;
private Long laneId;
private String laneName;
private String laneTag;
private MseGatewayEntryRule mseGatewayEntryRule;
private Builder() {
}
private Builder(Data model) {
this.appEntryRule = model.appEntryRule;
this.apps = model.apps;
this.canaryModel = model.canaryModel;
this.enable = model.enable;
this.enableRules = model.enableRules;
this.laneId = model.laneId;
this.laneName = model.laneName;
this.laneTag = model.laneTag;
this.mseGatewayEntryRule = model.mseGatewayEntryRule;
}
/**
* AppEntryRule.
*/
public Builder appEntryRule(AppEntryRule appEntryRule) {
this.appEntryRule = appEntryRule;
return this;
}
/**
* Apps.
*/
public Builder apps(java.util.List<Apps> apps) {
this.apps = apps;
return this;
}
/**
* CanaryModel.
*/
public Builder canaryModel(Integer canaryModel) {
this.canaryModel = canaryModel;
return this;
}
/**
* Enable.
*/
public Builder enable(Boolean enable) {
this.enable = enable;
return this;
}
/**
* EnableRules.
*/
public Builder enableRules(Boolean enableRules) {
this.enableRules = enableRules;
return this;
}
/**
* LaneId.
*/
public Builder laneId(Long laneId) {
this.laneId = laneId;
return this;
}
/**
* LaneName.
*/
public Builder laneName(String laneName) {
this.laneName = laneName;
return this;
}
/**
* LaneTag.
*/
public Builder laneTag(String laneTag) {
this.laneTag = laneTag;
return this;
}
/**
* MseGatewayEntryRule.
*/
public Builder mseGatewayEntryRule(MseGatewayEntryRule mseGatewayEntryRule) {
this.mseGatewayEntryRule = mseGatewayEntryRule;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebAppStaticsOutput.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebAppStaticsOutput} extends {@link TeaModel}
*
* <p>DescribeWebAppStaticsOutput</p>
*/
public class DescribeWebAppStaticsOutput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Length")
private Integer length;
@com.aliyun.core.annotation.NameInMap("WebAppStatics")
private java.util.List<WebStaticsInfo> webAppStatics;
private DescribeWebAppStaticsOutput(Builder builder) {
this.length = builder.length;
this.webAppStatics = builder.webAppStatics;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebAppStaticsOutput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return length
*/
public Integer getLength() {
return this.length;
}
/**
* @return webAppStatics
*/
public java.util.List<WebStaticsInfo> getWebAppStatics() {
return this.webAppStatics;
}
public static final class Builder {
private Integer length;
private java.util.List<WebStaticsInfo> webAppStatics;
private Builder() {
}
private Builder(DescribeWebAppStaticsOutput model) {
this.length = model.length;
this.webAppStatics = model.webAppStatics;
}
/**
* Length.
*/
public Builder length(Integer length) {
this.length = length;
return this;
}
/**
* WebAppStatics.
*/
public Builder webAppStatics(java.util.List<WebStaticsInfo> webAppStatics) {
this.webAppStatics = webAppStatics;
return this;
}
public DescribeWebAppStaticsOutput build() {
return new DescribeWebAppStaticsOutput(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationRequest} extends {@link RequestModel}
*
* <p>DescribeWebApplicationRequest</p>
*/
public class DescribeWebApplicationRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ApplicationId")
@com.aliyun.core.annotation.Validation(required = true)
private String applicationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private DescribeWebApplicationRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebApplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeWebApplicationRequest, Builder> {
private String applicationId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeWebApplicationRequest request) {
super(request);
this.applicationId = request.applicationId;
this.namespaceId = request.namespaceId;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0099b7be-5f5b-4512-a7fc-56049ef1****</p>
*/
public Builder applicationId(String applicationId) {
this.putPathParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeWebApplicationRequest build() {
return new DescribeWebApplicationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationResourceStaticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationResourceStaticsRequest} extends {@link RequestModel}
*
* <p>DescribeWebApplicationResourceStaticsRequest</p>
*/
public class DescribeWebApplicationResourceStaticsRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ApplicationId")
@com.aliyun.core.annotation.Validation(required = true)
private String applicationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private Long startTime;
private DescribeWebApplicationResourceStaticsRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.endTime = builder.endTime;
this.namespaceId = builder.namespaceId;
this.regionId = builder.regionId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebApplicationResourceStaticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeWebApplicationResourceStaticsRequest, Builder> {
private String applicationId;
private Long endTime;
private String namespaceId;
private String regionId;
private Long startTime;
private Builder() {
super();
}
private Builder(DescribeWebApplicationResourceStaticsRequest request) {
super(request);
this.applicationId = request.applicationId;
this.endTime = request.endTime;
this.namespaceId = request.namespaceId;
this.regionId = request.regionId;
this.startTime = request.startTime;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7e41aff0-9eca-45c9-ac48-675e09******</p>
*/
public Builder applicationId(String applicationId) {
this.putPathParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* <p>The end of the time range during which data was queried.</p>
*
* <strong>example:</strong>
* <p>1687832980387</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The time when the task was created.</p>
*
* <strong>example:</strong>
* <p>1562831689704</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeWebApplicationResourceStaticsRequest build() {
return new DescribeWebApplicationResourceStaticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationResourceStaticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationResourceStaticsResponse} extends {@link TeaModel}
*
* <p>DescribeWebApplicationResourceStaticsResponse</p>
*/
public class DescribeWebApplicationResourceStaticsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private WebApplicationResourceStaticsBody body;
private DescribeWebApplicationResourceStaticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWebApplicationResourceStaticsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public WebApplicationResourceStaticsBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWebApplicationResourceStaticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationResourceStaticsBody body);
@Override
DescribeWebApplicationResourceStaticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWebApplicationResourceStaticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationResourceStaticsBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWebApplicationResourceStaticsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(WebApplicationResourceStaticsBody body) {
this.body = body;
return this;
}
@Override
public DescribeWebApplicationResourceStaticsResponse build() {
return new DescribeWebApplicationResourceStaticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationResponse} extends {@link TeaModel}
*
* <p>DescribeWebApplicationResponse</p>
*/
public class DescribeWebApplicationResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private WebApplicationBody body;
private DescribeWebApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWebApplicationResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public WebApplicationBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWebApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationBody body);
@Override
DescribeWebApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWebApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWebApplicationResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(WebApplicationBody body) {
this.body = body;
return this;
}
@Override
public DescribeWebApplicationResponse build() {
return new DescribeWebApplicationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationRevisionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationRevisionRequest} extends {@link RequestModel}
*
* <p>DescribeWebApplicationRevisionRequest</p>
*/
public class DescribeWebApplicationRevisionRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ApplicationId")
@com.aliyun.core.annotation.Validation(required = true)
private String applicationId;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("RevisionId")
@com.aliyun.core.annotation.Validation(required = true)
private String revisionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private DescribeWebApplicationRevisionRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.revisionId = builder.revisionId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebApplicationRevisionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return revisionId
*/
public String getRevisionId() {
return this.revisionId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeWebApplicationRevisionRequest, Builder> {
private String applicationId;
private String revisionId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeWebApplicationRevisionRequest request) {
super(request);
this.applicationId = request.applicationId;
this.revisionId = request.revisionId;
this.namespaceId = request.namespaceId;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7e41aff0-9eca-45c9-ac48-675e09******</p>
*/
public Builder applicationId(String applicationId) {
this.putPathParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* <p>The revision ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>001</p>
*/
public Builder revisionId(String revisionId) {
this.putPathParameter("RevisionId", revisionId);
this.revisionId = revisionId;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeWebApplicationRevisionRequest build() {
return new DescribeWebApplicationRevisionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationRevisionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationRevisionResponse} extends {@link TeaModel}
*
* <p>DescribeWebApplicationRevisionResponse</p>
*/
public class DescribeWebApplicationRevisionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private WebApplicationRevisionBody body;
private DescribeWebApplicationRevisionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWebApplicationRevisionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public WebApplicationRevisionBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWebApplicationRevisionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationRevisionBody body);
@Override
DescribeWebApplicationRevisionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWebApplicationRevisionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationRevisionBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWebApplicationRevisionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(WebApplicationRevisionBody body) {
this.body = body;
return this;
}
@Override
public DescribeWebApplicationRevisionResponse build() {
return new DescribeWebApplicationRevisionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationScalingConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationScalingConfigRequest} extends {@link RequestModel}
*
* <p>DescribeWebApplicationScalingConfigRequest</p>
*/
public class DescribeWebApplicationScalingConfigRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ApplicationId")
@com.aliyun.core.annotation.Validation(required = true)
private String applicationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private DescribeWebApplicationScalingConfigRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebApplicationScalingConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeWebApplicationScalingConfigRequest, Builder> {
private String applicationId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeWebApplicationScalingConfigRequest request) {
super(request);
this.applicationId = request.applicationId;
this.namespaceId = request.namespaceId;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0099b7be-5f5b-4512-a7fc-56049ef1****</p>
*/
public Builder applicationId(String applicationId) {
this.putPathParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:sae-test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeWebApplicationScalingConfigRequest build() {
return new DescribeWebApplicationScalingConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationScalingConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationScalingConfigResponse} extends {@link TeaModel}
*
* <p>DescribeWebApplicationScalingConfigResponse</p>
*/
public class DescribeWebApplicationScalingConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private WebApplicationScalingConfigBody body;
private DescribeWebApplicationScalingConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWebApplicationScalingConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public WebApplicationScalingConfigBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWebApplicationScalingConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationScalingConfigBody body);
@Override
DescribeWebApplicationScalingConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWebApplicationScalingConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationScalingConfigBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWebApplicationScalingConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(WebApplicationScalingConfigBody body) {
this.body = body;
return this;
}
@Override
public DescribeWebApplicationScalingConfigResponse build() {
return new DescribeWebApplicationScalingConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationTrafficConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationTrafficConfigRequest} extends {@link RequestModel}
*
* <p>DescribeWebApplicationTrafficConfigRequest</p>
*/
public class DescribeWebApplicationTrafficConfigRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ApplicationId")
@com.aliyun.core.annotation.Validation(required = true)
private String applicationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private DescribeWebApplicationTrafficConfigRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebApplicationTrafficConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeWebApplicationTrafficConfigRequest, Builder> {
private String applicationId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeWebApplicationTrafficConfigRequest request) {
super(request);
this.applicationId = request.applicationId;
this.namespaceId = request.namespaceId;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0099b7be-5f5b-4512-a7fc-56049ef1****</p>
*/
public Builder applicationId(String applicationId) {
this.putPathParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeWebApplicationTrafficConfigRequest build() {
return new DescribeWebApplicationTrafficConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebApplicationTrafficConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebApplicationTrafficConfigResponse} extends {@link TeaModel}
*
* <p>DescribeWebApplicationTrafficConfigResponse</p>
*/
public class DescribeWebApplicationTrafficConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private WebApplicationTrafficConfigBody body;
private DescribeWebApplicationTrafficConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWebApplicationTrafficConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public WebApplicationTrafficConfigBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWebApplicationTrafficConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationTrafficConfigBody body);
@Override
DescribeWebApplicationTrafficConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWebApplicationTrafficConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationTrafficConfigBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWebApplicationTrafficConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(WebApplicationTrafficConfigBody body) {
this.body = body;
return this;
}
@Override
public DescribeWebApplicationTrafficConfigResponse build() {
return new DescribeWebApplicationTrafficConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506 | java-sources/com/aliyun/alibabacloud-sae20190506/2.0.16/com/aliyun/sdk/service/sae20190506/models/DescribeWebCustomDomainRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sae20190506.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 DescribeWebCustomDomainRequest} extends {@link RequestModel}
*
* <p>DescribeWebCustomDomainRequest</p>
*/
public class DescribeWebCustomDomainRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private DescribeWebCustomDomainRequest(Builder builder) {
super(builder);
this.domainName = builder.domainName;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWebCustomDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DescribeWebCustomDomainRequest, Builder> {
private String domainName;
private String namespaceId;
private Builder() {
super();
}
private Builder(DescribeWebCustomDomainRequest request) {
super(request);
this.domainName = request.domainName;
this.namespaceId = request.namespaceId;
}
/**
* <p>The custom domain name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.putPathParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
/**
* <p>The namespace ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DescribeWebCustomDomainRequest build() {
return new DescribeWebCustomDomainRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.