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/CertConfig.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 CertConfig} extends {@link TeaModel}
*
* <p>CertConfig</p>
*/
public class CertConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("certName")
@com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 1)
private String certName;
@com.aliyun.core.annotation.NameInMap("certificate")
@com.aliyun.core.annotation.Validation(maxLength = 20480)
private String certificate;
@com.aliyun.core.annotation.NameInMap("privateKey")
@com.aliyun.core.annotation.Validation(maxLength = 4096)
private String privateKey;
private CertConfig(Builder builder) {
this.certName = builder.certName;
this.certificate = builder.certificate;
this.privateKey = builder.privateKey;
}
public static Builder builder() {
return new Builder();
}
public static CertConfig create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return certName
*/
public String getCertName() {
return this.certName;
}
/**
* @return certificate
*/
public String getCertificate() {
return this.certificate;
}
/**
* @return privateKey
*/
public String getPrivateKey() {
return this.privateKey;
}
public static final class Builder {
private String certName;
private String certificate;
private String privateKey;
private Builder() {
}
private Builder(CertConfig model) {
this.certName = model.certName;
this.certificate = model.certificate;
this.privateKey = model.privateKey;
}
/**
* certName.
*/
public Builder certName(String certName) {
this.certName = certName;
return this;
}
/**
* certificate.
*/
public Builder certificate(String certificate) {
this.certificate = certificate;
return this;
}
/**
* privateKey.
*/
public Builder privateKey(String privateKey) {
this.privateKey = privateKey;
return this;
}
public CertConfig build() {
return new CertConfig(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/ConfirmPipelineBatchRequest.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 ConfirmPipelineBatchRequest} extends {@link RequestModel}
*
* <p>ConfirmPipelineBatchRequest</p>
*/
public class ConfirmPipelineBatchRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Confirm")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean confirm;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PipelineId")
@com.aliyun.core.annotation.Validation(required = true)
private String pipelineId;
private ConfirmPipelineBatchRequest(Builder builder) {
super(builder);
this.confirm = builder.confirm;
this.pipelineId = builder.pipelineId;
}
public static Builder builder() {
return new Builder();
}
public static ConfirmPipelineBatchRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return confirm
*/
public Boolean getConfirm() {
return this.confirm;
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
public static final class Builder extends Request.Builder<ConfirmPipelineBatchRequest, Builder> {
private Boolean confirm;
private String pipelineId;
private Builder() {
super();
}
private Builder(ConfirmPipelineBatchRequest request) {
super(request);
this.confirm = request.confirm;
this.pipelineId = request.pipelineId;
}
/**
* <p>true</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder confirm(Boolean confirm) {
this.putQueryParameter("Confirm", confirm);
this.confirm = confirm;
return this;
}
/**
* <p>The ID of the batch. You can call the <a href="https://www.alibabacloud.com/help/zh/sae/serverless-app-engine-classic/developer-reference/api-sae-2019-05-06-describechangeorder-old?spm=a2c63.p38356.help-menu-search-118957.d_0">DescribeChangeOrder</a> operation to obtain the ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>e2e-vds-feh-***</p>
*/
public Builder pipelineId(String pipelineId) {
this.putQueryParameter("PipelineId", pipelineId);
this.pipelineId = pipelineId;
return this;
}
@Override
public ConfirmPipelineBatchRequest build() {
return new ConfirmPipelineBatchRequest(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/ConfirmPipelineBatchResponse.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 ConfirmPipelineBatchResponse} extends {@link TeaModel}
*
* <p>ConfirmPipelineBatchResponse</p>
*/
public class ConfirmPipelineBatchResponse 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 ConfirmPipelineBatchResponseBody body;
private ConfirmPipelineBatchResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ConfirmPipelineBatchResponse 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 ConfirmPipelineBatchResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ConfirmPipelineBatchResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ConfirmPipelineBatchResponseBody body);
@Override
ConfirmPipelineBatchResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ConfirmPipelineBatchResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ConfirmPipelineBatchResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ConfirmPipelineBatchResponse 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(ConfirmPipelineBatchResponseBody body) {
this.body = body;
return this;
}
@Override
public ConfirmPipelineBatchResponse build() {
return new ConfirmPipelineBatchResponse(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/ConfirmPipelineBatchResponseBody.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 ConfirmPipelineBatchResponseBody} extends {@link TeaModel}
*
* <p>ConfirmPipelineBatchResponseBody</p>
*/
public class ConfirmPipelineBatchResponseBody 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 ConfirmPipelineBatchResponseBody(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 ConfirmPipelineBatchResponseBody 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(ConfirmPipelineBatchResponseBody 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 batch information.</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 processing of the next batch started as required. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The processing started.</li>
* <li><strong>false</strong>: The processing could not start.</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 ConfirmPipelineBatchResponseBody build() {
return new ConfirmPipelineBatchResponseBody(this);
}
}
/**
*
* {@link ConfirmPipelineBatchResponseBody} extends {@link TeaModel}
*
* <p>ConfirmPipelineBatchResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PipelineId")
private String pipelineId;
private Data(Builder builder) {
this.pipelineId = builder.pipelineId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return pipelineId
*/
public String getPipelineId() {
return this.pipelineId;
}
public static final class Builder {
private String pipelineId;
private Builder() {
}
private Builder(Data model) {
this.pipelineId = model.pipelineId;
}
/**
* <p>The ID of the batch.</p>
*
* <strong>example:</strong>
* <p>e2e-vds-feh-***</p>
*/
public Builder pipelineId(String pipelineId) {
this.pipelineId = pipelineId;
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/Container.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 Container} extends {@link TeaModel}
*
* <p>Container</p>
*/
public class Container extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Args")
private String args;
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.NameInMap("EnvironmentVariables")
private java.util.Map<String, String> environmentVariables;
@com.aliyun.core.annotation.NameInMap("Image")
@com.aliyun.core.annotation.Validation(required = true)
private String image;
@com.aliyun.core.annotation.NameInMap("ImageRegistryConfig")
private ImageRegistryConfig imageRegistryConfig;
@com.aliyun.core.annotation.NameInMap("MetricsCollectConfig")
private MetricsCollectConfig metricsCollectConfig;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("RequestConcurrency")
private Integer requestConcurrency;
@com.aliyun.core.annotation.NameInMap("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.NameInMap("Resources")
@com.aliyun.core.annotation.Validation(required = true)
private ContainerResources resources;
@com.aliyun.core.annotation.NameInMap("SLSCollectConfigs")
private SLSCollectConfigs SLSCollectConfigs;
@com.aliyun.core.annotation.NameInMap("StartupProbe")
private StartupProbe startupProbe;
@com.aliyun.core.annotation.NameInMap("WebNASConfig")
private WebNASConfig webNASConfig;
@com.aliyun.core.annotation.NameInMap("WebOSSConfig")
private WebOSSConfig webOSSConfig;
private Container(Builder builder) {
this.args = builder.args;
this.command = builder.command;
this.environmentVariables = builder.environmentVariables;
this.image = builder.image;
this.imageRegistryConfig = builder.imageRegistryConfig;
this.metricsCollectConfig = builder.metricsCollectConfig;
this.port = builder.port;
this.requestConcurrency = builder.requestConcurrency;
this.requestTimeout = builder.requestTimeout;
this.resources = builder.resources;
this.SLSCollectConfigs = builder.SLSCollectConfigs;
this.startupProbe = builder.startupProbe;
this.webNASConfig = builder.webNASConfig;
this.webOSSConfig = builder.webOSSConfig;
}
public static Builder builder() {
return new Builder();
}
public static Container create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return args
*/
public String getArgs() {
return this.args;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return environmentVariables
*/
public java.util.Map<String, String> getEnvironmentVariables() {
return this.environmentVariables;
}
/**
* @return image
*/
public String getImage() {
return this.image;
}
/**
* @return imageRegistryConfig
*/
public ImageRegistryConfig getImageRegistryConfig() {
return this.imageRegistryConfig;
}
/**
* @return metricsCollectConfig
*/
public MetricsCollectConfig getMetricsCollectConfig() {
return this.metricsCollectConfig;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return requestConcurrency
*/
public Integer getRequestConcurrency() {
return this.requestConcurrency;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return resources
*/
public ContainerResources getResources() {
return this.resources;
}
/**
* @return SLSCollectConfigs
*/
public SLSCollectConfigs getSLSCollectConfigs() {
return this.SLSCollectConfigs;
}
/**
* @return startupProbe
*/
public StartupProbe getStartupProbe() {
return this.startupProbe;
}
/**
* @return webNASConfig
*/
public WebNASConfig getWebNASConfig() {
return this.webNASConfig;
}
/**
* @return webOSSConfig
*/
public WebOSSConfig getWebOSSConfig() {
return this.webOSSConfig;
}
public static final class Builder {
private String args;
private String command;
private java.util.Map<String, String> environmentVariables;
private String image;
private ImageRegistryConfig imageRegistryConfig;
private MetricsCollectConfig metricsCollectConfig;
private Integer port;
private Integer requestConcurrency;
private Integer requestTimeout;
private ContainerResources resources;
private SLSCollectConfigs SLSCollectConfigs;
private StartupProbe startupProbe;
private WebNASConfig webNASConfig;
private WebOSSConfig webOSSConfig;
private Builder() {
}
private Builder(Container model) {
this.args = model.args;
this.command = model.command;
this.environmentVariables = model.environmentVariables;
this.image = model.image;
this.imageRegistryConfig = model.imageRegistryConfig;
this.metricsCollectConfig = model.metricsCollectConfig;
this.port = model.port;
this.requestConcurrency = model.requestConcurrency;
this.requestTimeout = model.requestTimeout;
this.resources = model.resources;
this.SLSCollectConfigs = model.SLSCollectConfigs;
this.startupProbe = model.startupProbe;
this.webNASConfig = model.webNASConfig;
this.webOSSConfig = model.webOSSConfig;
}
/**
* Args.
*/
public Builder args(String args) {
this.args = args;
return this;
}
/**
* Command.
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* EnvironmentVariables.
*/
public Builder environmentVariables(java.util.Map<String, String> environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>registry.cn-shanghai.aliyuncs.com/serverless_devsxxxxx</p>
*/
public Builder image(String image) {
this.image = image;
return this;
}
/**
* ImageRegistryConfig.
*/
public Builder imageRegistryConfig(ImageRegistryConfig imageRegistryConfig) {
this.imageRegistryConfig = imageRegistryConfig;
return this;
}
/**
* MetricsCollectConfig.
*/
public Builder metricsCollectConfig(MetricsCollectConfig metricsCollectConfig) {
this.metricsCollectConfig = metricsCollectConfig;
return this;
}
/**
* Port.
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* RequestConcurrency.
*/
public Builder requestConcurrency(Integer requestConcurrency) {
this.requestConcurrency = requestConcurrency;
return this;
}
/**
* RequestTimeout.
*/
public Builder requestTimeout(Integer requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder resources(ContainerResources resources) {
this.resources = resources;
return this;
}
/**
* SLSCollectConfigs.
*/
public Builder SLSCollectConfigs(SLSCollectConfigs SLSCollectConfigs) {
this.SLSCollectConfigs = SLSCollectConfigs;
return this;
}
/**
* StartupProbe.
*/
public Builder startupProbe(StartupProbe startupProbe) {
this.startupProbe = startupProbe;
return this;
}
/**
* WebNASConfig.
*/
public Builder webNASConfig(WebNASConfig webNASConfig) {
this.webNASConfig = webNASConfig;
return this;
}
/**
* WebOSSConfig.
*/
public Builder webOSSConfig(WebOSSConfig webOSSConfig) {
this.webOSSConfig = webOSSConfig;
return this;
}
public Container build() {
return new Container(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/ContainerResources.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 ContainerResources} extends {@link TeaModel}
*
* <p>ContainerResources</p>
*/
public class ContainerResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cpu")
@com.aliyun.core.annotation.Validation(required = true)
private Integer cpu;
@com.aliyun.core.annotation.NameInMap("Memory")
@com.aliyun.core.annotation.Validation(required = true)
private Integer memory;
private ContainerResources(Builder builder) {
this.cpu = builder.cpu;
this.memory = builder.memory;
}
public static Builder builder() {
return new Builder();
}
public static ContainerResources create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cpu
*/
public Integer getCpu() {
return this.cpu;
}
/**
* @return memory
*/
public Integer getMemory() {
return this.memory;
}
public static final class Builder {
private Integer cpu;
private Integer memory;
private Builder() {
}
private Builder(ContainerResources model) {
this.cpu = model.cpu;
this.memory = model.memory;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2000</p>
*/
public Builder cpu(Integer cpu) {
this.cpu = cpu;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2048</p>
*/
public Builder memory(Integer memory) {
this.memory = memory;
return this;
}
public ContainerResources build() {
return new ContainerResources(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/CreateApplicationInput.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 CreateApplicationInput} extends {@link TeaModel}
*
* <p>CreateApplicationInput</p>
*/
public class CreateApplicationInput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("applicationName")
@com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 1)
private String applicationName;
@com.aliyun.core.annotation.NameInMap("args")
private String args;
@com.aliyun.core.annotation.NameInMap("caPort")
private Integer caPort;
@com.aliyun.core.annotation.NameInMap("code")
private InputCodeLocation code;
@com.aliyun.core.annotation.NameInMap("command")
private String command;
@com.aliyun.core.annotation.NameInMap("cpu")
private Float cpu;
@com.aliyun.core.annotation.NameInMap("customDNS")
private CustomDNS customDNS;
@com.aliyun.core.annotation.NameInMap("customHealthCheckConfig")
private CustomHealthCheckConfig customHealthCheckConfig;
@com.aliyun.core.annotation.NameInMap("customHostAlias")
private CustomHostAlias customHostAlias;
@com.aliyun.core.annotation.NameInMap("customRuntimeConfig")
private CustomRuntimeConfig customRuntimeConfig;
@com.aliyun.core.annotation.NameInMap("description")
private String description;
@com.aliyun.core.annotation.NameInMap("diskSize")
private Integer diskSize;
@com.aliyun.core.annotation.NameInMap("enableAppMetric")
private Boolean enableAppMetric;
@com.aliyun.core.annotation.NameInMap("environmentVariables")
private java.util.Map<String, String> environmentVariables;
@com.aliyun.core.annotation.NameInMap("gpuMemorySize")
private Integer gpuMemorySize;
@com.aliyun.core.annotation.NameInMap("handler")
@com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 1)
private String handler;
@com.aliyun.core.annotation.NameInMap("httpTriggerConfig")
private HTTPTriggerConfig httpTriggerConfig;
@com.aliyun.core.annotation.NameInMap("imageConfig")
private ImageConfig imageConfig;
@com.aliyun.core.annotation.NameInMap("initializationTimeout")
private Integer initializationTimeout;
@com.aliyun.core.annotation.NameInMap("initializer")
@com.aliyun.core.annotation.Validation(maxLength = 128)
private String initializer;
@com.aliyun.core.annotation.NameInMap("instanceConcurrency")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1)
private Integer instanceConcurrency;
@com.aliyun.core.annotation.NameInMap("instanceLifecycleConfig")
private InstanceLifecycleConfig instanceLifecycleConfig;
@com.aliyun.core.annotation.NameInMap("instanceSoftConcurrency")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 1)
private Integer instanceSoftConcurrency;
@com.aliyun.core.annotation.NameInMap("instanceType")
@com.aliyun.core.annotation.Validation(maxLength = 128)
private String instanceType;
@com.aliyun.core.annotation.NameInMap("internetAccess")
private Boolean internetAccess;
@com.aliyun.core.annotation.NameInMap("layers")
private java.util.List<String> layers;
@com.aliyun.core.annotation.NameInMap("livenessProbe")
private Probe livenessProbe;
@com.aliyun.core.annotation.NameInMap("logConfig")
private LogConfig logConfig;
@com.aliyun.core.annotation.NameInMap("memorySize")
private Integer memorySize;
@com.aliyun.core.annotation.NameInMap("namespaceID")
private String namespaceID;
@com.aliyun.core.annotation.NameInMap("nasConfig")
private NASConfig nasConfig;
@com.aliyun.core.annotation.NameInMap("ossMountConfig")
private OSSMountConfig ossMountConfig;
@com.aliyun.core.annotation.NameInMap("programmingLanguage")
private String programmingLanguage;
@com.aliyun.core.annotation.NameInMap("runtime")
private String runtime;
@com.aliyun.core.annotation.NameInMap("scaleConfig")
private ScaleConfig scaleConfig;
@com.aliyun.core.annotation.NameInMap("slsConfig")
private SLSConfig slsConfig;
@com.aliyun.core.annotation.NameInMap("startupProbe")
private Probe startupProbe;
@com.aliyun.core.annotation.NameInMap("timeout")
private Integer timeout;
@com.aliyun.core.annotation.NameInMap("tracingConfig")
private TracingConfig tracingConfig;
@com.aliyun.core.annotation.NameInMap("vpcConfig")
private VPCConfig vpcConfig;
private CreateApplicationInput(Builder builder) {
this.applicationName = builder.applicationName;
this.args = builder.args;
this.caPort = builder.caPort;
this.code = builder.code;
this.command = builder.command;
this.cpu = builder.cpu;
this.customDNS = builder.customDNS;
this.customHealthCheckConfig = builder.customHealthCheckConfig;
this.customHostAlias = builder.customHostAlias;
this.customRuntimeConfig = builder.customRuntimeConfig;
this.description = builder.description;
this.diskSize = builder.diskSize;
this.enableAppMetric = builder.enableAppMetric;
this.environmentVariables = builder.environmentVariables;
this.gpuMemorySize = builder.gpuMemorySize;
this.handler = builder.handler;
this.httpTriggerConfig = builder.httpTriggerConfig;
this.imageConfig = builder.imageConfig;
this.initializationTimeout = builder.initializationTimeout;
this.initializer = builder.initializer;
this.instanceConcurrency = builder.instanceConcurrency;
this.instanceLifecycleConfig = builder.instanceLifecycleConfig;
this.instanceSoftConcurrency = builder.instanceSoftConcurrency;
this.instanceType = builder.instanceType;
this.internetAccess = builder.internetAccess;
this.layers = builder.layers;
this.livenessProbe = builder.livenessProbe;
this.logConfig = builder.logConfig;
this.memorySize = builder.memorySize;
this.namespaceID = builder.namespaceID;
this.nasConfig = builder.nasConfig;
this.ossMountConfig = builder.ossMountConfig;
this.programmingLanguage = builder.programmingLanguage;
this.runtime = builder.runtime;
this.scaleConfig = builder.scaleConfig;
this.slsConfig = builder.slsConfig;
this.startupProbe = builder.startupProbe;
this.timeout = builder.timeout;
this.tracingConfig = builder.tracingConfig;
this.vpcConfig = builder.vpcConfig;
}
public static Builder builder() {
return new Builder();
}
public static CreateApplicationInput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationName
*/
public String getApplicationName() {
return this.applicationName;
}
/**
* @return args
*/
public String getArgs() {
return this.args;
}
/**
* @return caPort
*/
public Integer getCaPort() {
return this.caPort;
}
/**
* @return code
*/
public InputCodeLocation getCode() {
return this.code;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return cpu
*/
public Float getCpu() {
return this.cpu;
}
/**
* @return customDNS
*/
public CustomDNS getCustomDNS() {
return this.customDNS;
}
/**
* @return customHealthCheckConfig
*/
public CustomHealthCheckConfig getCustomHealthCheckConfig() {
return this.customHealthCheckConfig;
}
/**
* @return customHostAlias
*/
public CustomHostAlias getCustomHostAlias() {
return this.customHostAlias;
}
/**
* @return customRuntimeConfig
*/
public CustomRuntimeConfig getCustomRuntimeConfig() {
return this.customRuntimeConfig;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return diskSize
*/
public Integer getDiskSize() {
return this.diskSize;
}
/**
* @return enableAppMetric
*/
public Boolean getEnableAppMetric() {
return this.enableAppMetric;
}
/**
* @return environmentVariables
*/
public java.util.Map<String, String> getEnvironmentVariables() {
return this.environmentVariables;
}
/**
* @return gpuMemorySize
*/
public Integer getGpuMemorySize() {
return this.gpuMemorySize;
}
/**
* @return handler
*/
public String getHandler() {
return this.handler;
}
/**
* @return httpTriggerConfig
*/
public HTTPTriggerConfig getHttpTriggerConfig() {
return this.httpTriggerConfig;
}
/**
* @return imageConfig
*/
public ImageConfig getImageConfig() {
return this.imageConfig;
}
/**
* @return initializationTimeout
*/
public Integer getInitializationTimeout() {
return this.initializationTimeout;
}
/**
* @return initializer
*/
public String getInitializer() {
return this.initializer;
}
/**
* @return instanceConcurrency
*/
public Integer getInstanceConcurrency() {
return this.instanceConcurrency;
}
/**
* @return instanceLifecycleConfig
*/
public InstanceLifecycleConfig getInstanceLifecycleConfig() {
return this.instanceLifecycleConfig;
}
/**
* @return instanceSoftConcurrency
*/
public Integer getInstanceSoftConcurrency() {
return this.instanceSoftConcurrency;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return internetAccess
*/
public Boolean getInternetAccess() {
return this.internetAccess;
}
/**
* @return layers
*/
public java.util.List<String> getLayers() {
return this.layers;
}
/**
* @return livenessProbe
*/
public Probe getLivenessProbe() {
return this.livenessProbe;
}
/**
* @return logConfig
*/
public LogConfig getLogConfig() {
return this.logConfig;
}
/**
* @return memorySize
*/
public Integer getMemorySize() {
return this.memorySize;
}
/**
* @return namespaceID
*/
public String getNamespaceID() {
return this.namespaceID;
}
/**
* @return nasConfig
*/
public NASConfig getNasConfig() {
return this.nasConfig;
}
/**
* @return ossMountConfig
*/
public OSSMountConfig getOssMountConfig() {
return this.ossMountConfig;
}
/**
* @return programmingLanguage
*/
public String getProgrammingLanguage() {
return this.programmingLanguage;
}
/**
* @return runtime
*/
public String getRuntime() {
return this.runtime;
}
/**
* @return scaleConfig
*/
public ScaleConfig getScaleConfig() {
return this.scaleConfig;
}
/**
* @return slsConfig
*/
public SLSConfig getSlsConfig() {
return this.slsConfig;
}
/**
* @return startupProbe
*/
public Probe getStartupProbe() {
return this.startupProbe;
}
/**
* @return timeout
*/
public Integer getTimeout() {
return this.timeout;
}
/**
* @return tracingConfig
*/
public TracingConfig getTracingConfig() {
return this.tracingConfig;
}
/**
* @return vpcConfig
*/
public VPCConfig getVpcConfig() {
return this.vpcConfig;
}
public static final class Builder {
private String applicationName;
private String args;
private Integer caPort;
private InputCodeLocation code;
private String command;
private Float cpu;
private CustomDNS customDNS;
private CustomHealthCheckConfig customHealthCheckConfig;
private CustomHostAlias customHostAlias;
private CustomRuntimeConfig customRuntimeConfig;
private String description;
private Integer diskSize;
private Boolean enableAppMetric;
private java.util.Map<String, String> environmentVariables;
private Integer gpuMemorySize;
private String handler;
private HTTPTriggerConfig httpTriggerConfig;
private ImageConfig imageConfig;
private Integer initializationTimeout;
private String initializer;
private Integer instanceConcurrency;
private InstanceLifecycleConfig instanceLifecycleConfig;
private Integer instanceSoftConcurrency;
private String instanceType;
private Boolean internetAccess;
private java.util.List<String> layers;
private Probe livenessProbe;
private LogConfig logConfig;
private Integer memorySize;
private String namespaceID;
private NASConfig nasConfig;
private OSSMountConfig ossMountConfig;
private String programmingLanguage;
private String runtime;
private ScaleConfig scaleConfig;
private SLSConfig slsConfig;
private Probe startupProbe;
private Integer timeout;
private TracingConfig tracingConfig;
private VPCConfig vpcConfig;
private Builder() {
}
private Builder(CreateApplicationInput model) {
this.applicationName = model.applicationName;
this.args = model.args;
this.caPort = model.caPort;
this.code = model.code;
this.command = model.command;
this.cpu = model.cpu;
this.customDNS = model.customDNS;
this.customHealthCheckConfig = model.customHealthCheckConfig;
this.customHostAlias = model.customHostAlias;
this.customRuntimeConfig = model.customRuntimeConfig;
this.description = model.description;
this.diskSize = model.diskSize;
this.enableAppMetric = model.enableAppMetric;
this.environmentVariables = model.environmentVariables;
this.gpuMemorySize = model.gpuMemorySize;
this.handler = model.handler;
this.httpTriggerConfig = model.httpTriggerConfig;
this.imageConfig = model.imageConfig;
this.initializationTimeout = model.initializationTimeout;
this.initializer = model.initializer;
this.instanceConcurrency = model.instanceConcurrency;
this.instanceLifecycleConfig = model.instanceLifecycleConfig;
this.instanceSoftConcurrency = model.instanceSoftConcurrency;
this.instanceType = model.instanceType;
this.internetAccess = model.internetAccess;
this.layers = model.layers;
this.livenessProbe = model.livenessProbe;
this.logConfig = model.logConfig;
this.memorySize = model.memorySize;
this.namespaceID = model.namespaceID;
this.nasConfig = model.nasConfig;
this.ossMountConfig = model.ossMountConfig;
this.programmingLanguage = model.programmingLanguage;
this.runtime = model.runtime;
this.scaleConfig = model.scaleConfig;
this.slsConfig = model.slsConfig;
this.startupProbe = model.startupProbe;
this.timeout = model.timeout;
this.tracingConfig = model.tracingConfig;
this.vpcConfig = model.vpcConfig;
}
/**
* applicationName.
*/
public Builder applicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
/**
* args.
*/
public Builder args(String args) {
this.args = args;
return this;
}
/**
* caPort.
*/
public Builder caPort(Integer caPort) {
this.caPort = caPort;
return this;
}
/**
* code.
*/
public Builder code(InputCodeLocation code) {
this.code = code;
return this;
}
/**
* command.
*/
public Builder command(String command) {
this.command = command;
return this;
}
/**
* cpu.
*/
public Builder cpu(Float cpu) {
this.cpu = cpu;
return this;
}
/**
* customDNS.
*/
public Builder customDNS(CustomDNS customDNS) {
this.customDNS = customDNS;
return this;
}
/**
* customHealthCheckConfig.
*/
public Builder customHealthCheckConfig(CustomHealthCheckConfig customHealthCheckConfig) {
this.customHealthCheckConfig = customHealthCheckConfig;
return this;
}
/**
* customHostAlias.
*/
public Builder customHostAlias(CustomHostAlias customHostAlias) {
this.customHostAlias = customHostAlias;
return this;
}
/**
* customRuntimeConfig.
*/
public Builder customRuntimeConfig(CustomRuntimeConfig customRuntimeConfig) {
this.customRuntimeConfig = customRuntimeConfig;
return this;
}
/**
* description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* diskSize.
*/
public Builder diskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
/**
* enableAppMetric.
*/
public Builder enableAppMetric(Boolean enableAppMetric) {
this.enableAppMetric = enableAppMetric;
return this;
}
/**
* environmentVariables.
*/
public Builder environmentVariables(java.util.Map<String, String> environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
/**
* gpuMemorySize.
*/
public Builder gpuMemorySize(Integer gpuMemorySize) {
this.gpuMemorySize = gpuMemorySize;
return this;
}
/**
* handler.
*/
public Builder handler(String handler) {
this.handler = handler;
return this;
}
/**
* httpTriggerConfig.
*/
public Builder httpTriggerConfig(HTTPTriggerConfig httpTriggerConfig) {
this.httpTriggerConfig = httpTriggerConfig;
return this;
}
/**
* imageConfig.
*/
public Builder imageConfig(ImageConfig imageConfig) {
this.imageConfig = imageConfig;
return this;
}
/**
* initializationTimeout.
*/
public Builder initializationTimeout(Integer initializationTimeout) {
this.initializationTimeout = initializationTimeout;
return this;
}
/**
* initializer.
*/
public Builder initializer(String initializer) {
this.initializer = initializer;
return this;
}
/**
* instanceConcurrency.
*/
public Builder instanceConcurrency(Integer instanceConcurrency) {
this.instanceConcurrency = instanceConcurrency;
return this;
}
/**
* instanceLifecycleConfig.
*/
public Builder instanceLifecycleConfig(InstanceLifecycleConfig instanceLifecycleConfig) {
this.instanceLifecycleConfig = instanceLifecycleConfig;
return this;
}
/**
* instanceSoftConcurrency.
*/
public Builder instanceSoftConcurrency(Integer instanceSoftConcurrency) {
this.instanceSoftConcurrency = instanceSoftConcurrency;
return this;
}
/**
* instanceType.
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* internetAccess.
*/
public Builder internetAccess(Boolean internetAccess) {
this.internetAccess = internetAccess;
return this;
}
/**
* layers.
*/
public Builder layers(java.util.List<String> layers) {
this.layers = layers;
return this;
}
/**
* livenessProbe.
*/
public Builder livenessProbe(Probe livenessProbe) {
this.livenessProbe = livenessProbe;
return this;
}
/**
* logConfig.
*/
public Builder logConfig(LogConfig logConfig) {
this.logConfig = logConfig;
return this;
}
/**
* memorySize.
*/
public Builder memorySize(Integer memorySize) {
this.memorySize = memorySize;
return this;
}
/**
* namespaceID.
*/
public Builder namespaceID(String namespaceID) {
this.namespaceID = namespaceID;
return this;
}
/**
* nasConfig.
*/
public Builder nasConfig(NASConfig nasConfig) {
this.nasConfig = nasConfig;
return this;
}
/**
* ossMountConfig.
*/
public Builder ossMountConfig(OSSMountConfig ossMountConfig) {
this.ossMountConfig = ossMountConfig;
return this;
}
/**
* programmingLanguage.
*/
public Builder programmingLanguage(String programmingLanguage) {
this.programmingLanguage = programmingLanguage;
return this;
}
/**
* runtime.
*/
public Builder runtime(String runtime) {
this.runtime = runtime;
return this;
}
/**
* scaleConfig.
*/
public Builder scaleConfig(ScaleConfig scaleConfig) {
this.scaleConfig = scaleConfig;
return this;
}
/**
* slsConfig.
*/
public Builder slsConfig(SLSConfig slsConfig) {
this.slsConfig = slsConfig;
return this;
}
/**
* startupProbe.
*/
public Builder startupProbe(Probe startupProbe) {
this.startupProbe = startupProbe;
return this;
}
/**
* timeout.
*/
public Builder timeout(Integer timeout) {
this.timeout = timeout;
return this;
}
/**
* tracingConfig.
*/
public Builder tracingConfig(TracingConfig tracingConfig) {
this.tracingConfig = tracingConfig;
return this;
}
/**
* vpcConfig.
*/
public Builder vpcConfig(VPCConfig vpcConfig) {
this.vpcConfig = vpcConfig;
return this;
}
public CreateApplicationInput build() {
return new CreateApplicationInput(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/CreateApplicationRequest.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 CreateApplicationRequest} extends {@link RequestModel}
*
* <p>CreateApplicationRequest</p>
*/
public class CreateApplicationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcrAssumeRoleArn")
private String acrAssumeRoleArn;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppDescription")
private String appDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppSource")
private String appSource;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AssociateEip")
private Boolean associateEip;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoConfig")
private Boolean autoConfig;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("BaseAppId")
private String baseAppId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private String configMapMountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomHostAlias")
private String customHostAlias;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomImageNetworkType")
private String customImageNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Deploy")
private Boolean deploy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DiskSize")
private Integer diskSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Dotnet")
private String dotnet;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableCpuBurst")
private Boolean enableCpuBurst;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableEbpf")
private String enableEbpf;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableNewArms")
private Boolean enableNewArms;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("EnableSidecarResourceIsolated")
private Boolean enableSidecarResourceIsolated;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GpuConfig")
private String gpuConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImagePullSecrets")
private String imagePullSecrets;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("InitContainersConfig")
private java.util.List<InitContainerConfig> initContainersConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartArgs")
private String jarStartArgs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartOptions")
private String jarStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("KafkaConfigs")
private String kafkaConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Liveness")
private String liveness;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MicroRegistration")
private String microRegistration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MicroRegistrationConfig")
private String microRegistrationConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MicroserviceEngineConfig")
private String microserviceEngineConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountDesc")
private String mountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountHost")
private String mountHost;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NasConfigs")
private String nasConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NasId")
private String nasId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewSaeVersion")
private String newSaeVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OidcRoleName")
private String oidcRoleName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkId")
private String ossAkId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkSecret")
private String ossAkSecret;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssMountDescs")
private String ossMountDescs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageType")
@com.aliyun.core.annotation.Validation(required = true)
private String packageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Php")
private String php;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhpArmsConfigLocation")
private String phpArmsConfigLocation;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("PhpConfig")
private String phpConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhpConfigLocation")
private String phpConfigLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PostStart")
private String postStart;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PreStop")
private String preStop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProgrammingLanguage")
private String programmingLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PvtzDiscoverySvc")
private String pvtzDiscoverySvc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Python")
private String python;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PythonModules")
private String pythonModules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Readiness")
private String readiness;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Replicas")
@com.aliyun.core.annotation.Validation(required = true)
private Integer replicas;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SaeVersion")
private String saeVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecretMountDesc")
private String secretMountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ServiceTags")
private String serviceTags;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SidecarContainersConfig")
private java.util.List<SidecarContainerConfig> sidecarContainersConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SlsConfigs")
private String slsConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartupProbe")
private String startupProbe;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TerminationGracePeriodSeconds")
@com.aliyun.core.annotation.Validation(maximum = 6000)
private Integer terminationGracePeriodSeconds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TomcatConfig")
private String tomcatConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarStartOptions")
private String warStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
private CreateApplicationRequest(Builder builder) {
super(builder);
this.acrAssumeRoleArn = builder.acrAssumeRoleArn;
this.acrInstanceId = builder.acrInstanceId;
this.appDescription = builder.appDescription;
this.appName = builder.appName;
this.appSource = builder.appSource;
this.associateEip = builder.associateEip;
this.autoConfig = builder.autoConfig;
this.baseAppId = builder.baseAppId;
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.deploy = builder.deploy;
this.diskSize = builder.diskSize;
this.dotnet = builder.dotnet;
this.edasContainerVersion = builder.edasContainerVersion;
this.enableCpuBurst = builder.enableCpuBurst;
this.enableEbpf = builder.enableEbpf;
this.enableNewArms = builder.enableNewArms;
this.enableSidecarResourceIsolated = builder.enableSidecarResourceIsolated;
this.envs = builder.envs;
this.gpuConfig = builder.gpuConfig;
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.mountDesc = builder.mountDesc;
this.mountHost = builder.mountHost;
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.pvtzDiscoverySvc = builder.pvtzDiscoverySvc;
this.python = builder.python;
this.pythonModules = builder.pythonModules;
this.readiness = builder.readiness;
this.replicas = builder.replicas;
this.resourceType = builder.resourceType;
this.saeVersion = builder.saeVersion;
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.terminationGracePeriodSeconds = builder.terminationGracePeriodSeconds;
this.timezone = builder.timezone;
this.tomcatConfig = builder.tomcatConfig;
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 CreateApplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appSource
*/
public String getAppSource() {
return this.appSource;
}
/**
* @return associateEip
*/
public Boolean getAssociateEip() {
return this.associateEip;
}
/**
* @return autoConfig
*/
public Boolean getAutoConfig() {
return this.autoConfig;
}
/**
* @return baseAppId
*/
public String getBaseAppId() {
return this.baseAppId;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return configMapMountDesc
*/
public String 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 deploy
*/
public Boolean getDeploy() {
return this.deploy;
}
/**
* @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 enableCpuBurst
*/
public Boolean getEnableCpuBurst() {
return this.enableCpuBurst;
}
/**
* @return enableEbpf
*/
public String getEnableEbpf() {
return this.enableEbpf;
}
/**
* @return enableNewArms
*/
public Boolean getEnableNewArms() {
return this.enableNewArms;
}
/**
* @return enableSidecarResourceIsolated
*/
public Boolean getEnableSidecarResourceIsolated() {
return this.enableSidecarResourceIsolated;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return gpuConfig
*/
public String getGpuConfig() {
return this.gpuConfig;
}
/**
* @return imagePullSecrets
*/
public String getImagePullSecrets() {
return this.imagePullSecrets;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return initContainersConfig
*/
public java.util.List<InitContainerConfig> 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 mountDesc
*/
public String 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 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 String 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 pvtzDiscoverySvc
*/
public String getPvtzDiscoverySvc() {
return this.pvtzDiscoverySvc;
}
/**
* @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 replicas
*/
public Integer getReplicas() {
return this.replicas;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return saeVersion
*/
public String getSaeVersion() {
return this.saeVersion;
}
/**
* @return secretMountDesc
*/
public String getSecretMountDesc() {
return this.secretMountDesc;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return serviceTags
*/
public String getServiceTags() {
return this.serviceTags;
}
/**
* @return sidecarContainersConfig
*/
public java.util.List<SidecarContainerConfig> getSidecarContainersConfig() {
return this.sidecarContainersConfig;
}
/**
* @return slsConfigs
*/
public String getSlsConfigs() {
return this.slsConfigs;
}
/**
* @return startupProbe
*/
public String getStartupProbe() {
return this.startupProbe;
}
/**
* @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 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 extends Request.Builder<CreateApplicationRequest, Builder> {
private String acrAssumeRoleArn;
private String acrInstanceId;
private String appDescription;
private String appName;
private String appSource;
private Boolean associateEip;
private Boolean autoConfig;
private String baseAppId;
private String command;
private String commandArgs;
private String configMapMountDesc;
private Integer cpu;
private String customHostAlias;
private String customImageNetworkType;
private Boolean deploy;
private Integer diskSize;
private String dotnet;
private String edasContainerVersion;
private Boolean enableCpuBurst;
private String enableEbpf;
private Boolean enableNewArms;
private Boolean enableSidecarResourceIsolated;
private String envs;
private String gpuConfig;
private String imagePullSecrets;
private String imageUrl;
private java.util.List<InitContainerConfig> 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 String mountDesc;
private String mountHost;
private String namespaceId;
private String nasConfigs;
private String nasId;
private String newSaeVersion;
private String oidcRoleName;
private String ossAkId;
private String ossAkSecret;
private String 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 pvtzDiscoverySvc;
private String python;
private String pythonModules;
private String readiness;
private Integer replicas;
private String resourceType;
private String saeVersion;
private String secretMountDesc;
private String securityGroupId;
private String serviceTags;
private java.util.List<SidecarContainerConfig> sidecarContainersConfig;
private String slsConfigs;
private String startupProbe;
private Integer terminationGracePeriodSeconds;
private String timezone;
private String tomcatConfig;
private String vSwitchId;
private String vpcId;
private String warStartOptions;
private String webContainer;
private Builder() {
super();
}
private Builder(CreateApplicationRequest request) {
super(request);
this.acrAssumeRoleArn = request.acrAssumeRoleArn;
this.acrInstanceId = request.acrInstanceId;
this.appDescription = request.appDescription;
this.appName = request.appName;
this.appSource = request.appSource;
this.associateEip = request.associateEip;
this.autoConfig = request.autoConfig;
this.baseAppId = request.baseAppId;
this.command = request.command;
this.commandArgs = request.commandArgs;
this.configMapMountDesc = request.configMapMountDesc;
this.cpu = request.cpu;
this.customHostAlias = request.customHostAlias;
this.customImageNetworkType = request.customImageNetworkType;
this.deploy = request.deploy;
this.diskSize = request.diskSize;
this.dotnet = request.dotnet;
this.edasContainerVersion = request.edasContainerVersion;
this.enableCpuBurst = request.enableCpuBurst;
this.enableEbpf = request.enableEbpf;
this.enableNewArms = request.enableNewArms;
this.enableSidecarResourceIsolated = request.enableSidecarResourceIsolated;
this.envs = request.envs;
this.gpuConfig = request.gpuConfig;
this.imagePullSecrets = request.imagePullSecrets;
this.imageUrl = request.imageUrl;
this.initContainersConfig = request.initContainersConfig;
this.jarStartArgs = request.jarStartArgs;
this.jarStartOptions = request.jarStartOptions;
this.jdk = request.jdk;
this.kafkaConfigs = request.kafkaConfigs;
this.liveness = request.liveness;
this.memory = request.memory;
this.microRegistration = request.microRegistration;
this.microRegistrationConfig = request.microRegistrationConfig;
this.microserviceEngineConfig = request.microserviceEngineConfig;
this.mountDesc = request.mountDesc;
this.mountHost = request.mountHost;
this.namespaceId = request.namespaceId;
this.nasConfigs = request.nasConfigs;
this.nasId = request.nasId;
this.newSaeVersion = request.newSaeVersion;
this.oidcRoleName = request.oidcRoleName;
this.ossAkId = request.ossAkId;
this.ossAkSecret = request.ossAkSecret;
this.ossMountDescs = request.ossMountDescs;
this.packageType = request.packageType;
this.packageUrl = request.packageUrl;
this.packageVersion = request.packageVersion;
this.php = request.php;
this.phpArmsConfigLocation = request.phpArmsConfigLocation;
this.phpConfig = request.phpConfig;
this.phpConfigLocation = request.phpConfigLocation;
this.postStart = request.postStart;
this.preStop = request.preStop;
this.programmingLanguage = request.programmingLanguage;
this.pvtzDiscoverySvc = request.pvtzDiscoverySvc;
this.python = request.python;
this.pythonModules = request.pythonModules;
this.readiness = request.readiness;
this.replicas = request.replicas;
this.resourceType = request.resourceType;
this.saeVersion = request.saeVersion;
this.secretMountDesc = request.secretMountDesc;
this.securityGroupId = request.securityGroupId;
this.serviceTags = request.serviceTags;
this.sidecarContainersConfig = request.sidecarContainersConfig;
this.slsConfigs = request.slsConfigs;
this.startupProbe = request.startupProbe;
this.terminationGracePeriodSeconds = request.terminationGracePeriodSeconds;
this.timezone = request.timezone;
this.tomcatConfig = request.tomcatConfig;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
this.warStartOptions = request.warStartOptions;
this.webContainer = request.webContainer;
}
/**
* <p>acs:ram::123456789012****:role/adminrole</p>
*
* <strong>example:</strong>
* <p>acs:ram::123456789012****:role/adminrole</p>
*/
public Builder acrAssumeRoleArn(String acrAssumeRoleArn) {
this.putQueryParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
this.acrAssumeRoleArn = acrAssumeRoleArn;
return this;
}
/**
* <p>cri-xxxxxx</p>
*
* <strong>example:</strong>
* <p>cri-xxxxxx</p>
*/
public Builder acrInstanceId(String acrInstanceId) {
this.putBodyParameter("AcrInstanceId", acrInstanceId);
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* <p>This is a test description.</p>
*
* <strong>example:</strong>
* <p>This is a test description.</p>
*/
public Builder appDescription(String appDescription) {
this.putQueryParameter("AppDescription", appDescription);
this.appDescription = appDescription;
return this;
}
/**
* <p>test</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* AppSource.
*/
public Builder appSource(String appSource) {
this.putQueryParameter("AppSource", appSource);
this.appSource = appSource;
return this;
}
/**
* <p>true</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder associateEip(Boolean associateEip) {
this.putBodyParameter("AssociateEip", associateEip);
this.associateEip = associateEip;
return this;
}
/**
* <p>true</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoConfig(Boolean autoConfig) {
this.putQueryParameter("AutoConfig", autoConfig);
this.autoConfig = autoConfig;
return this;
}
/**
* BaseAppId.
*/
public Builder baseAppId(String baseAppId) {
this.putBodyParameter("BaseAppId", baseAppId);
this.baseAppId = baseAppId;
return this;
}
/**
* <p>sleep</p>
*
* <strong>example:</strong>
* <p>echo</p>
*/
public Builder command(String command) {
this.putQueryParameter("Command", command);
this.command = command;
return this;
}
/**
* <p>1d</p>
*
* <strong>example:</strong>
* <p>["a","b"]</p>
*/
public Builder commandArgs(String commandArgs) {
this.putQueryParameter("CommandArgs", commandArgs);
this.commandArgs = commandArgs;
return this;
}
/**
* <p>[{"configMapId":16,"key":"test","mountPath":"/tmp"}]</p>
*
* <strong>example:</strong>
* <p>[{"configMapId":16,"key":"test","mountPath":"/tmp"}]</p>
*/
public Builder configMapMountDesc(String configMapMountDesc) {
this.putBodyParameter("ConfigMapMountDesc", configMapMountDesc);
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* <p>1000</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder cpu(Integer cpu) {
this.putQueryParameter("Cpu", cpu);
this.cpu = cpu;
return this;
}
/**
* <p>[{"hostName":"samplehost","ip":"127.0.0.1"}]</p>
*
* <strong>example:</strong>
* <p>[{"hostName":"samplehost","ip":"127.0.0.1"}]</p>
*/
public Builder customHostAlias(String customHostAlias) {
this.putQueryParameter("CustomHostAlias", customHostAlias);
this.customHostAlias = customHostAlias;
return this;
}
/**
* CustomImageNetworkType.
*/
public Builder customImageNetworkType(String customImageNetworkType) {
this.putQueryParameter("CustomImageNetworkType", customImageNetworkType);
this.customImageNetworkType = customImageNetworkType;
return this;
}
/**
* <p>true</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deploy(Boolean deploy) {
this.putQueryParameter("Deploy", deploy);
this.deploy = deploy;
return this;
}
/**
* DiskSize.
*/
public Builder diskSize(Integer diskSize) {
this.putQueryParameter("DiskSize", diskSize);
this.diskSize = diskSize;
return this;
}
/**
* Dotnet.
*/
public Builder dotnet(String dotnet) {
this.putQueryParameter("Dotnet", dotnet);
this.dotnet = dotnet;
return this;
}
/**
* <p>3.5.3</p>
*
* <strong>example:</strong>
* <p>3.5.3</p>
*/
public Builder edasContainerVersion(String edasContainerVersion) {
this.putQueryParameter("EdasContainerVersion", edasContainerVersion);
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* EnableCpuBurst.
*/
public Builder enableCpuBurst(Boolean enableCpuBurst) {
this.putQueryParameter("EnableCpuBurst", enableCpuBurst);
this.enableCpuBurst = enableCpuBurst;
return this;
}
/**
* EnableEbpf.
*/
public Builder enableEbpf(String enableEbpf) {
this.putQueryParameter("EnableEbpf", enableEbpf);
this.enableEbpf = enableEbpf;
return this;
}
/**
* EnableNewArms.
*/
public Builder enableNewArms(Boolean enableNewArms) {
this.putQueryParameter("EnableNewArms", enableNewArms);
this.enableNewArms = enableNewArms;
return this;
}
/**
* EnableSidecarResourceIsolated.
*/
public Builder enableSidecarResourceIsolated(Boolean enableSidecarResourceIsolated) {
this.putBodyParameter("EnableSidecarResourceIsolated", enableSidecarResourceIsolated);
this.enableSidecarResourceIsolated = enableSidecarResourceIsolated;
return this;
}
/**
* <p>[{"name":"envtmp","value":"0"}]</p>
*
* <strong>example:</strong>
* <p>[{"name":"envtmp","value":"0"}]</p>
*/
public Builder envs(String envs) {
this.putQueryParameter("Envs", envs);
this.envs = envs;
return this;
}
/**
* GpuConfig.
*/
public Builder gpuConfig(String gpuConfig) {
this.putQueryParameter("GpuConfig", gpuConfig);
this.gpuConfig = gpuConfig;
return this;
}
/**
* ImagePullSecrets.
*/
public Builder imagePullSecrets(String imagePullSecrets) {
this.putQueryParameter("ImagePullSecrets", imagePullSecrets);
this.imagePullSecrets = imagePullSecrets;
return this;
}
/**
* <p>registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1</p>
*
* <strong>example:</strong>
* <p>registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1</p>
*/
public Builder imageUrl(String imageUrl) {
this.putQueryParameter("ImageUrl", imageUrl);
this.imageUrl = imageUrl;
return this;
}
/**
* InitContainersConfig.
*/
public Builder initContainersConfig(java.util.List<InitContainerConfig> initContainersConfig) {
String initContainersConfigShrink = shrink(initContainersConfig, "InitContainersConfig", "json");
this.putBodyParameter("InitContainersConfig", initContainersConfigShrink);
this.initContainersConfig = initContainersConfig;
return this;
}
/**
* <p>custom-args</p>
*
* <strong>example:</strong>
* <p>custom-args</p>
*/
public Builder jarStartArgs(String jarStartArgs) {
this.putQueryParameter("JarStartArgs", jarStartArgs);
this.jarStartArgs = jarStartArgs;
return this;
}
/**
* <p>-Xms4G -Xmx4G</p>
*
* <strong>example:</strong>
* <p>-Xms4G -Xmx4G</p>
*/
public Builder jarStartOptions(String jarStartOptions) {
this.putQueryParameter("JarStartOptions", jarStartOptions);
this.jarStartOptions = jarStartOptions;
return this;
}
/**
* <p>Open JDK 8</p>
*
* <strong>example:</strong>
* <p>Open JDK 8</p>
*/
public Builder jdk(String jdk) {
this.putQueryParameter("Jdk", jdk);
this.jdk = jdk;
return this;
}
/**
* KafkaConfigs.
*/
public Builder kafkaConfigs(String kafkaConfigs) {
this.putQueryParameter("KafkaConfigs", kafkaConfigs);
this.kafkaConfigs = kafkaConfigs;
return this;
}
/**
* <p>{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}</p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}</p>
*/
public Builder liveness(String liveness) {
this.putQueryParameter("Liveness", liveness);
this.liveness = liveness;
return this;
}
/**
* <p>1024</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder memory(Integer memory) {
this.putQueryParameter("Memory", memory);
this.memory = memory;
return this;
}
/**
* MicroRegistration.
*/
public Builder microRegistration(String microRegistration) {
this.putQueryParameter("MicroRegistration", microRegistration);
this.microRegistration = microRegistration;
return this;
}
/**
* MicroRegistrationConfig.
*/
public Builder microRegistrationConfig(String microRegistrationConfig) {
this.putBodyParameter("MicroRegistrationConfig", microRegistrationConfig);
this.microRegistrationConfig = microRegistrationConfig;
return this;
}
/**
* MicroserviceEngineConfig.
*/
public Builder microserviceEngineConfig(String microserviceEngineConfig) {
this.putQueryParameter("MicroserviceEngineConfig", microserviceEngineConfig);
this.microserviceEngineConfig = microserviceEngineConfig;
return this;
}
/**
* <p>[{mountPath: "/tmp", nasPath: "/"}]</p>
*
* <strong>example:</strong>
* <p>[{mountPath: "/tmp", nasPath: "/"}]</p>
*/
public Builder mountDesc(String mountDesc) {
this.putQueryParameter("MountDesc", mountDesc);
this.mountDesc = mountDesc;
return this;
}
/**
* <p>example.com</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder mountHost(String mountHost) {
this.putQueryParameter("MountHost", mountHost);
this.mountHost = mountHost;
return this;
}
/**
* <p>cn-beijing:test</p>
*
* <strong>example:</strong>
* <p>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
/**
* NasConfigs.
*/
public Builder nasConfigs(String nasConfigs) {
this.putQueryParameter("NasConfigs", nasConfigs);
this.nasConfigs = nasConfigs;
return this;
}
/**
* <p>KSAK****</p>
*
* <strong>example:</strong>
* <p>KSAK****</p>
*/
public Builder nasId(String nasId) {
this.putQueryParameter("NasId", nasId);
this.nasId = nasId;
return this;
}
/**
* NewSaeVersion.
*/
public Builder newSaeVersion(String newSaeVersion) {
this.putQueryParameter("NewSaeVersion", newSaeVersion);
this.newSaeVersion = newSaeVersion;
return this;
}
/**
* OidcRoleName.
*/
public Builder oidcRoleName(String oidcRoleName) {
this.putQueryParameter("OidcRoleName", oidcRoleName);
this.oidcRoleName = oidcRoleName;
return this;
}
/**
* <p>xxxxxx</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkId(String ossAkId) {
this.putBodyParameter("OssAkId", ossAkId);
this.ossAkId = ossAkId;
return this;
}
/**
* <p>xxxxxx</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkSecret(String ossAkSecret) {
this.putBodyParameter("OssAkSecret", ossAkSecret);
this.ossAkSecret = ossAkSecret;
return this;
}
/**
* <p>[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]</p>
*
* <strong>example:</strong>
* <p>[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]</p>
*/
public Builder ossMountDescs(String ossMountDescs) {
this.putBodyParameter("OssMountDescs", ossMountDescs);
this.ossMountDescs = ossMountDescs;
return this;
}
/**
* <p>FatJar</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>FatJar</p>
*/
public Builder packageType(String packageType) {
this.putQueryParameter("PackageType", packageType);
this.packageType = packageType;
return this;
}
/**
* <p><a href="http://myoss.oss-cn-%5C*%5C*%5C*%5C*.aliyuncs.com/my-buc/2019-06-30/%5C*%5C*%5C*%5C*.jar">http://myoss.oss-cn-\*\*\*\*.aliyuncs.com/my-buc/2019-06-30/\*\*\*\*.jar</a></p>
*
* <strong>example:</strong>
* <p><a href="http://myoss.oss-cn-****.aliyuncs.com/my-buc/2019-06-30/****.jar">http://myoss.oss-cn-****.aliyuncs.com/my-buc/2019-06-30/****.jar</a></p>
*/
public Builder packageUrl(String packageUrl) {
this.putQueryParameter("PackageUrl", packageUrl);
this.packageUrl = packageUrl;
return this;
}
/**
* <p>1.0.0</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder packageVersion(String packageVersion) {
this.putQueryParameter("PackageVersion", packageVersion);
this.packageVersion = packageVersion;
return this;
}
/**
* Php.
*/
public Builder php(String php) {
this.putBodyParameter("Php", php);
this.php = php;
return this;
}
/**
* <p>/usr/local/etc/php/conf.d/arms.ini</p>
*
* <strong>example:</strong>
* <p>/usr/local/etc/php/conf.d/arms.ini</p>
*/
public Builder phpArmsConfigLocation(String phpArmsConfigLocation) {
this.putQueryParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
this.phpArmsConfigLocation = phpArmsConfigLocation;
return this;
}
/**
* <p>k1=v1</p>
*
* <strong>example:</strong>
* <p>k1=v1</p>
*/
public Builder phpConfig(String phpConfig) {
this.putBodyParameter("PhpConfig", phpConfig);
this.phpConfig = phpConfig;
return this;
}
/**
* <p>/usr/local/etc/php/php.ini</p>
*
* <strong>example:</strong>
* <p>/usr/local/etc/php/php.ini</p>
*/
public Builder phpConfigLocation(String phpConfigLocation) {
this.putQueryParameter("PhpConfigLocation", phpConfigLocation);
this.phpConfigLocation = phpConfigLocation;
return this;
}
/**
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder postStart(String postStart) {
this.putQueryParameter("PostStart", postStart);
this.postStart = postStart;
return this;
}
/**
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["cat","/etc/group"]}}</p>
*/
public Builder preStop(String preStop) {
this.putQueryParameter("PreStop", preStop);
this.preStop = preStop;
return this;
}
/**
* ProgrammingLanguage.
*/
public Builder programmingLanguage(String programmingLanguage) {
this.putQueryParameter("ProgrammingLanguage", programmingLanguage);
this.programmingLanguage = programmingLanguage;
return this;
}
/**
* PvtzDiscoverySvc.
*/
public Builder pvtzDiscoverySvc(String pvtzDiscoverySvc) {
this.putQueryParameter("PvtzDiscoverySvc", pvtzDiscoverySvc);
this.pvtzDiscoverySvc = pvtzDiscoverySvc;
return this;
}
/**
* Python.
*/
public Builder python(String python) {
this.putQueryParameter("Python", python);
this.python = python;
return this;
}
/**
* PythonModules.
*/
public Builder pythonModules(String pythonModules) {
this.putQueryParameter("PythonModules", pythonModules);
this.pythonModules = pythonModules;
return this;
}
/**
* <p>{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}</p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}</p>
*/
public Builder readiness(String readiness) {
this.putQueryParameter("Readiness", readiness);
this.readiness = readiness;
return this;
}
/**
* <p>1</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder replicas(Integer replicas) {
this.putQueryParameter("Replicas", replicas);
this.replicas = replicas;
return this;
}
/**
* ResourceType.
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* SaeVersion.
*/
public Builder saeVersion(String saeVersion) {
this.putQueryParameter("SaeVersion", saeVersion);
this.saeVersion = saeVersion;
return this;
}
/**
* SecretMountDesc.
*/
public Builder secretMountDesc(String secretMountDesc) {
this.putQueryParameter("SecretMountDesc", secretMountDesc);
this.secretMountDesc = secretMountDesc;
return this;
}
/**
* <p>sg-wz969ngg2e49q5i4****</p>
*
* <strong>example:</strong>
* <p>sg-wz969ngg2e49q5i4****</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
/**
* ServiceTags.
*/
public Builder serviceTags(String serviceTags) {
this.putBodyParameter("ServiceTags", serviceTags);
this.serviceTags = serviceTags;
return this;
}
/**
* SidecarContainersConfig.
*/
public Builder sidecarContainersConfig(java.util.List<SidecarContainerConfig> sidecarContainersConfig) {
String sidecarContainersConfigShrink = shrink(sidecarContainersConfig, "SidecarContainersConfig", "json");
this.putBodyParameter("SidecarContainersConfig", sidecarContainersConfigShrink);
this.sidecarContainersConfig = sidecarContainersConfig;
return this;
}
/**
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*
* <strong>example:</strong>
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*/
public Builder slsConfigs(String slsConfigs) {
this.putQueryParameter("SlsConfigs", slsConfigs);
this.slsConfigs = slsConfigs;
return this;
}
/**
* StartupProbe.
*/
public Builder startupProbe(String startupProbe) {
this.putQueryParameter("StartupProbe", startupProbe);
this.startupProbe = startupProbe;
return this;
}
/**
* <p>30</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds) {
this.putQueryParameter("TerminationGracePeriodSeconds", terminationGracePeriodSeconds);
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
return this;
}
/**
* <p>Asia/Shanghai</p>
*
* <strong>example:</strong>
* <p>Asia/Shanghai</p>
*/
public Builder timezone(String timezone) {
this.putQueryParameter("Timezone", timezone);
this.timezone = timezone;
return this;
}
/**
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*
* <strong>example:</strong>
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*/
public Builder tomcatConfig(String tomcatConfig) {
this.putQueryParameter("TomcatConfig", tomcatConfig);
this.tomcatConfig = tomcatConfig;
return this;
}
/**
* <p>vsw-bp12mw1f8k3jgygk9****</p>
*
* <strong>example:</strong>
* <p>vsw-bp12mw1f8k3jgygk9****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>vpc-bp1aevy8sofi8mh1q****</p>
*
* <strong>example:</strong>
* <p>vpc-bp1aevy8sofi8mh1q****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>CATALINA_OPTS=\"$CATALINA_OPTS $Options\" catalina.sh run</p>
*
* <strong>example:</strong>
* <p>CATALINA_OPTS="$CATALINA_OPTS $Options" catalina.sh run</p>
*/
public Builder warStartOptions(String warStartOptions) {
this.putQueryParameter("WarStartOptions", warStartOptions);
this.warStartOptions = warStartOptions;
return this;
}
/**
* <p>apache-tomcat-7.0.91</p>
*
* <strong>example:</strong>
* <p>apache-tomcat-7.0.91</p>
*/
public Builder webContainer(String webContainer) {
this.putQueryParameter("WebContainer", webContainer);
this.webContainer = webContainer;
return this;
}
@Override
public CreateApplicationRequest build() {
return new CreateApplicationRequest(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/CreateApplicationResponse.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 CreateApplicationResponse} extends {@link TeaModel}
*
* <p>CreateApplicationResponse</p>
*/
public class CreateApplicationResponse 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 CreateApplicationResponseBody body;
private CreateApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateApplicationResponse 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 CreateApplicationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateApplicationResponseBody body);
@Override
CreateApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateApplicationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateApplicationResponse 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(CreateApplicationResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateApplicationResponse build() {
return new CreateApplicationResponse(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/CreateApplicationResponseBody.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 CreateApplicationResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationResponseBody</p>
*/
public class CreateApplicationResponseBody 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 CreateApplicationResponseBody(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 CreateApplicationResponseBody 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(CreateApplicationResponseBody 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 returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The error code. Valid values:</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 application is created. 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 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 CreateApplicationResponseBody build() {
return new CreateApplicationResponseBody(this);
}
}
/**
*
* {@link CreateApplicationResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
private Data(Builder builder) {
this.appId = builder.appId;
this.changeOrderId = builder.changeOrderId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
public static final class Builder {
private String appId;
private String changeOrderId;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.changeOrderId = model.changeOrderId;
}
/**
* <p>The ID of the application that is created.</p>
*
* <strong>example:</strong>
* <p>017f39b8-dfa4-4e16-a84b-1dcee4b1****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The ID of the change order. It can be used to query the task status.</p>
*
* <strong>example:</strong>
* <p>01db03d3-3ee9-48b3-b3d0-dfce2d88****</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
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/CreateApplicationScalingRuleRequest.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 CreateApplicationScalingRuleRequest} extends {@link RequestModel}
*
* <p>CreateApplicationScalingRuleRequest</p>
*/
public class CreateApplicationScalingRuleRequest 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("EnableIdle")
private Boolean enableIdle;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MinReadyInstanceRatio")
private Integer minReadyInstanceRatio;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MinReadyInstances")
private Integer minReadyInstances;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleEnable")
private Boolean scalingRuleEnable;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleMetric")
private String scalingRuleMetric;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleName")
@com.aliyun.core.annotation.Validation(required = true)
private String scalingRuleName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleTimer")
private String scalingRuleTimer;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingRuleType")
@com.aliyun.core.annotation.Validation(required = true)
private String scalingRuleType;
private CreateApplicationScalingRuleRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.enableIdle = builder.enableIdle;
this.minReadyInstanceRatio = builder.minReadyInstanceRatio;
this.minReadyInstances = builder.minReadyInstances;
this.scalingRuleEnable = builder.scalingRuleEnable;
this.scalingRuleMetric = builder.scalingRuleMetric;
this.scalingRuleName = builder.scalingRuleName;
this.scalingRuleTimer = builder.scalingRuleTimer;
this.scalingRuleType = builder.scalingRuleType;
}
public static Builder builder() {
return new Builder();
}
public static CreateApplicationScalingRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return enableIdle
*/
public Boolean getEnableIdle() {
return this.enableIdle;
}
/**
* @return minReadyInstanceRatio
*/
public Integer getMinReadyInstanceRatio() {
return this.minReadyInstanceRatio;
}
/**
* @return minReadyInstances
*/
public Integer getMinReadyInstances() {
return this.minReadyInstances;
}
/**
* @return scalingRuleEnable
*/
public Boolean getScalingRuleEnable() {
return this.scalingRuleEnable;
}
/**
* @return scalingRuleMetric
*/
public String getScalingRuleMetric() {
return this.scalingRuleMetric;
}
/**
* @return scalingRuleName
*/
public String getScalingRuleName() {
return this.scalingRuleName;
}
/**
* @return scalingRuleTimer
*/
public String getScalingRuleTimer() {
return this.scalingRuleTimer;
}
/**
* @return scalingRuleType
*/
public String getScalingRuleType() {
return this.scalingRuleType;
}
public static final class Builder extends Request.Builder<CreateApplicationScalingRuleRequest, Builder> {
private String appId;
private Boolean enableIdle;
private Integer minReadyInstanceRatio;
private Integer minReadyInstances;
private Boolean scalingRuleEnable;
private String scalingRuleMetric;
private String scalingRuleName;
private String scalingRuleTimer;
private String scalingRuleType;
private Builder() {
super();
}
private Builder(CreateApplicationScalingRuleRequest request) {
super(request);
this.appId = request.appId;
this.enableIdle = request.enableIdle;
this.minReadyInstanceRatio = request.minReadyInstanceRatio;
this.minReadyInstances = request.minReadyInstances;
this.scalingRuleEnable = request.scalingRuleEnable;
this.scalingRuleMetric = request.scalingRuleMetric;
this.scalingRuleName = request.scalingRuleName;
this.scalingRuleTimer = request.scalingRuleTimer;
this.scalingRuleType = request.scalingRuleType;
}
/**
* <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;
}
/**
* EnableIdle.
*/
public Builder enableIdle(Boolean enableIdle) {
this.putQueryParameter("EnableIdle", enableIdle);
this.enableIdle = enableIdle;
return this;
}
/**
* MinReadyInstanceRatio.
*/
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
this.putQueryParameter("MinReadyInstanceRatio", minReadyInstanceRatio);
this.minReadyInstanceRatio = minReadyInstanceRatio;
return this;
}
/**
* MinReadyInstances.
*/
public Builder minReadyInstances(Integer minReadyInstances) {
this.putQueryParameter("MinReadyInstances", minReadyInstances);
this.minReadyInstances = minReadyInstances;
return this;
}
/**
* ScalingRuleEnable.
*/
public Builder scalingRuleEnable(Boolean scalingRuleEnable) {
this.putQueryParameter("ScalingRuleEnable", scalingRuleEnable);
this.scalingRuleEnable = scalingRuleEnable;
return this;
}
/**
* ScalingRuleMetric.
*/
public Builder scalingRuleMetric(String scalingRuleMetric) {
this.putQueryParameter("ScalingRuleMetric", scalingRuleMetric);
this.scalingRuleMetric = scalingRuleMetric;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>timer-0800-2100</p>
*/
public Builder scalingRuleName(String scalingRuleName) {
this.putQueryParameter("ScalingRuleName", scalingRuleName);
this.scalingRuleName = scalingRuleName;
return this;
}
/**
* ScalingRuleTimer.
*/
public Builder scalingRuleTimer(String scalingRuleTimer) {
this.putQueryParameter("ScalingRuleTimer", scalingRuleTimer);
this.scalingRuleTimer = scalingRuleTimer;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>timing</p>
*/
public Builder scalingRuleType(String scalingRuleType) {
this.putQueryParameter("ScalingRuleType", scalingRuleType);
this.scalingRuleType = scalingRuleType;
return this;
}
@Override
public CreateApplicationScalingRuleRequest build() {
return new CreateApplicationScalingRuleRequest(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/CreateApplicationScalingRuleResponse.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 CreateApplicationScalingRuleResponse} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponse</p>
*/
public class CreateApplicationScalingRuleResponse 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 CreateApplicationScalingRuleResponseBody body;
private CreateApplicationScalingRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateApplicationScalingRuleResponse 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 CreateApplicationScalingRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateApplicationScalingRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateApplicationScalingRuleResponseBody body);
@Override
CreateApplicationScalingRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateApplicationScalingRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateApplicationScalingRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateApplicationScalingRuleResponse 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(CreateApplicationScalingRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateApplicationScalingRuleResponse build() {
return new CreateApplicationScalingRuleResponse(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/CreateApplicationScalingRuleResponseBody.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 CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</p>
*/
public class CreateApplicationScalingRuleResponseBody 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 CreateApplicationScalingRuleResponseBody(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 CreateApplicationScalingRuleResponseBody 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(CreateApplicationScalingRuleResponseBody 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 CreateApplicationScalingRuleResponseBody build() {
return new CreateApplicationScalingRuleResponseBody(this);
}
}
/**
*
* {@link CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</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;
}
/**
* MetricTargetAverageUtilization.
*/
public Builder metricTargetAverageUtilization(Integer metricTargetAverageUtilization) {
this.metricTargetAverageUtilization = metricTargetAverageUtilization;
return this;
}
/**
* MetricType.
*/
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 CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</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("MinReplicas")
private Integer minReplicas;
private Metric(Builder builder) {
this.maxReplicas = builder.maxReplicas;
this.metrics = builder.metrics;
this.minReplicas = builder.minReplicas;
}
public static Builder builder() {
return new Builder();
}
public static Metric create() {
return builder().build();
}
/**
* @return maxReplicas
*/
public Integer getMaxReplicas() {
return this.maxReplicas;
}
/**
* @return metrics
*/
public java.util.List<Metrics> getMetrics() {
return this.metrics;
}
/**
* @return minReplicas
*/
public Integer getMinReplicas() {
return this.minReplicas;
}
public static final class Builder {
private Integer maxReplicas;
private java.util.List<Metrics> metrics;
private Integer minReplicas;
private Builder() {
}
private Builder(Metric model) {
this.maxReplicas = model.maxReplicas;
this.metrics = model.metrics;
this.minReplicas = model.minReplicas;
}
/**
* MaxReplicas.
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* Metrics.
*/
public Builder metrics(java.util.List<Metrics> metrics) {
this.metrics = metrics;
return this;
}
/**
* MinReplicas.
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
public Metric build() {
return new Metric(this);
}
}
}
/**
*
* {@link CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</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;
}
/**
* AtTime.
*/
public Builder atTime(String atTime) {
this.atTime = atTime;
return this;
}
/**
* MaxReplicas.
*/
public Builder maxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
return this;
}
/**
* MinReplicas.
*/
public Builder minReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
return this;
}
/**
* TargetReplicas.
*/
public Builder targetReplicas(Integer targetReplicas) {
this.targetReplicas = targetReplicas;
return this;
}
public Schedules build() {
return new Schedules(this);
}
}
}
/**
*
* {@link CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</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;
}
/**
* BeginDate.
*/
public Builder beginDate(String beginDate) {
this.beginDate = beginDate;
return this;
}
/**
* EndDate.
*/
public Builder endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* Period.
*/
public Builder period(String period) {
this.period = period;
return this;
}
/**
* Schedules.
*/
public Builder schedules(java.util.List<Schedules> schedules) {
this.schedules = schedules;
return this;
}
public Timer build() {
return new Timer(this);
}
}
}
/**
*
* {@link CreateApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateApplicationScalingRuleResponseBody</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("EnableIdle")
private Boolean enableIdle;
@com.aliyun.core.annotation.NameInMap("LastDisableTime")
private Long lastDisableTime;
@com.aliyun.core.annotation.NameInMap("Metric")
private Metric metric;
@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.enableIdle = builder.enableIdle;
this.lastDisableTime = builder.lastDisableTime;
this.metric = builder.metric;
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 enableIdle
*/
public Boolean getEnableIdle() {
return this.enableIdle;
}
/**
* @return lastDisableTime
*/
public Long getLastDisableTime() {
return this.lastDisableTime;
}
/**
* @return metric
*/
public Metric getMetric() {
return this.metric;
}
/**
* @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 Boolean enableIdle;
private Long lastDisableTime;
private Metric metric;
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.enableIdle = model.enableIdle;
this.lastDisableTime = model.lastDisableTime;
this.metric = model.metric;
this.scaleRuleEnabled = model.scaleRuleEnabled;
this.scaleRuleName = model.scaleRuleName;
this.scaleRuleType = model.scaleRuleType;
this.timer = model.timer;
this.updateTime = model.updateTime;
}
/**
* AppId.
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* CreateTime.
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* EnableIdle.
*/
public Builder enableIdle(Boolean enableIdle) {
this.enableIdle = enableIdle;
return this;
}
/**
* LastDisableTime.
*/
public Builder lastDisableTime(Long lastDisableTime) {
this.lastDisableTime = lastDisableTime;
return this;
}
/**
* Metric.
*/
public Builder metric(Metric metric) {
this.metric = metric;
return this;
}
/**
* ScaleRuleEnabled.
*/
public Builder scaleRuleEnabled(Boolean scaleRuleEnabled) {
this.scaleRuleEnabled = scaleRuleEnabled;
return this;
}
/**
* ScaleRuleName.
*/
public Builder scaleRuleName(String scaleRuleName) {
this.scaleRuleName = scaleRuleName;
return this;
}
/**
* ScaleRuleType.
*/
public Builder scaleRuleType(String scaleRuleType) {
this.scaleRuleType = scaleRuleType;
return this;
}
/**
* Timer.
*/
public Builder timer(Timer timer) {
this.timer = timer;
return this;
}
/**
* UpdateTime.
*/
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/CreateConfigMapRequest.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 CreateConfigMapRequest} extends {@link RequestModel}
*
* <p>CreateConfigMapRequest</p>
*/
public class CreateConfigMapRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceId;
private CreateConfigMapRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.name = builder.name;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static CreateConfigMapRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<CreateConfigMapRequest, Builder> {
private String description;
private String name;
private String namespaceId;
private Builder() {
super();
}
private Builder(CreateConfigMapRequest request) {
super(request);
this.description = request.description;
this.name = request.name;
this.namespaceId = request.namespaceId;
}
/**
* <p>The key-value pairs of the ConfigMap in the JSON format. Format:</p>
* <p>{"Data":"{"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>test-desc</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The name of the ConfigMap. The name can contain digits, letters, and underscores (_). The name must start with a letter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The ID of the namespace to which the ConfigMap instance belongs.</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 CreateConfigMapRequest build() {
return new CreateConfigMapRequest(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/CreateConfigMapResponse.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 CreateConfigMapResponse} extends {@link TeaModel}
*
* <p>CreateConfigMapResponse</p>
*/
public class CreateConfigMapResponse 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 CreateConfigMapResponseBody body;
private CreateConfigMapResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateConfigMapResponse 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 CreateConfigMapResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateConfigMapResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateConfigMapResponseBody body);
@Override
CreateConfigMapResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateConfigMapResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateConfigMapResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateConfigMapResponse 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(CreateConfigMapResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateConfigMapResponse build() {
return new CreateConfigMapResponse(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/CreateConfigMapResponseBody.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 CreateConfigMapResponseBody} extends {@link TeaModel}
*
* <p>CreateConfigMapResponseBody</p>
*/
public class CreateConfigMapResponseBody 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 CreateConfigMapResponseBody(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 CreateConfigMapResponseBody 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(CreateConfigMapResponseBody 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>Empty</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The ID of the ConfigMap that was created.</p>
*
* <strong>example:</strong>
* <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 request ID.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The returned data.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <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>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>0a98a02315955564772843261e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public CreateConfigMapResponseBody build() {
return new CreateConfigMapResponseBody(this);
}
}
/**
*
* {@link CreateConfigMapResponseBody} extends {@link TeaModel}
*
* <p>CreateConfigMapResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
private Data(Builder builder) {
this.configMapId = builder.configMapId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
public static final class Builder {
private Long configMapId;
private Builder() {
}
private Builder(Data model) {
this.configMapId = model.configMapId;
}
/**
* <p>The returned result.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
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/CreateCustomDomainInput.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 CreateCustomDomainInput} extends {@link TeaModel}
*
* <p>CreateCustomDomainInput</p>
*/
public class CreateCustomDomainInput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("applicationName")
private String applicationName;
@com.aliyun.core.annotation.NameInMap("certConfig")
private CertConfig certConfig;
@com.aliyun.core.annotation.NameInMap("domainName")
@com.aliyun.core.annotation.Validation(maxLength = 256, minLength = 1)
private String domainName;
@com.aliyun.core.annotation.NameInMap("keepFullPath")
private Boolean keepFullPath;
@com.aliyun.core.annotation.NameInMap("namespaceID")
private String namespaceID;
@com.aliyun.core.annotation.NameInMap("protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("tlsConfig")
private TLSConfig tlsConfig;
@com.aliyun.core.annotation.NameInMap("wafConfig")
private WAFConfig wafConfig;
private CreateCustomDomainInput(Builder builder) {
this.applicationName = builder.applicationName;
this.certConfig = builder.certConfig;
this.domainName = builder.domainName;
this.keepFullPath = builder.keepFullPath;
this.namespaceID = builder.namespaceID;
this.protocol = builder.protocol;
this.tlsConfig = builder.tlsConfig;
this.wafConfig = builder.wafConfig;
}
public static Builder builder() {
return new Builder();
}
public static CreateCustomDomainInput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationName
*/
public String getApplicationName() {
return this.applicationName;
}
/**
* @return certConfig
*/
public CertConfig getCertConfig() {
return this.certConfig;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return keepFullPath
*/
public Boolean getKeepFullPath() {
return this.keepFullPath;
}
/**
* @return namespaceID
*/
public String getNamespaceID() {
return this.namespaceID;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return tlsConfig
*/
public TLSConfig getTlsConfig() {
return this.tlsConfig;
}
/**
* @return wafConfig
*/
public WAFConfig getWafConfig() {
return this.wafConfig;
}
public static final class Builder {
private String applicationName;
private CertConfig certConfig;
private String domainName;
private Boolean keepFullPath;
private String namespaceID;
private String protocol;
private TLSConfig tlsConfig;
private WAFConfig wafConfig;
private Builder() {
}
private Builder(CreateCustomDomainInput model) {
this.applicationName = model.applicationName;
this.certConfig = model.certConfig;
this.domainName = model.domainName;
this.keepFullPath = model.keepFullPath;
this.namespaceID = model.namespaceID;
this.protocol = model.protocol;
this.tlsConfig = model.tlsConfig;
this.wafConfig = model.wafConfig;
}
/**
* applicationName.
*/
public Builder applicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
/**
* certConfig.
*/
public Builder certConfig(CertConfig certConfig) {
this.certConfig = certConfig;
return this;
}
/**
* domainName.
*/
public Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* keepFullPath.
*/
public Builder keepFullPath(Boolean keepFullPath) {
this.keepFullPath = keepFullPath;
return this;
}
/**
* namespaceID.
*/
public Builder namespaceID(String namespaceID) {
this.namespaceID = namespaceID;
return this;
}
/**
* protocol.
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* tlsConfig.
*/
public Builder tlsConfig(TLSConfig tlsConfig) {
this.tlsConfig = tlsConfig;
return this;
}
/**
* wafConfig.
*/
public Builder wafConfig(WAFConfig wafConfig) {
this.wafConfig = wafConfig;
return this;
}
public CreateCustomDomainInput build() {
return new CreateCustomDomainInput(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/CreateGreyTagRouteRequest.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 CreateGreyTagRouteRequest} extends {@link RequestModel}
*
* <p>CreateGreyTagRouteRequest</p>
*/
public class CreateGreyTagRouteRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AlbRules")
private String albRules;
@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("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DubboRules")
private String dubboRules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScRules")
private String scRules;
private CreateGreyTagRouteRequest(Builder builder) {
super(builder);
this.albRules = builder.albRules;
this.appId = builder.appId;
this.description = builder.description;
this.dubboRules = builder.dubboRules;
this.name = builder.name;
this.scRules = builder.scRules;
}
public static Builder builder() {
return new Builder();
}
public static CreateGreyTagRouteRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return albRules
*/
public String getAlbRules() {
return this.albRules;
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dubboRules
*/
public String getDubboRules() {
return this.dubboRules;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return scRules
*/
public String getScRules() {
return this.scRules;
}
public static final class Builder extends Request.Builder<CreateGreyTagRouteRequest, Builder> {
private String albRules;
private String appId;
private String description;
private String dubboRules;
private String name;
private String scRules;
private Builder() {
super();
}
private Builder(CreateGreyTagRouteRequest request) {
super(request);
this.albRules = request.albRules;
this.appId = request.appId;
this.description = request.description;
this.dubboRules = request.dubboRules;
this.name = request.name;
this.scRules = request.scRules;
}
/**
* <p>The canary release rule of the application for which Application Load Balancer (ALB) gateway routing is configured.</p>
*
* <strong>example:</strong>
* <p>[{"condition":"AND","items":[{"cond":"==","name":"grey","operator":"rawvalue","type":"sourceIp","value":"127.0.0.1"},{"cond":"==","name":"grey","operator":"rawvalue","type":"cookie","value":"true"},{"cond":"==","name":"grey","operator":"rawvalue","type":"header","value":"true"}],"path":"/post-echo/hi"}]</p>
*/
public Builder albRules(String albRules) {
this.putQueryParameter("AlbRules", albRules);
this.albRules = albRules;
return this;
}
/**
* <p>The application ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>7802c49a-67bc-4167-8369-9a9c003c****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The description of the canary release rule. The name must be 1 to 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>灰度发布-地域灰度</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The canary release rule that you created for Dubbo applications. If your application uses the Dubbo framework, you must configure this parameter. You do not need to configure the <strong>ScRules</strong> parameter.</p>
*
* <strong>example:</strong>
* <p>[{"condition":"OR","group":"DUBBO","items":[{"cond":"==","expr":".key1","index":0,"operator":"rawvalue","value":"value1"},{"cond":"==","expr":".key2","index":0,"operator":"rawvalue","value":"value2"}],"methodName":"echo","serviceName":"com.alibaba.edas.boot.EchoService","version":"1.0.0"}]</p>
*/
public Builder dubboRules(String dubboRules) {
this.putQueryParameter("DubboRules", dubboRules);
this.dubboRules = dubboRules;
return this;
}
/**
* <p>The name of the canary release rule. The name must start with a lowercase letter and end with a digit or a lowercase letter. The name can contain only lowercase letters, Chinese characters, digits, and hyphens (-). The name must be 1 to 64 characters in length.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dubbo-echo</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The canary release rule that you created for Spring Cloud application. If your application uses the Spring Cloud framework, you must configure this parameter. You do not need to configure the <strong>DubboRules</strong> parameter.</p>
*
* <strong>example:</strong>
* <p>[{"condition":"OR","items":[{"cond":"==","name":"grey","operator":"rawvalue","type":"param","value":"true"},{"cond":"==","name":"grey","operator":"rawvalue","type":"cookie","value":"true"},{"cond":"==","name":"grey","operator":"rawvalue","type":"header","value":"true"}],"path":"/post-echo/hi"}]</p>
*/
public Builder scRules(String scRules) {
this.putQueryParameter("ScRules", scRules);
this.scRules = scRules;
return this;
}
@Override
public CreateGreyTagRouteRequest build() {
return new CreateGreyTagRouteRequest(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/CreateGreyTagRouteResponse.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 CreateGreyTagRouteResponse} extends {@link TeaModel}
*
* <p>CreateGreyTagRouteResponse</p>
*/
public class CreateGreyTagRouteResponse 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 CreateGreyTagRouteResponseBody body;
private CreateGreyTagRouteResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateGreyTagRouteResponse 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 CreateGreyTagRouteResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateGreyTagRouteResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateGreyTagRouteResponseBody body);
@Override
CreateGreyTagRouteResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateGreyTagRouteResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateGreyTagRouteResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateGreyTagRouteResponse 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(CreateGreyTagRouteResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateGreyTagRouteResponse build() {
return new CreateGreyTagRouteResponse(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/CreateGreyTagRouteResponseBody.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 CreateGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>CreateGreyTagRouteResponseBody</p>
*/
public class CreateGreyTagRouteResponseBody 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 CreateGreyTagRouteResponseBody(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 CreateGreyTagRouteResponseBody 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(CreateGreyTagRouteResponseBody 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 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><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 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>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 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 CreateGreyTagRouteResponseBody build() {
return new CreateGreyTagRouteResponseBody(this);
}
}
/**
*
* {@link CreateGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>CreateGreyTagRouteResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GreyTagRouteId")
private Long greyTagRouteId;
private Data(Builder builder) {
this.greyTagRouteId = builder.greyTagRouteId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return greyTagRouteId
*/
public Long getGreyTagRouteId() {
return this.greyTagRouteId;
}
public static final class Builder {
private Long greyTagRouteId;
private Builder() {
}
private Builder(Data model) {
this.greyTagRouteId = model.greyTagRouteId;
}
/**
* <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;
}
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/CreateIngressRequest.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 CreateIngressRequest} extends {@link RequestModel}
*
* <p>CreateIngressRequest</p>
*/
public class CreateIngressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressType")
private String addressType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertId")
private String certId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertIds")
private String certIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CorsConfig")
private String corsConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DefaultRule")
@com.aliyun.core.annotation.Validation(required = true)
private String defaultRule;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableXForwardedFor")
private Boolean enableXForwardedFor;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForClientSrcPort")
private Boolean enableXForwardedForClientSrcPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForProto")
private Boolean enableXForwardedForProto;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForSlbId")
private Boolean enableXForwardedForSlbId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableXForwardedForSlbPort")
private Boolean enableXForwardedForSlbPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IdleTimeout")
private Integer idleTimeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerPort")
@com.aliyun.core.annotation.Validation(required = true)
private Integer listenerPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ListenerProtocol")
private String listenerProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalanceType")
private String loadBalanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LoadBalancerEdition")
private String loadBalancerEdition;
@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("RequestTimeout")
private Integer requestTimeout;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Rules")
@com.aliyun.core.annotation.Validation(required = true)
private String rules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityPolicyId")
private String securityPolicyId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SlbId")
private String slbId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneMappings")
private String zoneMappings;
private CreateIngressRequest(Builder builder) {
super(builder);
this.addressType = builder.addressType;
this.certId = builder.certId;
this.certIds = builder.certIds;
this.corsConfig = builder.corsConfig;
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.idleTimeout = builder.idleTimeout;
this.listenerPort = builder.listenerPort;
this.listenerProtocol = builder.listenerProtocol;
this.loadBalanceType = builder.loadBalanceType;
this.loadBalancerEdition = builder.loadBalancerEdition;
this.namespaceId = builder.namespaceId;
this.requestTimeout = builder.requestTimeout;
this.rules = builder.rules;
this.securityPolicyId = builder.securityPolicyId;
this.slbId = builder.slbId;
this.zoneMappings = builder.zoneMappings;
}
public static Builder builder() {
return new Builder();
}
public static CreateIngressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return certId
*/
public String getCertId() {
return this.certId;
}
/**
* @return certIds
*/
public String getCertIds() {
return this.certIds;
}
/**
* @return corsConfig
*/
public String getCorsConfig() {
return this.corsConfig;
}
/**
* @return defaultRule
*/
public String 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 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 loadBalancerEdition
*/
public String getLoadBalancerEdition() {
return this.loadBalancerEdition;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return requestTimeout
*/
public Integer getRequestTimeout() {
return this.requestTimeout;
}
/**
* @return rules
*/
public String getRules() {
return this.rules;
}
/**
* @return securityPolicyId
*/
public String getSecurityPolicyId() {
return this.securityPolicyId;
}
/**
* @return slbId
*/
public String getSlbId() {
return this.slbId;
}
/**
* @return zoneMappings
*/
public String getZoneMappings() {
return this.zoneMappings;
}
public static final class Builder extends Request.Builder<CreateIngressRequest, Builder> {
private String addressType;
private String certId;
private String certIds;
private String corsConfig;
private String defaultRule;
private String description;
private Boolean enableXForwardedFor;
private Boolean enableXForwardedForClientSrcPort;
private Boolean enableXForwardedForProto;
private Boolean enableXForwardedForSlbId;
private Boolean enableXForwardedForSlbPort;
private Integer idleTimeout;
private Integer listenerPort;
private String listenerProtocol;
private String loadBalanceType;
private String loadBalancerEdition;
private String namespaceId;
private Integer requestTimeout;
private String rules;
private String securityPolicyId;
private String slbId;
private String zoneMappings;
private Builder() {
super();
}
private Builder(CreateIngressRequest request) {
super(request);
this.addressType = request.addressType;
this.certId = request.certId;
this.certIds = request.certIds;
this.corsConfig = request.corsConfig;
this.defaultRule = request.defaultRule;
this.description = request.description;
this.enableXForwardedFor = request.enableXForwardedFor;
this.enableXForwardedForClientSrcPort = request.enableXForwardedForClientSrcPort;
this.enableXForwardedForProto = request.enableXForwardedForProto;
this.enableXForwardedForSlbId = request.enableXForwardedForSlbId;
this.enableXForwardedForSlbPort = request.enableXForwardedForSlbPort;
this.idleTimeout = request.idleTimeout;
this.listenerPort = request.listenerPort;
this.listenerProtocol = request.listenerProtocol;
this.loadBalanceType = request.loadBalanceType;
this.loadBalancerEdition = request.loadBalancerEdition;
this.namespaceId = request.namespaceId;
this.requestTimeout = request.requestTimeout;
this.rules = request.rules;
this.securityPolicyId = request.securityPolicyId;
this.slbId = request.slbId;
this.zoneMappings = request.zoneMappings;
}
/**
* AddressType.
*/
public Builder addressType(String addressType) {
this.putQueryParameter("AddressType", addressType);
this.addressType = addressType;
return this;
}
/**
* <p>The ID of the certificate that is associated with the <strong>CLB</strong> instance.</p>
* <ul>
* <li>If you set <strong>LoadBalanceType</strong> to <strong>clb</strong>, you can use CertId to configure a certificate for the HTTPS listener.</li>
* </ul>
* <p>For more information about how to manage the SSL certificate IDs that are used by CLB instances, see <a href="https://help.aliyun.com/document_detail/90792.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>188077086902****_176993d****_181437****_108724****</p>
*/
public Builder certId(String certId) {
this.putQueryParameter("CertId", certId);
this.certId = certId;
return this;
}
/**
* <p>The IDs of the certificates that are associated with the <strong>ALB</strong> instance.</p>
* <ul>
* <li>If you set <strong>LoadBalanceType</strong> to <strong>alb</strong>, you can use CertIds to configure multiple certificates for the HTTPS listener. Separate multiple certificate IDs with commas (,).</li>
* <li>The ID of the SSL certificate that is used by an ALB instance can be obtained from Certificate Management Service. For example, if you specify <code>756***-cn-hangzhou</code>, <code>756***</code> is the certificate ID that is obtained from the service page, and <code>-cn-hangzhou</code> is the fixed suffix. For more information, see <a href="https://help.aliyun.com/document_detail/209076.html">Manage certificates</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>87<em><strong>35-cn-hangzhou,812</strong></em>3-cn-hangzhou</p>
*/
public Builder certIds(String certIds) {
this.putQueryParameter("CertIds", certIds);
this.certIds = certIds;
return this;
}
/**
* CorsConfig.
*/
public Builder corsConfig(String corsConfig) {
this.putQueryParameter("CorsConfig", corsConfig);
this.corsConfig = corsConfig;
return this;
}
/**
* <p>Default forwarding rule. Traffic is forwarded to the specified application through a designated port based on the IP address. Parameter descriptions are as follows:</p>
* <ul>
* <li><strong>appId</strong>: Application ID. - <strong>containerPort</strong>: Application instance port.<blockquote>
* <p>All requests that do not match or do not meet the <strong>Rules</strong> for forwarding will be directed to this specified application.</p>
* </blockquote>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080}</p>
*/
public Builder defaultRule(String defaultRule) {
this.putQueryParameter("DefaultRule", defaultRule);
this.defaultRule = defaultRule;
return this;
}
/**
* <p>Route rule name.</p>
*
* <strong>example:</strong>
* <p>ingress-for-sae-test</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* EnableXForwardedFor.
*/
public Builder enableXForwardedFor(Boolean enableXForwardedFor) {
this.putQueryParameter("EnableXForwardedFor", enableXForwardedFor);
this.enableXForwardedFor = enableXForwardedFor;
return this;
}
/**
* EnableXForwardedForClientSrcPort.
*/
public Builder enableXForwardedForClientSrcPort(Boolean enableXForwardedForClientSrcPort) {
this.putQueryParameter("EnableXForwardedForClientSrcPort", enableXForwardedForClientSrcPort);
this.enableXForwardedForClientSrcPort = enableXForwardedForClientSrcPort;
return this;
}
/**
* EnableXForwardedForProto.
*/
public Builder enableXForwardedForProto(Boolean enableXForwardedForProto) {
this.putQueryParameter("EnableXForwardedForProto", enableXForwardedForProto);
this.enableXForwardedForProto = enableXForwardedForProto;
return this;
}
/**
* EnableXForwardedForSlbId.
*/
public Builder enableXForwardedForSlbId(Boolean enableXForwardedForSlbId) {
this.putQueryParameter("EnableXForwardedForSlbId", enableXForwardedForSlbId);
this.enableXForwardedForSlbId = enableXForwardedForSlbId;
return this;
}
/**
* EnableXForwardedForSlbPort.
*/
public Builder enableXForwardedForSlbPort(Boolean enableXForwardedForSlbPort) {
this.putQueryParameter("EnableXForwardedForSlbPort", enableXForwardedForSlbPort);
this.enableXForwardedForSlbPort = enableXForwardedForSlbPort;
return this;
}
/**
* <p>The timeout period of an idle connection. Unit: seconds Valid values: 1 to 60. If no requests are received within the specified timeout period, ALB closes the current connection. When a new request is received, ALB establishes a new connection.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder idleTimeout(Integer idleTimeout) {
this.putQueryParameter("IdleTimeout", idleTimeout);
this.idleTimeout = idleTimeout;
return this;
}
/**
* <p>SThe frontend port that is used by the ALB instance.
* Valid values: 1 to 65535.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder listenerPort(Integer listenerPort) {
this.putQueryParameter("ListenerPort", listenerPort);
this.listenerPort = listenerPort;
return this;
}
/**
* <p>Request forwarding protocol. The value description is as follows:</p>
* <ul>
* <li><strong>HTTP</strong>: Suitable for applications that need to identify data content. - <strong>HTTPS</strong>: Suitable for applications that require encrypted transmission.</li>
* </ul>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder listenerProtocol(String listenerProtocol) {
this.putQueryParameter("ListenerProtocol", listenerProtocol);
this.listenerProtocol = listenerProtocol;
return this;
}
/**
* <p>The type of the SLB instance. The instance type can be specified only when you create a routing rule. You cannot change the instance type when you update the routing rule. Valid values:</p>
* <ul>
* <li><strong>clb</strong></li>
* <li><strong>alb</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>clb</p>
*/
public Builder loadBalanceType(String loadBalanceType) {
this.putQueryParameter("LoadBalanceType", loadBalanceType);
this.loadBalanceType = loadBalanceType;
return this;
}
/**
* LoadBalancerEdition.
*/
public Builder loadBalancerEdition(String loadBalancerEdition) {
this.putQueryParameter("LoadBalancerEdition", loadBalancerEdition);
this.loadBalancerEdition = loadBalancerEdition;
return this;
}
/**
* <p>The ID of the namespace where the application is located. Currently, cross-namespace applications are not supported.</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;
}
/**
* <p>The timeout period of a request. Unit: seconds. Valid values: 1 to 180. If no response is received from the backend server within the specified timeout period, ALB stops waiting for the response and returns an HTTP 504 error code to the client.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder requestTimeout(Integer requestTimeout) {
this.putQueryParameter("RequestTimeout", requestTimeout);
this.requestTimeout = requestTimeout;
return this;
}
/**
* <p>The forwarding rules. You can specify a port and an application in a forwarding rule to forward traffic based on the specified domain name and request path. The following list describes the involved parameters:</p>
* <ul>
* <li><strong>appId</strong>: the ID of the application.</li>
* <li><strong>containerPort</strong>: the container port of the application.</li>
* <li><strong>domain</strong>: the domain name.</li>
* <li><strong>path</strong>: the request path.</li>
* <li><strong>backendProtocol</strong>: the backend service protocol. Valid values: http, https, and grpc. Default value: http.</li>
* <li><strong>rewritePath</strong>: the rewrite path.</li>
* </ul>
* <blockquote>
* <p> The path rewrite feature is supported only by ALB instances.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>[{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080,"domain":"<a href="http://www.sae.site%22,%22path%22:%22/path1%22%7D,%7B%22appId%22:%22666403ce-d25b-47cf-87fe-497565d2****%22,%22containerPort%22:8080,%22domain%22:%22sae.site%22,%22path%22:%22/path2%22%7D%5D">www.sae.site","path":"/path1"},{"appId":"666403ce-d25b-47cf-87fe-497565d2****","containerPort":8080,"domain":"sae.site","path":"/path2"}]</a></p>
*/
public Builder rules(String rules) {
this.putBodyParameter("Rules", rules);
this.rules = rules;
return this;
}
/**
* <p>The ID of a security policy.</p>
*
* <strong>example:</strong>
* <p>sp-bp1bpn0kn9****</p>
*/
public Builder securityPolicyId(String securityPolicyId) {
this.putQueryParameter("SecurityPolicyId", securityPolicyId);
this.securityPolicyId = securityPolicyId;
return this;
}
/**
* <p>The Server Load Balancer (SLB) instance that is used by the routing rule.</p>
* <blockquote>
* <p> The SLB instance can be a Classic Load Balancer (CLB) instance or an Application Load Balancer (ALB) instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>lb-uf6hucc7inlqrtcq5****</p>
*/
public Builder slbId(String slbId) {
this.putQueryParameter("SlbId", slbId);
this.slbId = slbId;
return this;
}
/**
* ZoneMappings.
*/
public Builder zoneMappings(String zoneMappings) {
this.putQueryParameter("ZoneMappings", zoneMappings);
this.zoneMappings = zoneMappings;
return this;
}
@Override
public CreateIngressRequest build() {
return new CreateIngressRequest(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/CreateIngressResponse.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 CreateIngressResponse} extends {@link TeaModel}
*
* <p>CreateIngressResponse</p>
*/
public class CreateIngressResponse 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 CreateIngressResponseBody body;
private CreateIngressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateIngressResponse 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 CreateIngressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateIngressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateIngressResponseBody body);
@Override
CreateIngressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateIngressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateIngressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateIngressResponse 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(CreateIngressResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateIngressResponse build() {
return new CreateIngressResponse(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/CreateIngressResponseBody.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 CreateIngressResponseBody} extends {@link TeaModel}
*
* <p>CreateIngressResponseBody</p>
*/
public class CreateIngressResponseBody 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 CreateIngressResponseBody(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 CreateIngressResponseBody 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(CreateIngressResponseBody 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. 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>success</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 Secret is successfully deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The instance was deleted.</li>
* <li><strong>false</strong>: The instance failed to be deleted.</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 CreateIngressResponseBody build() {
return new CreateIngressResponseBody(this);
}
}
/**
*
* {@link CreateIngressResponseBody} extends {@link TeaModel}
*
* <p>CreateIngressResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IngressId")
private Long ingressId;
private Data(Builder builder) {
this.ingressId = builder.ingressId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return ingressId
*/
public Long getIngressId() {
return this.ingressId;
}
public static final class Builder {
private Long ingressId;
private Builder() {
}
private Builder(Data model) {
this.ingressId = model.ingressId;
}
/**
* <p>The ID of the routing rule.</p>
*
* <strong>example:</strong>
* <p>87</p>
*/
public Builder ingressId(Long ingressId) {
this.ingressId = ingressId;
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/CreateJobRequest.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 CreateJobRequest} extends {@link RequestModel}
*
* <p>CreateJobRequest</p>
*/
public class CreateJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcrAssumeRoleArn")
private String acrAssumeRoleArn;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppDescription")
private String appDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoConfig")
private Boolean autoConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BackoffLimit")
private Long backoffLimit;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConcurrencyPolicy")
private String concurrencyPolicy;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private String configMapMountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomHostAlias")
private String customHostAlias;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("EnableImageAccl")
private Boolean enableImageAccl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImagePullSecrets")
private String imagePullSecrets;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartArgs")
private String jarStartArgs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartOptions")
private String jarStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountDesc")
private String mountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountHost")
private String mountHost;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NasId")
private String nasId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkId")
private String ossAkId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkSecret")
private String ossAkSecret;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssMountDescs")
private String ossMountDescs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageType")
@com.aliyun.core.annotation.Validation(required = true)
private String packageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("PhpConfig")
private String phpConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhpConfigLocation")
private String phpConfigLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PostStart")
private String postStart;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PreStop")
private String preStop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProgrammingLanguage")
private String programmingLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Python")
private String python;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PythonModules")
private String pythonModules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RefAppId")
private String refAppId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Replicas")
@com.aliyun.core.annotation.Validation(required = true)
private Integer replicas;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Slice")
private Boolean slice;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SliceEnvs")
private String sliceEnvs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SlsConfigs")
private String slsConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TerminationGracePeriodSeconds")
@com.aliyun.core.annotation.Validation(maximum = 6000)
private Integer terminationGracePeriodSeconds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Timeout")
private Long timeout;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TomcatConfig")
private String tomcatConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TriggerConfig")
private String triggerConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarStartOptions")
private String warStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Workload")
@com.aliyun.core.annotation.Validation(required = true)
private String workload;
private CreateJobRequest(Builder builder) {
super(builder);
this.acrAssumeRoleArn = builder.acrAssumeRoleArn;
this.acrInstanceId = builder.acrInstanceId;
this.appDescription = builder.appDescription;
this.appName = builder.appName;
this.autoConfig = builder.autoConfig;
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.enableImageAccl = builder.enableImageAccl;
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.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.python = builder.python;
this.pythonModules = builder.pythonModules;
this.refAppId = builder.refAppId;
this.replicas = builder.replicas;
this.securityGroupId = builder.securityGroupId;
this.slice = builder.slice;
this.sliceEnvs = builder.sliceEnvs;
this.slsConfigs = builder.slsConfigs;
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.warStartOptions = builder.warStartOptions;
this.webContainer = builder.webContainer;
this.workload = builder.workload;
}
public static Builder builder() {
return new Builder();
}
public static CreateJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return autoConfig
*/
public Boolean getAutoConfig() {
return this.autoConfig;
}
/**
* @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 String 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 enableImageAccl
*/
public Boolean getEnableImageAccl() {
return this.enableImageAccl;
}
/**
* @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 String getMountDesc() {
return this.mountDesc;
}
/**
* @return mountHost
*/
public String getMountHost() {
return this.mountHost;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @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 String 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 python
*/
public String getPython() {
return this.python;
}
/**
* @return pythonModules
*/
public String getPythonModules() {
return this.pythonModules;
}
/**
* @return refAppId
*/
public String getRefAppId() {
return this.refAppId;
}
/**
* @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 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 warStartOptions
*/
public String getWarStartOptions() {
return this.warStartOptions;
}
/**
* @return webContainer
*/
public String getWebContainer() {
return this.webContainer;
}
/**
* @return workload
*/
public String getWorkload() {
return this.workload;
}
public static final class Builder extends Request.Builder<CreateJobRequest, Builder> {
private String acrAssumeRoleArn;
private String acrInstanceId;
private String appDescription;
private String appName;
private Boolean autoConfig;
private Long backoffLimit;
private String command;
private String commandArgs;
private String concurrencyPolicy;
private String configMapMountDesc;
private Integer cpu;
private String customHostAlias;
private String edasContainerVersion;
private Boolean enableImageAccl;
private String envs;
private String imagePullSecrets;
private String imageUrl;
private String jarStartArgs;
private String jarStartOptions;
private String jdk;
private Integer memory;
private String mountDesc;
private String mountHost;
private String namespaceId;
private String nasId;
private String ossAkId;
private String ossAkSecret;
private String 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 String python;
private String pythonModules;
private String refAppId;
private Integer replicas;
private String securityGroupId;
private Boolean slice;
private String sliceEnvs;
private String slsConfigs;
private Integer terminationGracePeriodSeconds;
private Long timeout;
private String timezone;
private String tomcatConfig;
private String triggerConfig;
private String vSwitchId;
private String vpcId;
private String warStartOptions;
private String webContainer;
private String workload;
private Builder() {
super();
}
private Builder(CreateJobRequest request) {
super(request);
this.acrAssumeRoleArn = request.acrAssumeRoleArn;
this.acrInstanceId = request.acrInstanceId;
this.appDescription = request.appDescription;
this.appName = request.appName;
this.autoConfig = request.autoConfig;
this.backoffLimit = request.backoffLimit;
this.command = request.command;
this.commandArgs = request.commandArgs;
this.concurrencyPolicy = request.concurrencyPolicy;
this.configMapMountDesc = request.configMapMountDesc;
this.cpu = request.cpu;
this.customHostAlias = request.customHostAlias;
this.edasContainerVersion = request.edasContainerVersion;
this.enableImageAccl = request.enableImageAccl;
this.envs = request.envs;
this.imagePullSecrets = request.imagePullSecrets;
this.imageUrl = request.imageUrl;
this.jarStartArgs = request.jarStartArgs;
this.jarStartOptions = request.jarStartOptions;
this.jdk = request.jdk;
this.memory = request.memory;
this.mountDesc = request.mountDesc;
this.mountHost = request.mountHost;
this.namespaceId = request.namespaceId;
this.nasId = request.nasId;
this.ossAkId = request.ossAkId;
this.ossAkSecret = request.ossAkSecret;
this.ossMountDescs = request.ossMountDescs;
this.packageType = request.packageType;
this.packageUrl = request.packageUrl;
this.packageVersion = request.packageVersion;
this.phpConfig = request.phpConfig;
this.phpConfigLocation = request.phpConfigLocation;
this.postStart = request.postStart;
this.preStop = request.preStop;
this.programmingLanguage = request.programmingLanguage;
this.python = request.python;
this.pythonModules = request.pythonModules;
this.refAppId = request.refAppId;
this.replicas = request.replicas;
this.securityGroupId = request.securityGroupId;
this.slice = request.slice;
this.sliceEnvs = request.sliceEnvs;
this.slsConfigs = request.slsConfigs;
this.terminationGracePeriodSeconds = request.terminationGracePeriodSeconds;
this.timeout = request.timeout;
this.timezone = request.timezone;
this.tomcatConfig = request.tomcatConfig;
this.triggerConfig = request.triggerConfig;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
this.warStartOptions = request.warStartOptions;
this.webContainer = request.webContainer;
this.workload = request.workload;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) required for a RAM role to obtain images across accounts. For more information, see <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.putQueryParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
this.acrAssumeRoleArn = acrAssumeRoleArn;
return this;
}
/**
* <p>The ID of Container Registry Enterprise Edition instance N. This parameter is required when the <strong>ImageUrl</strong> parameter is set to the URL of an image in an ACR Enterprise Edition instance.</p>
*
* <strong>example:</strong>
* <p>cri-xxxxxx</p>
*/
public Builder acrInstanceId(String acrInstanceId) {
this.putBodyParameter("AcrInstanceId", acrInstanceId);
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* <p>The description of the template. The description cannot exceed 1,024 characters in length.</p>
*
* <strong>example:</strong>
* <p>This is a test description.</p>
*/
public Builder appDescription(String appDescription) {
this.putQueryParameter("AppDescription", appDescription);
this.appDescription = appDescription;
return this;
}
/**
* <p>The name of the job template. The name can contain digits, letters, and hyphens (-). The name must start with a letter and cannot exceed 36 characters in length.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* <p>Specifies whether to automatically configure the network environment. Take note of the following rules:</p>
* <ul>
* <li><strong>true</strong>: The network environment is automatically configured by SAE when the application is created. In this case, the values of the <strong>NamespaceId</strong>, <strong>VpcId</strong>, <strong>vSwitchId</strong>, and <strong>SecurityGroupId</strong> parameters are ignored.</li>
* <li><strong>false</strong>: The network environment is manually configured based on your settings when the application is created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoConfig(Boolean autoConfig) {
this.putQueryParameter("AutoConfig", autoConfig);
this.autoConfig = autoConfig;
return this;
}
/**
* <p>The number of times the job is retried.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder backoffLimit(Long backoffLimit) {
this.putQueryParameter("BackoffLimit", 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. Sample statements:</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.putQueryParameter("Command", command);
this.command = command;
return this;
}
/**
* <p>The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the <strong>Command</strong> parameter. You can specify the name in one of the following formats:</p>
* <p><code>["a","b"]</code></p>
* <p>In the preceding 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. This parameter is optional.</p>
*
* <strong>example:</strong>
* <p>["a","b"]</p>
*/
public Builder commandArgs(String commandArgs) {
this.putQueryParameter("CommandArgs", commandArgs);
this.commandArgs = commandArgs;
return this;
}
/**
* <p>The concurrency policy of the job. Take note of the following rules:</p>
* <ul>
* <li><strong>Forbid</strong>: Prohibits concurrent running. If the previous job is not completed, no new job is created.</li>
* <li><strong>Allow</strong>: Allows concurrent running.</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.putQueryParameter("ConcurrencyPolicy", concurrencyPolicy);
this.concurrencyPolicy = concurrencyPolicy;
return this;
}
/**
* <p>The description of the <strong>ConfigMap</strong> instance mounted to the application. Use configurations created on the Configuration Items page to configure containers. The following table describes the parameters that are used in the preceding statements.</p>
* <ul>
* <li><strong>congfigMapId</strong>: the ID of the ConfigMap instance. You can call the <a href="https://help.aliyun.com/document_detail/176917.html">ListNamespacedConfigMaps</a> operation to obtain the ID.</li>
* <li><strong>key</strong>: the key.</li>
* </ul>
* <blockquote>
* <p>You can use the <code>sae-sys-configmap-all</code> key to mount all keys.</p>
* </blockquote>
* <ul>
* <li><strong>mountPath</strong>: the mount path in the container.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"configMapId":16,"key":"test","mountPath":"/tmp"}]</p>
*/
public Builder configMapMountDesc(String configMapMountDesc) {
this.putBodyParameter("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>500</li>
* <li>1000</li>
* <li>2000</li>
* <li>4000</li>
* <li>8000</li>
* <li>16000</li>
* <li>32000</li>
* </ul>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder cpu(Integer cpu) {
this.putQueryParameter("Cpu", cpu);
this.cpu = cpu;
return this;
}
/**
* <p>The custom mappings between hostnames and IP addresses in the container. Take note of the following rules:</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":"samplehost","ip":"127.0.0.1"}]</p>
*/
public Builder customHostAlias(String customHostAlias) {
this.putQueryParameter("CustomHostAlias", customHostAlias);
this.customHostAlias = customHostAlias;
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.putQueryParameter("EdasContainerVersion", edasContainerVersion);
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* EnableImageAccl.
*/
public Builder enableImageAccl(Boolean enableImageAccl) {
this.putBodyParameter("EnableImageAccl", enableImageAccl);
this.enableImageAccl = enableImageAccl;
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>. Take note of the following rules:</p>
* <ul>
* <li><p>Customize</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 ConfigMap</p>
* <ul>
* <li><strong>name</strong>: the name of the environment variable. You can reference one or all keys. If you want 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 ConfigMap ID.</li>
* <li><strong>key</strong>: the key. If you want to reference all keys, do not configure this parameter.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"name":"envtmp","value":"0"}]</p>
*/
public Builder envs(String envs) {
this.putQueryParameter("Envs", 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.putQueryParameter("ImagePullSecrets", 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>registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1</p>
*/
public Builder imageUrl(String imageUrl) {
this.putQueryParameter("ImageUrl", imageUrl);
this.imageUrl = imageUrl;
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>-Xms4G -Xmx4G</p>
*/
public Builder jarStartArgs(String jarStartArgs) {
this.putQueryParameter("JarStartArgs", 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 for application deployment is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>custom-option</p>
*/
public Builder jarStartOptions(String jarStartOptions) {
this.putQueryParameter("JarStartOptions", 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.putQueryParameter("Jdk", jdk);
this.jdk = jdk;
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>Set the value to 1024 when Cpu is set to 500 or 1000.</li>
* <li>Set the value to 2048 when Cpu is set to 500, 1000 or 2000.</li>
* <li>Set the value to 4096 when Cpu is set to 1000, 2000, or 4000.</li>
* <li>Set the value to 8192 when Cpu is set to 2000, 4000, or 8000.</li>
* <li>Set the value to 12288 when Cpu is set to 12000.</li>
* <li>Set the value to 16384 when Cpu is set to 4000, 8000, or 16000.</li>
* <li>Set the value to 24576 when Cpu is set to 12000.</li>
* <li>Set the value to 32768 when Cpu is set to 16000.</li>
* <li>Set the value to 65536 when Cpu is set to 8000, 16000, or 32000.</li>
* <li>Set the value to 131072 when Cpu is set to 32000.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder memory(Integer memory) {
this.putQueryParameter("Memory", memory);
this.memory = memory;
return this;
}
/**
* <p>The configurations for mounting the NAS file system. After the application is created, you may want to call other operations to manage the application. If you do not want to change the NAS configurations in these subsequent operations, you can omit the <strong>MountDesc</strong> parameter in the requests. If you want to unmount the NAS file system, you must set the <strong>MountDesc</strong> values in the subsequent requests to an empty string ("").</p>
*
* <strong>example:</strong>
* <p>[{mountPath: "/tmp", nasPath: "/"}]</p>
*/
public Builder mountDesc(String mountDesc) {
this.putQueryParameter("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>10d3b4bc9****.com</p>
*/
public Builder mountHost(String mountHost) {
this.putQueryParameter("MountHost", mountHost);
this.mountHost = mountHost;
return this;
}
/**
* <p>The ID of the Serverless App Engine (SAE) namespace. The ID can contain only lowercase letters and hyphens (-). It must start with a lowercase letter.</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 Apsara File Storage NAS file system. After the application is created, you may want to call other operations to manage the application. If you do not want to change the NAS configurations in these subsequent operations, you can omit the <strong>NasId</strong> parameter in the requests. If you want to unmount the NAS file system, you must set the <strong>NasId</strong> values in the subsequent requests to an empty string ("").</p>
*
* <strong>example:</strong>
* <p>10d3b4****</p>
*/
public Builder nasId(String nasId) {
this.putQueryParameter("NasId", 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) buckets.</p>
*
* <strong>example:</strong>
* <p>xxxxxx</p>
*/
public Builder ossAkId(String ossAkId) {
this.putBodyParameter("OssAkId", 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.putBodyParameter("OssAkSecret", ossAkSecret);
this.ossAkSecret = ossAkSecret;
return this;
}
/**
* <p>Information of the Object Storage Service (OSS) bucket mounted to the application. The following table describes the parameters that are used in the preceding statements.</p>
* <ul>
* <li><p><strong>bucketName</strong>: the name of the OSS bucket.</p>
* </li>
* <li><p><strong>bucketPath</strong>: the directory or object in OSS. If the specified directory or object does not exist, an error is returned.</p>
* </li>
* <li><p><strong>mountPath</strong>: the directory of the container in SAE. If the path already exists, the newly specified path overwrites the previous one. If the path does not exist, it is created.</p>
* </li>
* <li><p><strong>readOnly</strong>: specifies whether to only allow the container path to read data from the OSS directory. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The container path only has read permission on the OSS directory.</li>
* <li><strong>false</strong>: The application has read and write permissions.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]</p>
*/
public Builder ossMountDescs(String ossMountDescs) {
this.putBodyParameter("OssMountDescs", ossMountDescs);
this.ossMountDescs = ossMountDescs;
return this;
}
/**
* <p>The type of the deployment package. Take note of the following rules:</p>
* <ul>
* <li>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>.</li>
* <li>If you deploy the application by using a PHP package, you can set this parameter to one of the following values:</li>
* </ul>
* <p><strong>PhpZip</strong> <strong>IMAGE_PHP_5_4</strong> <strong>IMAGE_PHP_5_4_ALPINE</strong> <strong>IMAGE_PHP_5_5</strong> <strong>IMAGE_PHP_5_5_ALPINE</strong> <strong>IMAGE_PHP_5_6</strong> <strong>IMAGE_PHP_5_6_ALPINE</strong> <strong>IMAGE_PHP_7_0</strong> <strong>IMAGE_PHP_7_0_ALPINE</strong> <strong>IMAGE_PHP_7_1</strong> <strong>IMAGE_PHP_7_1_ALPINE</strong> <strong>IMAGE_PHP_7_2</strong> <strong>IMAGE_PHP_7_2_ALPINE</strong> <strong>IMAGE_PHP_7_3</strong> <strong>IMAGE_PHP_7_3_ALPINE</strong></p>
* <ul>
* <li>If you deploy the application by using a <strong>Python</strong> package, you can set this parameter to <strong>PythonZip</strong> or <strong>Image</strong>:</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>FatJar</p>
*/
public Builder packageType(String packageType) {
this.putQueryParameter("PackageType", packageType);
this.packageType = packageType;
return this;
}
/**
* <p>The address of the deployment package. This parameter is required if you set <strong>PackageType</strong> to <strong>FatJar</strong>, <strong>War</strong>, or <strong>PythonZip</strong>.</p>
*
* <strong>example:</strong>
* <p><a href="http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar">http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar</a></p>
*/
public Builder packageUrl(String packageUrl) {
this.putQueryParameter("PackageUrl", packageUrl);
this.packageUrl = packageUrl;
return this;
}
/**
* <p>The version of the deployment package. This parameter is required if you set <strong>PackageType</strong> to <strong>FatJar</strong>, <strong>War</strong>, or <strong>PythonZip</strong>.</p>
*
* <strong>example:</strong>
* <p>1.0.1</p>
*/
public Builder packageVersion(String packageVersion) {
this.putQueryParameter("PackageVersion", 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.putBodyParameter("PhpConfig", 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.putQueryParameter("PhpConfigLocation", phpConfigLocation);
this.phpConfigLocation = phpConfigLocation;
return this;
}
/**
* <p>The script that is run immediately after the container is started. Example: <code>{"exec":{"command":["sh","-c","echo hello"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","echo hello"]}}</p>
*/
public Builder postStart(String postStart) {
this.putQueryParameter("PostStart", postStart);
this.postStart = postStart;
return this;
}
/**
* <p>The script that is run before the container is stopped. Example: <code>{"exec":{"command":["sh","-c","echo hello"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","echo hello"]}}</p>
*/
public Builder preStop(String preStop) {
this.putQueryParameter("PreStop", preStop);
this.preStop = preStop;
return this;
}
/**
* <p>The programming language. Valid values: <strong>java</strong>, <strong>php</strong>, <strong>python</strong>, and <strong>shell</strong>.</p>
*
* <strong>example:</strong>
* <p>java</p>
*/
public Builder programmingLanguage(String programmingLanguage) {
this.putQueryParameter("ProgrammingLanguage", programmingLanguage);
this.programmingLanguage = programmingLanguage;
return this;
}
/**
* <p>The Python environment. Set the value to <strong>PYTHON 3.9.15</strong>.</p>
*
* <strong>example:</strong>
* <p>PYTHON 3.9.15</p>
*/
public Builder python(String python) {
this.putQueryParameter("Python", 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 the package does not contain this file and you do not configure custom dependencies in the package, specify the dependencies that you want to install in the text box.</p>
*
* <strong>example:</strong>
* <p>Flask==2.0</p>
*/
public Builder pythonModules(String pythonModules) {
this.putQueryParameter("PythonModules", pythonModules);
this.pythonModules = pythonModules;
return this;
}
/**
* <p>The ID of the job that you reference.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder refAppId(String refAppId) {
this.putQueryParameter("RefAppId", refAppId);
this.refAppId = refAppId;
return this;
}
/**
* <p>The number of concurrent instances.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder replicas(Integer replicas) {
this.putQueryParameter("Replicas", 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.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>Specifies whether to enable job sharding.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder slice(Boolean slice) {
this.putQueryParameter("Slice", slice);
this.slice = slice;
return this;
}
/**
* <p>The parameters of job sharding.</p>
*
* <strong>example:</strong>
* <p>[0,1,2]</p>
*/
public Builder sliceEnvs(String sliceEnvs) {
this.putQueryParameter("SliceEnvs", 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>The following table describes the parameters that are used in the preceding statements.</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>
* <blockquote>
* <p>A Log Service project that is automatically created by SAE when you create an application is deleted when the application is deleted. Therefore, when you create an application, you cannot select a Log Service project that is automatically created by SAE for log collection.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*/
public Builder slsConfigs(String slsConfigs) {
this.putQueryParameter("SlsConfigs", slsConfigs);
this.slsConfigs = slsConfigs;
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.putQueryParameter("TerminationGracePeriodSeconds", terminationGracePeriodSeconds);
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
return this;
}
/**
* <p>The timeout period. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>3600</p>
*/
public Builder timeout(Long timeout) {
this.putQueryParameter("Timeout", 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.putQueryParameter("Timezone", timezone);
this.timezone = timezone;
return this;
}
/**
* <p>The Tomcat configuration. If you want to cancel this configuration, set this parameter to "" or "{}". The following variables are included in the configuration: Take note of the following rules:</p>
* <ul>
* <li><strong>port</strong>: the port number. The port number ranges from 1024 to 65535. Though the admin permissions are configured for the container, 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 specify 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: UTF-8, ISO-8859-1, GBK, and GB2312.************ If you do not specify this parameter, the default value <strong>ISO-8859-1</strong> is used.</li>
* <li><strong>useBodyEncoding</strong>: specifies whether to use the encoding scheme specified in the request body for URI query parameters. Default value: true.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*/
public Builder tomcatConfig(String tomcatConfig) {
this.putQueryParameter("TomcatConfig", tomcatConfig);
this.tomcatConfig = tomcatConfig;
return this;
}
/**
* TriggerConfig.
*/
public Builder triggerConfig(String triggerConfig) {
this.putQueryParameter("TriggerConfig", triggerConfig);
this.triggerConfig = triggerConfig;
return this;
}
/**
* <p>The vSwitch to which the elastic network interface (ENI) of the application instance is connected. The vSwitch must be located in the VPC specified by the VpcId parameter. The SAE namespace is bound with this vSwitch. The default value is the ID of the vSwitch that is bound to the namespace.</p>
*
* <strong>example:</strong>
* <p>vsw-bp12mw1f8k3jgygk9****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) that corresponds to the SAE namespace. In SAE, once correspondence is configured between a namespace and a VPC, the namespace cannot correspond to other VPCs. When the SAE application is created within the namespace, the application is bound with the VPC. Multiple namespaces can correspond to the same VPC. The default value is the ID of the VPC that is bound to the namespace.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1aevy8sofi8mh1q****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The startup command of the WAR package. For information about how to configure the startup command, see <a href="https://help.aliyun.com/document_detail/96677.html">Configure startup commands</a>.</p>
*
* <strong>example:</strong>
* <p>CATALINA_OPTS="$CATALINA_OPTS $Options" catalina.sh run</p>
*/
public Builder warStartOptions(String warStartOptions) {
this.putQueryParameter("WarStartOptions", 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.putQueryParameter("WebContainer", webContainer);
this.webContainer = webContainer;
return this;
}
/**
* <p>Set the value to <code>job</code>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>job</p>
*/
public Builder workload(String workload) {
this.putQueryParameter("Workload", workload);
this.workload = workload;
return this;
}
@Override
public CreateJobRequest build() {
return new CreateJobRequest(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/CreateJobResponse.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 CreateJobResponse} extends {@link TeaModel}
*
* <p>CreateJobResponse</p>
*/
public class CreateJobResponse 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 CreateJobResponseBody body;
private CreateJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateJobResponse 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 CreateJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateJobResponseBody body);
@Override
CreateJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateJobResponse 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(CreateJobResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateJobResponse build() {
return new CreateJobResponse(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/CreateJobResponseBody.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 CreateJobResponseBody} extends {@link TeaModel}
*
* <p>CreateJobResponseBody</p>
*/
public class CreateJobResponseBody 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 CreateJobResponseBody(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 CreateJobResponseBody 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(CreateJobResponseBody 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. Take note of the following rules:</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 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 additional information that is returned. Take note of the following rules:</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>01CF26C7-00A3-4AA6-BA76-7E95F2A3***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the application deployment is successful. Take note of the following rules:</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>ac1a0b2215622246421415014e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public CreateJobResponseBody build() {
return new CreateJobResponseBody(this);
}
}
/**
*
* {@link CreateJobResponseBody} extends {@link TeaModel}
*
* <p>CreateJobResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
private Data(Builder builder) {
this.appId = builder.appId;
this.changeOrderId = builder.changeOrderId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
public static final class Builder {
private String appId;
private String changeOrderId;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.changeOrderId = model.changeOrderId;
}
/**
* <p>The application ID.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The ID of the change order. It can be used to query the task status.</p>
*
* <strong>example:</strong>
* <p>01db03d3-3ee9-48b3-b3d0-dfce2d88****</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
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/CreateNamespaceRequest.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 CreateNamespaceRequest} extends {@link RequestModel}
*
* <p>CreateNamespaceRequest</p>
*/
public class CreateNamespaceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableMicroRegistration")
private Boolean enableMicroRegistration;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NameSpaceShortId")
private String nameSpaceShortId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceDescription")
private String namespaceDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceName")
@com.aliyun.core.annotation.Validation(required = true)
private String namespaceName;
private CreateNamespaceRequest(Builder builder) {
super(builder);
this.enableMicroRegistration = builder.enableMicroRegistration;
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceDescription = builder.namespaceDescription;
this.namespaceId = builder.namespaceId;
this.namespaceName = builder.namespaceName;
}
public static Builder builder() {
return new Builder();
}
public static CreateNamespaceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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;
}
public static final class Builder extends Request.Builder<CreateNamespaceRequest, Builder> {
private Boolean enableMicroRegistration;
private String nameSpaceShortId;
private String namespaceDescription;
private String namespaceId;
private String namespaceName;
private Builder() {
super();
}
private Builder(CreateNamespaceRequest request) {
super(request);
this.enableMicroRegistration = request.enableMicroRegistration;
this.nameSpaceShortId = request.nameSpaceShortId;
this.namespaceDescription = request.namespaceDescription;
this.namespaceId = request.namespaceId;
this.namespaceName = request.namespaceName;
}
/**
* <p>Indicates whether to enable SAE built-in registry:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <p>Default value: true. If you do not use the built-in registry, you can set this parameter to false to accelerate the creation of a namespace.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableMicroRegistration(Boolean enableMicroRegistration) {
this.putQueryParameter("EnableMicroRegistration", enableMicroRegistration);
this.enableMicroRegistration = enableMicroRegistration;
return this;
}
/**
* <p>The trace ID that is used to query the details of the request.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.putQueryParameter("NameSpaceShortId", nameSpaceShortId);
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The message returned for the operation.</p>
*
* <strong>example:</strong>
* <p>desc</p>
*/
public Builder namespaceDescription(String namespaceDescription) {
this.putQueryParameter("NamespaceDescription", namespaceDescription);
this.namespaceDescription = namespaceDescription;
return this;
}
/**
* <p>The data returned.</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 request.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder namespaceName(String namespaceName) {
this.putQueryParameter("NamespaceName", namespaceName);
this.namespaceName = namespaceName;
return this;
}
@Override
public CreateNamespaceRequest build() {
return new CreateNamespaceRequest(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/CreateNamespaceResponse.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 CreateNamespaceResponse} extends {@link TeaModel}
*
* <p>CreateNamespaceResponse</p>
*/
public class CreateNamespaceResponse 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 CreateNamespaceResponseBody body;
private CreateNamespaceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateNamespaceResponse 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 CreateNamespaceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateNamespaceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateNamespaceResponseBody body);
@Override
CreateNamespaceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateNamespaceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateNamespaceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateNamespaceResponse 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(CreateNamespaceResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateNamespaceResponse build() {
return new CreateNamespaceResponse(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/CreateNamespaceResponseBody.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 CreateNamespaceResponseBody} extends {@link TeaModel}
*
* <p>CreateNamespaceResponseBody</p>
*/
public class CreateNamespaceResponseBody 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 CreateNamespaceResponseBody(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 CreateNamespaceResponseBody 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(CreateNamespaceResponseBody 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>bucketPath</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information about a namespace.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p><a href="http://sae_pop_pre/#vpc">http://sae_pop_pre/#vpc</a></p>
*
* <strong>example:</strong>
* <p>bucketName</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The description of the custom namespace.</p>
*
* <strong>example:</strong>
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>mountDir</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The name of the namespace.</p>
*
* <strong>example:</strong>
* <p>0a981dd515966966104121683d****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public CreateNamespaceResponseBody build() {
return new CreateNamespaceResponseBody(this);
}
}
/**
*
* {@link CreateNamespaceResponseBody} extends {@link TeaModel}
*
* <p>CreateNamespaceResponseBody</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:</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>Indicates whether the namespace was created. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The instance was created.</li>
* <li><strong>false</strong>: The call failed to be created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder nameSpaceShortId(String nameSpaceShortId) {
this.nameSpaceShortId = nameSpaceShortId;
return this;
}
/**
* <p>The short ID of the namespace.</p>
*
* <strong>example:</strong>
* <p>desc</p>
*/
public Builder namespaceDescription(String namespaceDescription) {
this.namespaceDescription = namespaceDescription;
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>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>cn-beijing:test</p>
*/
public Builder namespaceId(String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* <p>Null</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder namespaceName(String namespaceName) {
this.namespaceName = namespaceName;
return this;
}
/**
* <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>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/CreateOrUpdateSwimmingLaneGroupRequest.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 CreateOrUpdateSwimmingLaneGroupRequest} extends {@link RequestModel}
*
* <p>CreateOrUpdateSwimmingLaneGroupRequest</p>
*/
public class CreateOrUpdateSwimmingLaneGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppIds")
private java.util.List<String> appIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EntryAppId")
private String entryAppId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EntryAppType")
private String entryAppType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupName")
private String groupName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SwimVersion")
private String swimVersion;
private CreateOrUpdateSwimmingLaneGroupRequest(Builder builder) {
super(builder);
this.appIds = builder.appIds;
this.entryAppId = builder.entryAppId;
this.entryAppType = builder.entryAppType;
this.groupId = builder.groupId;
this.groupName = builder.groupName;
this.namespaceId = builder.namespaceId;
this.swimVersion = builder.swimVersion;
}
public static Builder builder() {
return new Builder();
}
public static CreateOrUpdateSwimmingLaneGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appIds
*/
public java.util.List<String> getAppIds() {
return this.appIds;
}
/**
* @return entryAppId
*/
public String getEntryAppId() {
return this.entryAppId;
}
/**
* @return entryAppType
*/
public String getEntryAppType() {
return this.entryAppType;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return groupName
*/
public String getGroupName() {
return this.groupName;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return swimVersion
*/
public String getSwimVersion() {
return this.swimVersion;
}
public static final class Builder extends Request.Builder<CreateOrUpdateSwimmingLaneGroupRequest, Builder> {
private java.util.List<String> appIds;
private String entryAppId;
private String entryAppType;
private Long groupId;
private String groupName;
private String namespaceId;
private String swimVersion;
private Builder() {
super();
}
private Builder(CreateOrUpdateSwimmingLaneGroupRequest request) {
super(request);
this.appIds = request.appIds;
this.entryAppId = request.entryAppId;
this.entryAppType = request.entryAppType;
this.groupId = request.groupId;
this.groupName = request.groupName;
this.namespaceId = request.namespaceId;
this.swimVersion = request.swimVersion;
}
/**
* AppIds.
*/
public Builder appIds(java.util.List<String> appIds) {
String appIdsShrink = shrink(appIds, "AppIds", "json");
this.putQueryParameter("AppIds", appIdsShrink);
this.appIds = appIds;
return this;
}
/**
* EntryAppId.
*/
public Builder entryAppId(String entryAppId) {
this.putQueryParameter("EntryAppId", entryAppId);
this.entryAppId = entryAppId;
return this;
}
/**
* EntryAppType.
*/
public Builder entryAppType(String entryAppType) {
this.putQueryParameter("EntryAppType", entryAppType);
this.entryAppType = entryAppType;
return this;
}
/**
* GroupId.
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* GroupName.
*/
public Builder groupName(String groupName) {
this.putQueryParameter("GroupName", groupName);
this.groupName = groupName;
return this;
}
/**
* NamespaceId.
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
/**
* SwimVersion.
*/
public Builder swimVersion(String swimVersion) {
this.putQueryParameter("SwimVersion", swimVersion);
this.swimVersion = swimVersion;
return this;
}
@Override
public CreateOrUpdateSwimmingLaneGroupRequest build() {
return new CreateOrUpdateSwimmingLaneGroupRequest(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/CreateOrUpdateSwimmingLaneGroupResponse.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 CreateOrUpdateSwimmingLaneGroupResponse} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneGroupResponse</p>
*/
public class CreateOrUpdateSwimmingLaneGroupResponse 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 CreateOrUpdateSwimmingLaneGroupResponseBody body;
private CreateOrUpdateSwimmingLaneGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateOrUpdateSwimmingLaneGroupResponse 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 CreateOrUpdateSwimmingLaneGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateOrUpdateSwimmingLaneGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateOrUpdateSwimmingLaneGroupResponseBody body);
@Override
CreateOrUpdateSwimmingLaneGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateOrUpdateSwimmingLaneGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateOrUpdateSwimmingLaneGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateOrUpdateSwimmingLaneGroupResponse 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(CreateOrUpdateSwimmingLaneGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateOrUpdateSwimmingLaneGroupResponse build() {
return new CreateOrUpdateSwimmingLaneGroupResponse(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/CreateOrUpdateSwimmingLaneGroupResponseBody.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 CreateOrUpdateSwimmingLaneGroupResponseBody} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneGroupResponseBody</p>
*/
public class CreateOrUpdateSwimmingLaneGroupResponseBody 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 CreateOrUpdateSwimmingLaneGroupResponseBody(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 CreateOrUpdateSwimmingLaneGroupResponseBody 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(CreateOrUpdateSwimmingLaneGroupResponseBody 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 CreateOrUpdateSwimmingLaneGroupResponseBody build() {
return new CreateOrUpdateSwimmingLaneGroupResponseBody(this);
}
}
/**
*
* {@link CreateOrUpdateSwimmingLaneGroupResponseBody} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneGroupResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
private Data(Builder builder) {
this.groupId = builder.groupId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
public static final class Builder {
private Long groupId;
private Builder() {
}
private Builder(Data model) {
this.groupId = model.groupId;
}
/**
* GroupId.
*/
public Builder groupId(Long groupId) {
this.groupId = groupId;
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/CreateOrUpdateSwimmingLaneRequest.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 CreateOrUpdateSwimmingLaneRequest} extends {@link RequestModel}
*
* <p>CreateOrUpdateSwimmingLaneRequest</p>
*/
public class CreateOrUpdateSwimmingLaneRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppEntryRule")
private AppEntryRule appEntryRule;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CanaryModel")
private Integer canaryModel;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Enable")
private Boolean enable;
@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("LaneName")
private String laneName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LaneTag")
private String laneTag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MseGatewayEntryRule")
private MseGatewayEntryRule mseGatewayEntryRule;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NamespaceId")
private String namespaceId;
private CreateOrUpdateSwimmingLaneRequest(Builder builder) {
super(builder);
this.appEntryRule = builder.appEntryRule;
this.canaryModel = builder.canaryModel;
this.enable = builder.enable;
this.groupId = builder.groupId;
this.laneId = builder.laneId;
this.laneName = builder.laneName;
this.laneTag = builder.laneTag;
this.mseGatewayEntryRule = builder.mseGatewayEntryRule;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static CreateOrUpdateSwimmingLaneRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appEntryRule
*/
public AppEntryRule getAppEntryRule() {
return this.appEntryRule;
}
/**
* @return canaryModel
*/
public Integer getCanaryModel() {
return this.canaryModel;
}
/**
* @return enable
*/
public Boolean getEnable() {
return this.enable;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @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;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<CreateOrUpdateSwimmingLaneRequest, Builder> {
private AppEntryRule appEntryRule;
private Integer canaryModel;
private Boolean enable;
private Long groupId;
private Long laneId;
private String laneName;
private String laneTag;
private MseGatewayEntryRule mseGatewayEntryRule;
private String namespaceId;
private Builder() {
super();
}
private Builder(CreateOrUpdateSwimmingLaneRequest request) {
super(request);
this.appEntryRule = request.appEntryRule;
this.canaryModel = request.canaryModel;
this.enable = request.enable;
this.groupId = request.groupId;
this.laneId = request.laneId;
this.laneName = request.laneName;
this.laneTag = request.laneTag;
this.mseGatewayEntryRule = request.mseGatewayEntryRule;
this.namespaceId = request.namespaceId;
}
/**
* AppEntryRule.
*/
public Builder appEntryRule(AppEntryRule appEntryRule) {
String appEntryRuleShrink = shrink(appEntryRule, "AppEntryRule", "json");
this.putQueryParameter("AppEntryRule", appEntryRuleShrink);
this.appEntryRule = appEntryRule;
return this;
}
/**
* CanaryModel.
*/
public Builder canaryModel(Integer canaryModel) {
this.putQueryParameter("CanaryModel", canaryModel);
this.canaryModel = canaryModel;
return this;
}
/**
* Enable.
*/
public Builder enable(Boolean enable) {
this.putQueryParameter("Enable", enable);
this.enable = enable;
return this;
}
/**
* 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;
}
/**
* LaneName.
*/
public Builder laneName(String laneName) {
this.putQueryParameter("LaneName", laneName);
this.laneName = laneName;
return this;
}
/**
* LaneTag.
*/
public Builder laneTag(String laneTag) {
this.putQueryParameter("LaneTag", laneTag);
this.laneTag = laneTag;
return this;
}
/**
* MseGatewayEntryRule.
*/
public Builder mseGatewayEntryRule(MseGatewayEntryRule mseGatewayEntryRule) {
String mseGatewayEntryRuleShrink = shrink(mseGatewayEntryRule, "MseGatewayEntryRule", "json");
this.putQueryParameter("MseGatewayEntryRule", mseGatewayEntryRuleShrink);
this.mseGatewayEntryRule = mseGatewayEntryRule;
return this;
}
/**
* NamespaceId.
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public CreateOrUpdateSwimmingLaneRequest build() {
return new CreateOrUpdateSwimmingLaneRequest(this);
}
}
/**
*
* {@link CreateOrUpdateSwimmingLaneRequest} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneRequest</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;
private Conditions(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 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;
}
public static final class Builder {
private String condition;
private String name;
private String type;
private String value;
private Builder() {
}
private Builder(Conditions 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 Conditions build() {
return new Conditions(this);
}
}
}
/**
*
* {@link CreateOrUpdateSwimmingLaneRequest} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneRequest</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 CreateOrUpdateSwimmingLaneRequest} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneRequest</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 CreateOrUpdateSwimmingLaneRequest} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneRequest</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;
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;
}
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;
}
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 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;
}
/**
* 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;
}
public MseGatewayEntryRule build() {
return new MseGatewayEntryRule(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/CreateOrUpdateSwimmingLaneResponse.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 CreateOrUpdateSwimmingLaneResponse} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneResponse</p>
*/
public class CreateOrUpdateSwimmingLaneResponse 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 CreateOrUpdateSwimmingLaneResponseBody body;
private CreateOrUpdateSwimmingLaneResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateOrUpdateSwimmingLaneResponse 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 CreateOrUpdateSwimmingLaneResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateOrUpdateSwimmingLaneResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateOrUpdateSwimmingLaneResponseBody body);
@Override
CreateOrUpdateSwimmingLaneResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateOrUpdateSwimmingLaneResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateOrUpdateSwimmingLaneResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateOrUpdateSwimmingLaneResponse 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(CreateOrUpdateSwimmingLaneResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateOrUpdateSwimmingLaneResponse build() {
return new CreateOrUpdateSwimmingLaneResponse(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/CreateOrUpdateSwimmingLaneResponseBody.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 CreateOrUpdateSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneResponseBody</p>
*/
public class CreateOrUpdateSwimmingLaneResponseBody 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 CreateOrUpdateSwimmingLaneResponseBody(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 CreateOrUpdateSwimmingLaneResponseBody 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(CreateOrUpdateSwimmingLaneResponseBody 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 CreateOrUpdateSwimmingLaneResponseBody build() {
return new CreateOrUpdateSwimmingLaneResponseBody(this);
}
}
/**
*
* {@link CreateOrUpdateSwimmingLaneResponseBody} extends {@link TeaModel}
*
* <p>CreateOrUpdateSwimmingLaneResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LaneId")
private Long laneId;
private Data(Builder builder) {
this.laneId = builder.laneId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return laneId
*/
public Long getLaneId() {
return this.laneId;
}
public static final class Builder {
private Long laneId;
private Builder() {
}
private Builder(Data model) {
this.laneId = model.laneId;
}
/**
* LaneId.
*/
public Builder laneId(Long laneId) {
this.laneId = laneId;
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/CreateSecretRequest.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 CreateSecretRequest} extends {@link RequestModel}
*
* <p>CreateSecretRequest</p>
*/
public class CreateSecretRequest 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("SecretData")
@com.aliyun.core.annotation.Validation(required = true)
private SecretData secretData;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecretName")
@com.aliyun.core.annotation.Validation(required = true)
private String secretName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecretType")
@com.aliyun.core.annotation.Validation(required = true)
private String secretType;
private CreateSecretRequest(Builder builder) {
super(builder);
this.namespaceId = builder.namespaceId;
this.secretData = builder.secretData;
this.secretName = builder.secretName;
this.secretType = builder.secretType;
}
public static Builder builder() {
return new Builder();
}
public static CreateSecretRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return secretData
*/
public SecretData getSecretData() {
return this.secretData;
}
/**
* @return secretName
*/
public String getSecretName() {
return this.secretName;
}
/**
* @return secretType
*/
public String getSecretType() {
return this.secretType;
}
public static final class Builder extends Request.Builder<CreateSecretRequest, Builder> {
private String namespaceId;
private SecretData secretData;
private String secretName;
private String secretType;
private Builder() {
super();
}
private Builder(CreateSecretRequest request) {
super(request);
this.namespaceId = request.namespaceId;
this.secretData = request.secretData;
this.secretName = request.secretName;
this.secretType = request.secretType;
}
/**
* <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>This parameter is required.</p>
*/
public Builder secretData(SecretData secretData) {
String secretDataShrink = shrink(secretData, "SecretData", "json");
this.putQueryParameter("SecretData", secretDataShrink);
this.secretData = secretData;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>registry-auth-acree</p>
*/
public Builder secretName(String secretName) {
this.putQueryParameter("SecretName", secretName);
this.secretName = secretName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>kubernetes.io/dockerconfigjson</p>
*/
public Builder secretType(String secretType) {
this.putQueryParameter("SecretType", secretType);
this.secretType = secretType;
return this;
}
@Override
public CreateSecretRequest build() {
return new CreateSecretRequest(this);
}
}
/**
*
* {@link CreateSecretRequest} extends {@link TeaModel}
*
* <p>CreateSecretRequest</p>
*/
public static class SecretData extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecretData")
@com.aliyun.core.annotation.Validation(required = true)
private String secretData;
private SecretData(Builder builder) {
this.secretData = builder.secretData;
}
public static Builder builder() {
return new Builder();
}
public static SecretData create() {
return builder().build();
}
/**
* @return secretData
*/
public String getSecretData() {
return this.secretData;
}
public static final class Builder {
private String secretData;
private Builder() {
}
private Builder(SecretData model) {
this.secretData = model.secretData;
}
/**
* <p>This parameter is required.</p>
*/
public Builder secretData(String secretData) {
this.secretData = secretData;
return this;
}
public SecretData build() {
return new SecretData(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/CreateSecretResponse.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 CreateSecretResponse} extends {@link TeaModel}
*
* <p>CreateSecretResponse</p>
*/
public class CreateSecretResponse 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 CreateSecretResponseBody body;
private CreateSecretResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateSecretResponse 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 CreateSecretResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateSecretResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateSecretResponseBody body);
@Override
CreateSecretResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSecretResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateSecretResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSecretResponse 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(CreateSecretResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateSecretResponse build() {
return new CreateSecretResponse(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/CreateSecretResponseBody.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 CreateSecretResponseBody} extends {@link TeaModel}
*
* <p>CreateSecretResponseBody</p>
*/
public class CreateSecretResponseBody 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 CreateSecretResponseBody(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 CreateSecretResponseBody 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(CreateSecretResponseBody 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 CreateSecretResponseBody build() {
return new CreateSecretResponseBody(this);
}
}
/**
*
* {@link CreateSecretResponseBody} extends {@link TeaModel}
*
* <p>CreateSecretResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecretId")
private Long secretId;
private Data(Builder builder) {
this.secretId = builder.secretId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return secretId
*/
public Long getSecretId() {
return this.secretId;
}
public static final class Builder {
private Long secretId;
private Builder() {
}
private Builder(Data model) {
this.secretId = model.secretId;
}
/**
* SecretId.
*/
public Builder secretId(Long secretId) {
this.secretId = secretId;
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/CreateSlsIndexRequest.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 CreateSlsIndexRequest} extends {@link RequestModel}
*
* <p>CreateSlsIndexRequest</p>
*/
public class CreateSlsIndexRequest extends Request {
@com.aliyun.core.annotation.NameInMap("logstore")
private String logstore;
@com.aliyun.core.annotation.NameInMap("project")
private String project;
private CreateSlsIndexRequest(Builder builder) {
super(builder);
this.logstore = builder.logstore;
this.project = builder.project;
}
public static Builder builder() {
return new Builder();
}
public static CreateSlsIndexRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return logstore
*/
public String getLogstore() {
return this.logstore;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
public static final class Builder extends Request.Builder<CreateSlsIndexRequest, Builder> {
private String logstore;
private String project;
private Builder() {
super();
}
private Builder(CreateSlsIndexRequest request) {
super(request);
this.logstore = request.logstore;
this.project = request.project;
}
/**
* logstore.
*/
public Builder logstore(String logstore) {
this.logstore = logstore;
return this;
}
/**
* project.
*/
public Builder project(String project) {
this.project = project;
return this;
}
@Override
public CreateSlsIndexRequest build() {
return new CreateSlsIndexRequest(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/CreateSlsIndexResponse.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 CreateSlsIndexResponse} extends {@link TeaModel}
*
* <p>CreateSlsIndexResponse</p>
*/
public class CreateSlsIndexResponse extends Response {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("logStore")
private String logStore;
@com.aliyun.core.annotation.NameInMap("project")
private String project;
private CreateSlsIndexResponse(BuilderImpl builder) {
super(builder);
this.requestId = builder.requestId;
this.logStore = builder.logStore;
this.project = builder.project;
}
public static CreateSlsIndexResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
public interface Builder extends Response.Builder<CreateSlsIndexResponse, Builder> {
Builder requestId(String requestId);
Builder logStore(String logStore);
Builder project(String project);
@Override
CreateSlsIndexResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSlsIndexResponse, Builder>
implements Builder {
private String requestId;
private String logStore;
private String project;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSlsIndexResponse response) {
super(response);
this.requestId = response.requestId;
this.logStore = response.logStore;
this.project = response.project;
}
/**
* RequestId.
*/
@Override
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* logStore.
*/
@Override
public Builder logStore(String logStore) {
this.logStore = logStore;
return this;
}
/**
* project.
*/
@Override
public Builder project(String project) {
this.project = project;
return this;
}
@Override
public CreateSlsIndexResponse build() {
return new CreateSlsIndexResponse(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/CreateSlsResourceResponse.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 CreateSlsResourceResponse} extends {@link TeaModel}
*
* <p>CreateSlsResourceResponse</p>
*/
public class CreateSlsResourceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("logStore")
private String logStore;
@com.aliyun.core.annotation.NameInMap("project")
private String project;
@com.aliyun.core.annotation.NameInMap("requestId")
private String requestId;
private CreateSlsResourceResponse(BuilderImpl builder) {
super(builder);
this.logStore = builder.logStore;
this.project = builder.project;
this.requestId = builder.requestId;
}
public static CreateSlsResourceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return logStore
*/
public String getLogStore() {
return this.logStore;
}
/**
* @return project
*/
public String getProject() {
return this.project;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public interface Builder extends Response.Builder<CreateSlsResourceResponse, Builder> {
Builder logStore(String logStore);
Builder project(String project);
Builder requestId(String requestId);
@Override
CreateSlsResourceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSlsResourceResponse, Builder>
implements Builder {
private String logStore;
private String project;
private String requestId;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSlsResourceResponse response) {
super(response);
this.logStore = response.logStore;
this.project = response.project;
this.requestId = response.requestId;
}
/**
* logStore.
*/
@Override
public Builder logStore(String logStore) {
this.logStore = logStore;
return this;
}
/**
* project.
*/
@Override
public Builder project(String project) {
this.project = project;
return this;
}
/**
* requestId.
*/
@Override
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
@Override
public CreateSlsResourceResponse build() {
return new CreateSlsResourceResponse(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/CreateWebApplicationInput.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 CreateWebApplicationInput} extends {@link TeaModel}
*
* <p>CreateWebApplicationInput</p>
*/
public class CreateWebApplicationInput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApplicationName")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 128, minLength = 1)
private String applicationName;
@com.aliyun.core.annotation.NameInMap("Description")
@com.aliyun.core.annotation.Validation(maxLength = 256)
private String description;
@com.aliyun.core.annotation.NameInMap("RevisionConfig")
@com.aliyun.core.annotation.Validation(required = true)
private RevisionConfig revisionConfig;
@com.aliyun.core.annotation.NameInMap("WebNetworkConfig")
private WebNetworkConfig webNetworkConfig;
@com.aliyun.core.annotation.NameInMap("WebScalingConfig")
private WebScalingConfig webScalingConfig;
@com.aliyun.core.annotation.NameInMap("WebTrafficConfig")
private WebTrafficConfig webTrafficConfig;
private CreateWebApplicationInput(Builder builder) {
this.applicationName = builder.applicationName;
this.description = builder.description;
this.revisionConfig = builder.revisionConfig;
this.webNetworkConfig = builder.webNetworkConfig;
this.webScalingConfig = builder.webScalingConfig;
this.webTrafficConfig = builder.webTrafficConfig;
}
public static Builder builder() {
return new Builder();
}
public static CreateWebApplicationInput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationName
*/
public String getApplicationName() {
return this.applicationName;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return revisionConfig
*/
public RevisionConfig getRevisionConfig() {
return this.revisionConfig;
}
/**
* @return webNetworkConfig
*/
public WebNetworkConfig getWebNetworkConfig() {
return this.webNetworkConfig;
}
/**
* @return webScalingConfig
*/
public WebScalingConfig getWebScalingConfig() {
return this.webScalingConfig;
}
/**
* @return webTrafficConfig
*/
public WebTrafficConfig getWebTrafficConfig() {
return this.webTrafficConfig;
}
public static final class Builder {
private String applicationName;
private String description;
private RevisionConfig revisionConfig;
private WebNetworkConfig webNetworkConfig;
private WebScalingConfig webScalingConfig;
private WebTrafficConfig webTrafficConfig;
private Builder() {
}
private Builder(CreateWebApplicationInput model) {
this.applicationName = model.applicationName;
this.description = model.description;
this.revisionConfig = model.revisionConfig;
this.webNetworkConfig = model.webNetworkConfig;
this.webScalingConfig = model.webScalingConfig;
this.webTrafficConfig = model.webTrafficConfig;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>sae-app</p>
*/
public Builder applicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder revisionConfig(RevisionConfig revisionConfig) {
this.revisionConfig = revisionConfig;
return this;
}
/**
* WebNetworkConfig.
*/
public Builder webNetworkConfig(WebNetworkConfig webNetworkConfig) {
this.webNetworkConfig = webNetworkConfig;
return this;
}
/**
* WebScalingConfig.
*/
public Builder webScalingConfig(WebScalingConfig webScalingConfig) {
this.webScalingConfig = webScalingConfig;
return this;
}
/**
* WebTrafficConfig.
*/
public Builder webTrafficConfig(WebTrafficConfig webTrafficConfig) {
this.webTrafficConfig = webTrafficConfig;
return this;
}
public CreateWebApplicationInput build() {
return new CreateWebApplicationInput(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/CreateWebApplicationRequest.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 CreateWebApplicationRequest} extends {@link RequestModel}
*
* <p>CreateWebApplicationRequest</p>
*/
public class CreateWebApplicationRequest 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.Body
@com.aliyun.core.annotation.NameInMap("body")
@com.aliyun.core.annotation.Validation(required = true)
private CreateWebApplicationInput body;
private CreateWebApplicationRequest(Builder builder) {
super(builder);
this.namespaceId = builder.namespaceId;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateWebApplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return body
*/
public CreateWebApplicationInput getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateWebApplicationRequest, Builder> {
private String namespaceId;
private CreateWebApplicationInput body;
private Builder() {
super();
}
private Builder(CreateWebApplicationRequest request) {
super(request);
this.namespaceId = request.namespaceId;
this.body = request.body;
}
/**
* <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;
}
/**
* <p>The information about the application.</p>
* <p>This parameter is required.</p>
*/
public Builder body(CreateWebApplicationInput body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateWebApplicationRequest build() {
return new CreateWebApplicationRequest(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/CreateWebApplicationResponse.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 CreateWebApplicationResponse} extends {@link TeaModel}
*
* <p>CreateWebApplicationResponse</p>
*/
public class CreateWebApplicationResponse 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 CreateWebApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateWebApplicationResponse 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<CreateWebApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationBody body);
@Override
CreateWebApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateWebApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateWebApplicationResponse 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 CreateWebApplicationResponse build() {
return new CreateWebApplicationResponse(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/CreateWebCustomDomainInput.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 CreateWebCustomDomainInput} extends {@link TeaModel}
*
* <p>CreateWebCustomDomainInput</p>
*/
public class CreateWebCustomDomainInput extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DefaultForwardingAppName")
private String defaultForwardingAppName;
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 256, minLength = 1)
private String domainName;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("RouteConfig")
private RouteConfig routeConfig;
@com.aliyun.core.annotation.NameInMap("WebCertConfig")
private WebCertConfig webCertConfig;
@com.aliyun.core.annotation.NameInMap("WebTLSConfig")
private WebTLSConfig webTLSConfig;
@com.aliyun.core.annotation.NameInMap("WebWAFConfig")
private WebWAFConfig webWAFConfig;
private CreateWebCustomDomainInput(Builder builder) {
this.defaultForwardingAppName = builder.defaultForwardingAppName;
this.domainName = builder.domainName;
this.protocol = builder.protocol;
this.routeConfig = builder.routeConfig;
this.webCertConfig = builder.webCertConfig;
this.webTLSConfig = builder.webTLSConfig;
this.webWAFConfig = builder.webWAFConfig;
}
public static Builder builder() {
return new Builder();
}
public static CreateWebCustomDomainInput create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return defaultForwardingAppName
*/
public String getDefaultForwardingAppName() {
return this.defaultForwardingAppName;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return routeConfig
*/
public RouteConfig getRouteConfig() {
return this.routeConfig;
}
/**
* @return webCertConfig
*/
public WebCertConfig getWebCertConfig() {
return this.webCertConfig;
}
/**
* @return webTLSConfig
*/
public WebTLSConfig getWebTLSConfig() {
return this.webTLSConfig;
}
/**
* @return webWAFConfig
*/
public WebWAFConfig getWebWAFConfig() {
return this.webWAFConfig;
}
public static final class Builder {
private String defaultForwardingAppName;
private String domainName;
private String protocol;
private RouteConfig routeConfig;
private WebCertConfig webCertConfig;
private WebTLSConfig webTLSConfig;
private WebWAFConfig webWAFConfig;
private Builder() {
}
private Builder(CreateWebCustomDomainInput model) {
this.defaultForwardingAppName = model.defaultForwardingAppName;
this.domainName = model.domainName;
this.protocol = model.protocol;
this.routeConfig = model.routeConfig;
this.webCertConfig = model.webCertConfig;
this.webTLSConfig = model.webTLSConfig;
this.webWAFConfig = model.webWAFConfig;
}
/**
* DefaultForwardingAppName.
*/
public Builder defaultForwardingAppName(String defaultForwardingAppName) {
this.defaultForwardingAppName = defaultForwardingAppName;
return this;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* Protocol.
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* RouteConfig.
*/
public Builder routeConfig(RouteConfig routeConfig) {
this.routeConfig = routeConfig;
return this;
}
/**
* WebCertConfig.
*/
public Builder webCertConfig(WebCertConfig webCertConfig) {
this.webCertConfig = webCertConfig;
return this;
}
/**
* WebTLSConfig.
*/
public Builder webTLSConfig(WebTLSConfig webTLSConfig) {
this.webTLSConfig = webTLSConfig;
return this;
}
/**
* WebWAFConfig.
*/
public Builder webWAFConfig(WebWAFConfig webWAFConfig) {
this.webWAFConfig = webWAFConfig;
return this;
}
public CreateWebCustomDomainInput build() {
return new CreateWebCustomDomainInput(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/CreateWebCustomDomainRequest.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 CreateWebCustomDomainRequest} extends {@link RequestModel}
*
* <p>CreateWebCustomDomainRequest</p>
*/
public class CreateWebCustomDomainRequest 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.Body
@com.aliyun.core.annotation.NameInMap("body")
@com.aliyun.core.annotation.Validation(required = true)
private CreateWebCustomDomainInput body;
private CreateWebCustomDomainRequest(Builder builder) {
super(builder);
this.namespaceId = builder.namespaceId;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static CreateWebCustomDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
/**
* @return body
*/
public CreateWebCustomDomainInput getBody() {
return this.body;
}
public static final class Builder extends Request.Builder<CreateWebCustomDomainRequest, Builder> {
private String namespaceId;
private CreateWebCustomDomainInput body;
private Builder() {
super();
}
private Builder(CreateWebCustomDomainRequest request) {
super(request);
this.namespaceId = request.namespaceId;
this.body = request.body;
}
/**
* <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 information about custom domain name.</p>
* <p>This parameter is required.</p>
*/
public Builder body(CreateWebCustomDomainInput body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public CreateWebCustomDomainRequest build() {
return new CreateWebCustomDomainRequest(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/CreateWebCustomDomainResponse.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 CreateWebCustomDomainResponse} extends {@link TeaModel}
*
* <p>CreateWebCustomDomainResponse</p>
*/
public class CreateWebCustomDomainResponse 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 WebCustomDomainBody body;
private CreateWebCustomDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateWebCustomDomainResponse 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 WebCustomDomainBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateWebCustomDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebCustomDomainBody body);
@Override
CreateWebCustomDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateWebCustomDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebCustomDomainBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateWebCustomDomainResponse 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(WebCustomDomainBody body) {
this.body = body;
return this;
}
@Override
public CreateWebCustomDomainResponse build() {
return new CreateWebCustomDomainResponse(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/CustomDNS.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 CustomDNS} extends {@link TeaModel}
*
* <p>CustomDNS</p>
*/
public class CustomDNS extends TeaModel {
@com.aliyun.core.annotation.NameInMap("dnsOptions")
private java.util.List<DNSOption> dnsOptions;
@com.aliyun.core.annotation.NameInMap("nameServers")
private java.util.List<String> nameServers;
@com.aliyun.core.annotation.NameInMap("searches")
private java.util.List<String> searches;
private CustomDNS(Builder builder) {
this.dnsOptions = builder.dnsOptions;
this.nameServers = builder.nameServers;
this.searches = builder.searches;
}
public static Builder builder() {
return new Builder();
}
public static CustomDNS create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dnsOptions
*/
public java.util.List<DNSOption> getDnsOptions() {
return this.dnsOptions;
}
/**
* @return nameServers
*/
public java.util.List<String> getNameServers() {
return this.nameServers;
}
/**
* @return searches
*/
public java.util.List<String> getSearches() {
return this.searches;
}
public static final class Builder {
private java.util.List<DNSOption> dnsOptions;
private java.util.List<String> nameServers;
private java.util.List<String> searches;
private Builder() {
}
private Builder(CustomDNS model) {
this.dnsOptions = model.dnsOptions;
this.nameServers = model.nameServers;
this.searches = model.searches;
}
/**
* dnsOptions.
*/
public Builder dnsOptions(java.util.List<DNSOption> dnsOptions) {
this.dnsOptions = dnsOptions;
return this;
}
/**
* nameServers.
*/
public Builder nameServers(java.util.List<String> nameServers) {
this.nameServers = nameServers;
return this;
}
/**
* searches.
*/
public Builder searches(java.util.List<String> searches) {
this.searches = searches;
return this;
}
public CustomDNS build() {
return new CustomDNS(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/CustomDomain.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 CustomDomain} extends {@link TeaModel}
*
* <p>CustomDomain</p>
*/
public class CustomDomain extends TeaModel {
@com.aliyun.core.annotation.NameInMap("accountId")
private String accountId;
@com.aliyun.core.annotation.NameInMap("apiVersion")
private String apiVersion;
@com.aliyun.core.annotation.NameInMap("certConfig")
private CertConfig certConfig;
@com.aliyun.core.annotation.NameInMap("createdTime")
private String createdTime;
@com.aliyun.core.annotation.NameInMap("domainName")
private String domainName;
@com.aliyun.core.annotation.NameInMap("keepFullPath")
private Boolean keepFullPath;
@com.aliyun.core.annotation.NameInMap("lastModifiedTime")
private String lastModifiedTime;
@com.aliyun.core.annotation.NameInMap("namespaceID")
private String namespaceID;
@com.aliyun.core.annotation.NameInMap("protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("requestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("routeConfig")
private RouteConfig routeConfig;
@com.aliyun.core.annotation.NameInMap("subdomainCount")
private String subdomainCount;
@com.aliyun.core.annotation.NameInMap("tlsConfig")
private TLSConfig tlsConfig;
@com.aliyun.core.annotation.NameInMap("wafConfig")
private WAFConfig wafConfig;
private CustomDomain(Builder builder) {
this.accountId = builder.accountId;
this.apiVersion = builder.apiVersion;
this.certConfig = builder.certConfig;
this.createdTime = builder.createdTime;
this.domainName = builder.domainName;
this.keepFullPath = builder.keepFullPath;
this.lastModifiedTime = builder.lastModifiedTime;
this.namespaceID = builder.namespaceID;
this.protocol = builder.protocol;
this.requestId = builder.requestId;
this.routeConfig = builder.routeConfig;
this.subdomainCount = builder.subdomainCount;
this.tlsConfig = builder.tlsConfig;
this.wafConfig = builder.wafConfig;
}
public static Builder builder() {
return new Builder();
}
public static CustomDomain create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return apiVersion
*/
public String getApiVersion() {
return this.apiVersion;
}
/**
* @return certConfig
*/
public CertConfig getCertConfig() {
return this.certConfig;
}
/**
* @return createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return keepFullPath
*/
public Boolean getKeepFullPath() {
return this.keepFullPath;
}
/**
* @return lastModifiedTime
*/
public String getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return namespaceID
*/
public String getNamespaceID() {
return this.namespaceID;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeConfig
*/
public RouteConfig getRouteConfig() {
return this.routeConfig;
}
/**
* @return subdomainCount
*/
public String getSubdomainCount() {
return this.subdomainCount;
}
/**
* @return tlsConfig
*/
public TLSConfig getTlsConfig() {
return this.tlsConfig;
}
/**
* @return wafConfig
*/
public WAFConfig getWafConfig() {
return this.wafConfig;
}
public static final class Builder {
private String accountId;
private String apiVersion;
private CertConfig certConfig;
private String createdTime;
private String domainName;
private Boolean keepFullPath;
private String lastModifiedTime;
private String namespaceID;
private String protocol;
private String requestId;
private RouteConfig routeConfig;
private String subdomainCount;
private TLSConfig tlsConfig;
private WAFConfig wafConfig;
private Builder() {
}
private Builder(CustomDomain model) {
this.accountId = model.accountId;
this.apiVersion = model.apiVersion;
this.certConfig = model.certConfig;
this.createdTime = model.createdTime;
this.domainName = model.domainName;
this.keepFullPath = model.keepFullPath;
this.lastModifiedTime = model.lastModifiedTime;
this.namespaceID = model.namespaceID;
this.protocol = model.protocol;
this.requestId = model.requestId;
this.routeConfig = model.routeConfig;
this.subdomainCount = model.subdomainCount;
this.tlsConfig = model.tlsConfig;
this.wafConfig = model.wafConfig;
}
/**
* accountId.
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* apiVersion.
*/
public Builder apiVersion(String apiVersion) {
this.apiVersion = apiVersion;
return this;
}
/**
* certConfig.
*/
public Builder certConfig(CertConfig certConfig) {
this.certConfig = certConfig;
return this;
}
/**
* createdTime.
*/
public Builder createdTime(String createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* domainName.
*/
public Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* keepFullPath.
*/
public Builder keepFullPath(Boolean keepFullPath) {
this.keepFullPath = keepFullPath;
return this;
}
/**
* lastModifiedTime.
*/
public Builder lastModifiedTime(String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
/**
* namespaceID.
*/
public Builder namespaceID(String namespaceID) {
this.namespaceID = namespaceID;
return this;
}
/**
* protocol.
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* requestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* routeConfig.
*/
public Builder routeConfig(RouteConfig routeConfig) {
this.routeConfig = routeConfig;
return this;
}
/**
* subdomainCount.
*/
public Builder subdomainCount(String subdomainCount) {
this.subdomainCount = subdomainCount;
return this;
}
/**
* tlsConfig.
*/
public Builder tlsConfig(TLSConfig tlsConfig) {
this.tlsConfig = tlsConfig;
return this;
}
/**
* wafConfig.
*/
public Builder wafConfig(WAFConfig wafConfig) {
this.wafConfig = wafConfig;
return this;
}
public CustomDomain build() {
return new CustomDomain(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/CustomHealthCheckConfig.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 CustomHealthCheckConfig} extends {@link TeaModel}
*
* <p>CustomHealthCheckConfig</p>
*/
public class CustomHealthCheckConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("failureThreshold")
private Integer failureThreshold;
@com.aliyun.core.annotation.NameInMap("httpGetUrl")
private String httpGetUrl;
@com.aliyun.core.annotation.NameInMap("initialDelaySeconds")
private Integer initialDelaySeconds;
@com.aliyun.core.annotation.NameInMap("periodSeconds")
private Integer periodSeconds;
@com.aliyun.core.annotation.NameInMap("successThreshold")
private Integer successThreshold;
@com.aliyun.core.annotation.NameInMap("timeoutSeconds")
private Integer timeoutSeconds;
private CustomHealthCheckConfig(Builder builder) {
this.failureThreshold = builder.failureThreshold;
this.httpGetUrl = builder.httpGetUrl;
this.initialDelaySeconds = builder.initialDelaySeconds;
this.periodSeconds = builder.periodSeconds;
this.successThreshold = builder.successThreshold;
this.timeoutSeconds = builder.timeoutSeconds;
}
public static Builder builder() {
return new Builder();
}
public static CustomHealthCheckConfig create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return failureThreshold
*/
public Integer getFailureThreshold() {
return this.failureThreshold;
}
/**
* @return httpGetUrl
*/
public String getHttpGetUrl() {
return this.httpGetUrl;
}
/**
* @return initialDelaySeconds
*/
public Integer getInitialDelaySeconds() {
return this.initialDelaySeconds;
}
/**
* @return periodSeconds
*/
public Integer getPeriodSeconds() {
return this.periodSeconds;
}
/**
* @return successThreshold
*/
public Integer getSuccessThreshold() {
return this.successThreshold;
}
/**
* @return timeoutSeconds
*/
public Integer getTimeoutSeconds() {
return this.timeoutSeconds;
}
public static final class Builder {
private Integer failureThreshold;
private String httpGetUrl;
private Integer initialDelaySeconds;
private Integer periodSeconds;
private Integer successThreshold;
private Integer timeoutSeconds;
private Builder() {
}
private Builder(CustomHealthCheckConfig model) {
this.failureThreshold = model.failureThreshold;
this.httpGetUrl = model.httpGetUrl;
this.initialDelaySeconds = model.initialDelaySeconds;
this.periodSeconds = model.periodSeconds;
this.successThreshold = model.successThreshold;
this.timeoutSeconds = model.timeoutSeconds;
}
/**
* failureThreshold.
*/
public Builder failureThreshold(Integer failureThreshold) {
this.failureThreshold = failureThreshold;
return this;
}
/**
* httpGetUrl.
*/
public Builder httpGetUrl(String httpGetUrl) {
this.httpGetUrl = httpGetUrl;
return this;
}
/**
* initialDelaySeconds.
*/
public Builder initialDelaySeconds(Integer initialDelaySeconds) {
this.initialDelaySeconds = initialDelaySeconds;
return this;
}
/**
* periodSeconds.
*/
public Builder periodSeconds(Integer periodSeconds) {
this.periodSeconds = periodSeconds;
return this;
}
/**
* successThreshold.
*/
public Builder successThreshold(Integer successThreshold) {
this.successThreshold = successThreshold;
return this;
}
/**
* timeoutSeconds.
*/
public Builder timeoutSeconds(Integer timeoutSeconds) {
this.timeoutSeconds = timeoutSeconds;
return this;
}
public CustomHealthCheckConfig build() {
return new CustomHealthCheckConfig(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/CustomHostAlias.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 CustomHostAlias} extends {@link TeaModel}
*
* <p>CustomHostAlias</p>
*/
public class CustomHostAlias extends TeaModel {
@com.aliyun.core.annotation.NameInMap("hostAliases")
private java.util.List<HostAlias> hostAliases;
private CustomHostAlias(Builder builder) {
this.hostAliases = builder.hostAliases;
}
public static Builder builder() {
return new Builder();
}
public static CustomHostAlias create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hostAliases
*/
public java.util.List<HostAlias> getHostAliases() {
return this.hostAliases;
}
public static final class Builder {
private java.util.List<HostAlias> hostAliases;
private Builder() {
}
private Builder(CustomHostAlias model) {
this.hostAliases = model.hostAliases;
}
/**
* hostAliases.
*/
public Builder hostAliases(java.util.List<HostAlias> hostAliases) {
this.hostAliases = hostAliases;
return this;
}
public CustomHostAlias build() {
return new CustomHostAlias(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/CustomRuntimeConfig.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 CustomRuntimeConfig} extends {@link TeaModel}
*
* <p>CustomRuntimeConfig</p>
*/
public class CustomRuntimeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("args")
private java.util.List<String> args;
@com.aliyun.core.annotation.NameInMap("command")
private java.util.List<String> command;
private CustomRuntimeConfig(Builder builder) {
this.args = builder.args;
this.command = builder.command;
}
public static Builder builder() {
return new Builder();
}
public static CustomRuntimeConfig create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return args
*/
public java.util.List<String> getArgs() {
return this.args;
}
/**
* @return command
*/
public java.util.List<String> getCommand() {
return this.command;
}
public static final class Builder {
private java.util.List<String> args;
private java.util.List<String> command;
private Builder() {
}
private Builder(CustomRuntimeConfig model) {
this.args = model.args;
this.command = model.command;
}
/**
* args.
*/
public Builder args(java.util.List<String> args) {
this.args = args;
return this;
}
/**
* command.
*/
public Builder command(java.util.List<String> command) {
this.command = command;
return this;
}
public CustomRuntimeConfig build() {
return new CustomRuntimeConfig(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/DNSOption.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 DNSOption} extends {@link TeaModel}
*
* <p>DNSOption</p>
*/
public class DNSOption extends TeaModel {
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(maxLength = 256)
private String name;
@com.aliyun.core.annotation.NameInMap("value")
@com.aliyun.core.annotation.Validation(maxLength = 256)
private String value;
private DNSOption(Builder builder) {
this.name = builder.name;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static DNSOption create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String name;
private String value;
private Builder() {
}
private Builder(DNSOption model) {
this.name = model.name;
this.value = model.value;
}
/**
* name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public DNSOption build() {
return new DNSOption(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/DataInstancesValue.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 DataInstancesValue} extends {@link TeaModel}
*
* <p>DataInstancesValue</p>
*/
public class DataInstancesValue extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DnsName")
private String dnsName;
@com.aliyun.core.annotation.NameInMap("Listeners")
private java.util.Map<String, DataInstancesValueListenersValue> listeners;
@com.aliyun.core.annotation.NameInMap("CreatedBySae")
private Boolean createdBySae;
private DataInstancesValue(Builder builder) {
this.dnsName = builder.dnsName;
this.listeners = builder.listeners;
this.createdBySae = builder.createdBySae;
}
public static Builder builder() {
return new Builder();
}
public static DataInstancesValue create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dnsName
*/
public String getDnsName() {
return this.dnsName;
}
/**
* @return listeners
*/
public java.util.Map<String, DataInstancesValueListenersValue> getListeners() {
return this.listeners;
}
/**
* @return createdBySae
*/
public Boolean getCreatedBySae() {
return this.createdBySae;
}
public static final class Builder {
private String dnsName;
private java.util.Map<String, DataInstancesValueListenersValue> listeners;
private Boolean createdBySae;
private Builder() {
}
private Builder(DataInstancesValue model) {
this.dnsName = model.dnsName;
this.listeners = model.listeners;
this.createdBySae = model.createdBySae;
}
/**
* <p>The domain name.</p>
*
* <strong>example:</strong>
* <p>nlb-wb7r6dlwetvt5j****.cn-hangzhou.nlb.aliyuncs.com</p>
*/
public Builder dnsName(String dnsName) {
this.dnsName = dnsName;
return this;
}
/**
* <p>The listeners.</p>
*/
public Builder listeners(java.util.Map<String, DataInstancesValueListenersValue> listeners) {
this.listeners = listeners;
return this;
}
/**
* <p>Indicates whether the instance is created by SAE.</p>
* <ul>
* <li><strong>true</strong>: The instance is created by SAE.</li>
* <li><strong>false</strong>: The existing instance is reused.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder createdBySae(Boolean createdBySae) {
this.createdBySae = createdBySae;
return this;
}
public DataInstancesValue build() {
return new DataInstancesValue(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/DataInstancesValueListenersValue.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 DataInstancesValueListenersValue} extends {@link TeaModel}
*
* <p>DataInstancesValueListenersValue</p>
*/
public class DataInstancesValueListenersValue extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("Port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TargetPort")
private Integer targetPort;
@com.aliyun.core.annotation.NameInMap("CertIds")
private String certIds;
private DataInstancesValueListenersValue(Builder builder) {
this.protocol = builder.protocol;
this.port = builder.port;
this.status = builder.status;
this.targetPort = builder.targetPort;
this.certIds = builder.certIds;
}
public static Builder builder() {
return new Builder();
}
public static DataInstancesValueListenersValue create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return targetPort
*/
public Integer getTargetPort() {
return this.targetPort;
}
/**
* @return certIds
*/
public String getCertIds() {
return this.certIds;
}
public static final class Builder {
private String protocol;
private Integer port;
private String status;
private Integer targetPort;
private String certIds;
private Builder() {
}
private Builder(DataInstancesValueListenersValue model) {
this.protocol = model.protocol;
this.port = model.port;
this.status = model.status;
this.targetPort = model.targetPort;
this.certIds = model.certIds;
}
/**
* <p>The listener protocol.</p>
*
* <strong>example:</strong>
* <p>TCPSSL</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The listener port of the NLB instance.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* <p>The status of the NLB listener.</p>
* <ul>
* <li><strong>Creating</strong>: The listener is being created.</li>
* <li><strong>Configuring</strong>: The listener is being configured.</li>
* <li><strong>Bounded</strong>: The listener runs as expected.</li>
* <li><strong>Unbinding</strong>: The listener is being deleted.</li>
* <li><strong>Failed</strong>: The listener is unavailable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Bounded</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The open ports of the NLB instance.</p>
*
* <strong>example:</strong>
* <p>8080</p>
*/
public Builder targetPort(Integer targetPort) {
this.targetPort = targetPort;
return this;
}
/**
* <p>The server certificates.</p>
*
* <strong>example:</strong>
* <p>123157******</p>
*/
public Builder certIds(String certIds) {
this.certIds = certIds;
return this;
}
public DataInstancesValueListenersValue build() {
return new DataInstancesValueListenersValue(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/DeleteApplicationRequest.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 DeleteApplicationRequest} extends {@link RequestModel}
*
* <p>DeleteApplicationRequest</p>
*/
public class DeleteApplicationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
private DeleteApplicationRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteApplicationRequest 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<DeleteApplicationRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DeleteApplicationRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>The ID of the application.</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 DeleteApplicationRequest build() {
return new DeleteApplicationRequest(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/DeleteApplicationResponse.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 DeleteApplicationResponse} extends {@link TeaModel}
*
* <p>DeleteApplicationResponse</p>
*/
public class DeleteApplicationResponse 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 DeleteApplicationResponseBody body;
private DeleteApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteApplicationResponse 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 DeleteApplicationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteApplicationResponseBody body);
@Override
DeleteApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteApplicationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteApplicationResponse 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(DeleteApplicationResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteApplicationResponse build() {
return new DeleteApplicationResponse(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/DeleteApplicationResponseBody.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 DeleteApplicationResponseBody} extends {@link TeaModel}
*
* <p>DeleteApplicationResponseBody</p>
*/
public class DeleteApplicationResponseBody 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 DeleteApplicationResponseBody(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 DeleteApplicationResponseBody 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(DeleteApplicationResponseBody 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 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. 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>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the application is deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The applications were deleted</li>
* <li><strong>false</strong>: The applications failed to be deleted.</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 DeleteApplicationResponseBody build() {
return new DeleteApplicationResponseBody(this);
}
}
/**
*
* {@link DeleteApplicationResponseBody} extends {@link TeaModel}
*
* <p>DeleteApplicationResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
private Data(Builder builder) {
this.changeOrderId = builder.changeOrderId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
public static final class Builder {
private String changeOrderId;
private Builder() {
}
private Builder(Data model) {
this.changeOrderId = model.changeOrderId;
}
/**
* <p>The ID of the change order. The ID can be used to query the status of the change task.</p>
*
* <strong>example:</strong>
* <p>01db03d3-3ee9-48b3-b3d0-dfce2d88****</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
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/DeleteApplicationScalingRuleRequest.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 DeleteApplicationScalingRuleRequest} extends {@link RequestModel}
*
* <p>DeleteApplicationScalingRuleRequest</p>
*/
public class DeleteApplicationScalingRuleRequest 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 DeleteApplicationScalingRuleRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.scalingRuleName = builder.scalingRuleName;
}
public static Builder builder() {
return new Builder();
}
public static DeleteApplicationScalingRuleRequest 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<DeleteApplicationScalingRuleRequest, Builder> {
private String appId;
private String scalingRuleName;
private Builder() {
super();
}
private Builder(DeleteApplicationScalingRuleRequest request) {
super(request);
this.appId = request.appId;
this.scalingRuleName = request.scalingRuleName;
}
/**
* <p>The ID of the request.</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 ID of the trace. The ID is used to query the details of a request.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>timer-0800-2100</p>
*/
public Builder scalingRuleName(String scalingRuleName) {
this.putQueryParameter("ScalingRuleName", scalingRuleName);
this.scalingRuleName = scalingRuleName;
return this;
}
@Override
public DeleteApplicationScalingRuleRequest build() {
return new DeleteApplicationScalingRuleRequest(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/DeleteApplicationScalingRuleResponse.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 DeleteApplicationScalingRuleResponse} extends {@link TeaModel}
*
* <p>DeleteApplicationScalingRuleResponse</p>
*/
public class DeleteApplicationScalingRuleResponse 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 DeleteApplicationScalingRuleResponseBody body;
private DeleteApplicationScalingRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteApplicationScalingRuleResponse 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 DeleteApplicationScalingRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteApplicationScalingRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteApplicationScalingRuleResponseBody body);
@Override
DeleteApplicationScalingRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteApplicationScalingRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteApplicationScalingRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteApplicationScalingRuleResponse 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(DeleteApplicationScalingRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteApplicationScalingRuleResponse build() {
return new DeleteApplicationScalingRuleResponse(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/DeleteApplicationScalingRuleResponseBody.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 DeleteApplicationScalingRuleResponseBody} extends {@link TeaModel}
*
* <p>DeleteApplicationScalingRuleResponseBody</p>
*/
public class DeleteApplicationScalingRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@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 DeleteApplicationScalingRuleResponseBody(Builder builder) {
this.code = builder.code;
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 DeleteApplicationScalingRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @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 errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DeleteApplicationScalingRuleResponseBody model) {
this.code = model.code;
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;
}
/**
* 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 DeleteApplicationScalingRuleResponseBody build() {
return new DeleteApplicationScalingRuleResponseBody(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/DeleteConfigMapRequest.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 DeleteConfigMapRequest} extends {@link RequestModel}
*
* <p>DeleteConfigMapRequest</p>
*/
public class DeleteConfigMapRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
@com.aliyun.core.annotation.Validation(required = true)
private Long configMapId;
private DeleteConfigMapRequest(Builder builder) {
super(builder);
this.configMapId = builder.configMapId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteConfigMapRequest 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<DeleteConfigMapRequest, Builder> {
private Long configMapId;
private Builder() {
super();
}
private Builder(DeleteConfigMapRequest request) {
super(request);
this.configMapId = request.configMapId;
}
/**
* <p>The ID of the ConfigMap that you want to delete. 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 DeleteConfigMapRequest build() {
return new DeleteConfigMapRequest(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/DeleteConfigMapResponse.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 DeleteConfigMapResponse} extends {@link TeaModel}
*
* <p>DeleteConfigMapResponse</p>
*/
public class DeleteConfigMapResponse 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 DeleteConfigMapResponseBody body;
private DeleteConfigMapResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteConfigMapResponse 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 DeleteConfigMapResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteConfigMapResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteConfigMapResponseBody body);
@Override
DeleteConfigMapResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteConfigMapResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteConfigMapResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteConfigMapResponse 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(DeleteConfigMapResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteConfigMapResponse build() {
return new DeleteConfigMapResponse(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/DeleteConfigMapResponseBody.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 DeleteConfigMapResponseBody} extends {@link TeaModel}
*
* <p>DeleteConfigMapResponseBody</p>
*/
public class DeleteConfigMapResponseBody 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 DeleteConfigMapResponseBody(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 DeleteConfigMapResponseBody 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(DeleteConfigMapResponseBody 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 ConfigMap was deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The ConfigMap was deleted.</li>
* <li><strong>false</strong>: The ConfigMap failed to be deleted.</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 DeleteConfigMapResponseBody build() {
return new DeleteConfigMapResponseBody(this);
}
}
/**
*
* {@link DeleteConfigMapResponseBody} extends {@link TeaModel}
*
* <p>DeleteConfigMapResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigMapId")
private Long configMapId;
private Data(Builder builder) {
this.configMapId = builder.configMapId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return configMapId
*/
public Long getConfigMapId() {
return this.configMapId;
}
public static final class Builder {
private Long configMapId;
private Builder() {
}
private Builder(Data model) {
this.configMapId = model.configMapId;
}
/**
* <p>The ID of the deleted ConfigMap.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder configMapId(Long configMapId) {
this.configMapId = configMapId;
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/DeleteGreyTagRouteRequest.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 DeleteGreyTagRouteRequest} extends {@link RequestModel}
*
* <p>DeleteGreyTagRouteRequest</p>
*/
public class DeleteGreyTagRouteRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GreyTagRouteId")
@com.aliyun.core.annotation.Validation(required = true)
private Long greyTagRouteId;
private DeleteGreyTagRouteRequest(Builder builder) {
super(builder);
this.greyTagRouteId = builder.greyTagRouteId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteGreyTagRouteRequest 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<DeleteGreyTagRouteRequest, Builder> {
private Long greyTagRouteId;
private Builder() {
super();
}
private Builder(DeleteGreyTagRouteRequest request) {
super(request);
this.greyTagRouteId = request.greyTagRouteId;
}
/**
* <p>The rule ID.</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 DeleteGreyTagRouteRequest build() {
return new DeleteGreyTagRouteRequest(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/DeleteGreyTagRouteResponse.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 DeleteGreyTagRouteResponse} extends {@link TeaModel}
*
* <p>DeleteGreyTagRouteResponse</p>
*/
public class DeleteGreyTagRouteResponse 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 DeleteGreyTagRouteResponseBody body;
private DeleteGreyTagRouteResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteGreyTagRouteResponse 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 DeleteGreyTagRouteResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteGreyTagRouteResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteGreyTagRouteResponseBody body);
@Override
DeleteGreyTagRouteResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteGreyTagRouteResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteGreyTagRouteResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteGreyTagRouteResponse 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(DeleteGreyTagRouteResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteGreyTagRouteResponse build() {
return new DeleteGreyTagRouteResponse(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/DeleteGreyTagRouteResponseBody.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 DeleteGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DeleteGreyTagRouteResponseBody</p>
*/
public class DeleteGreyTagRouteResponseBody 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 DeleteGreyTagRouteResponseBody(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 DeleteGreyTagRouteResponseBody 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(DeleteGreyTagRouteResponseBody 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. 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>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 DeleteGreyTagRouteResponseBody build() {
return new DeleteGreyTagRouteResponseBody(this);
}
}
/**
*
* {@link DeleteGreyTagRouteResponseBody} extends {@link TeaModel}
*
* <p>DeleteGreyTagRouteResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GreyTagRouteId")
private Long greyTagRouteId;
private Data(Builder builder) {
this.greyTagRouteId = builder.greyTagRouteId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return greyTagRouteId
*/
public Long getGreyTagRouteId() {
return this.greyTagRouteId;
}
public static final class Builder {
private Long greyTagRouteId;
private Builder() {
}
private Builder(Data model) {
this.greyTagRouteId = model.greyTagRouteId;
}
/**
* <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;
}
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/DeleteHistoryJobRequest.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 DeleteHistoryJobRequest} extends {@link RequestModel}
*
* <p>DeleteHistoryJobRequest</p>
*/
public class DeleteHistoryJobRequest 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")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
private DeleteHistoryJobRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.jobId = builder.jobId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteHistoryJobRequest 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<DeleteHistoryJobRequest, Builder> {
private String appId;
private String jobId;
private Builder() {
super();
}
private Builder(DeleteHistoryJobRequest request) {
super(request);
this.appId = request.appId;
this.jobId = request.jobId;
}
/**
* <p>The ID of the job template to which the job that you want to delete belongs.</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;
}
/**
* <p>The ID of the job.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>manual-3db7a8fa-5d40-4edc-92e4-49d50eab****</p>
*/
public Builder jobId(String jobId) {
this.putQueryParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
@Override
public DeleteHistoryJobRequest build() {
return new DeleteHistoryJobRequest(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/DeleteHistoryJobResponse.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 DeleteHistoryJobResponse} extends {@link TeaModel}
*
* <p>DeleteHistoryJobResponse</p>
*/
public class DeleteHistoryJobResponse 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 DeleteHistoryJobResponseBody body;
private DeleteHistoryJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteHistoryJobResponse 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 DeleteHistoryJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteHistoryJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteHistoryJobResponseBody body);
@Override
DeleteHistoryJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteHistoryJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteHistoryJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteHistoryJobResponse 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(DeleteHistoryJobResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteHistoryJobResponse build() {
return new DeleteHistoryJobResponse(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/DeleteHistoryJobResponseBody.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 DeleteHistoryJobResponseBody} extends {@link TeaModel}
*
* <p>DeleteHistoryJobResponseBody</p>
*/
public class DeleteHistoryJobResponseBody 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 DeleteHistoryJobResponseBody(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 DeleteHistoryJobResponseBody 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(DeleteHistoryJobResponseBody 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 result returned.</p>
*
* <strong>example:</strong>
* <p>{msg: "", code: 200, success: true}</p>
*/
public Builder data(String 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 information. 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 job was deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The job was deleted.</li>
* <li><strong>false</strong>: The job failed to be deleted.</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 DeleteHistoryJobResponseBody build() {
return new DeleteHistoryJobResponseBody(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/DeleteIngressRequest.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 DeleteIngressRequest} extends {@link RequestModel}
*
* <p>DeleteIngressRequest</p>
*/
public class DeleteIngressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IngressId")
@com.aliyun.core.annotation.Validation(required = true)
private Long ingressId;
private DeleteIngressRequest(Builder builder) {
super(builder);
this.ingressId = builder.ingressId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteIngressRequest 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<DeleteIngressRequest, Builder> {
private Long ingressId;
private Builder() {
super();
}
private Builder(DeleteIngressRequest request) {
super(request);
this.ingressId = request.ingressId;
}
/**
* <p>The ID of the routing rule that you want to delete. You can call the <a href="https://help.aliyun.com/document_detail/153934.html">ListIngresses</a> operation to obtain the ID of a routing rule.</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 DeleteIngressRequest build() {
return new DeleteIngressRequest(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/DeleteIngressResponse.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 DeleteIngressResponse} extends {@link TeaModel}
*
* <p>DeleteIngressResponse</p>
*/
public class DeleteIngressResponse 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 DeleteIngressResponseBody body;
private DeleteIngressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteIngressResponse 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 DeleteIngressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteIngressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteIngressResponseBody body);
@Override
DeleteIngressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteIngressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteIngressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteIngressResponse 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(DeleteIngressResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteIngressResponse build() {
return new DeleteIngressResponse(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/DeleteIngressResponseBody.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 DeleteIngressResponseBody} extends {@link TeaModel}
*
* <p>DeleteIngressResponseBody</p>
*/
public class DeleteIngressResponseBody 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 DeleteIngressResponseBody(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 DeleteIngressResponseBody 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(DeleteIngressResponseBody 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.</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 routing rule was deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The routing rule was deleted.</li>
* <li><strong>false</strong>: The routing rule failed to be deleted.</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 DeleteIngressResponseBody build() {
return new DeleteIngressResponseBody(this);
}
}
/**
*
* {@link DeleteIngressResponseBody} extends {@link TeaModel}
*
* <p>DeleteIngressResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IngressId")
private Long ingressId;
private Data(Builder builder) {
this.ingressId = builder.ingressId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return ingressId
*/
public Long getIngressId() {
return this.ingressId;
}
public static final class Builder {
private Long ingressId;
private Builder() {
}
private Builder(Data model) {
this.ingressId = model.ingressId;
}
/**
* <p>The ID of the deleted routing rule.</p>
*
* <strong>example:</strong>
* <p>87</p>
*/
public Builder ingressId(Long ingressId) {
this.ingressId = ingressId;
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/DeleteInstancesRequest.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 DeleteInstancesRequest} extends {@link RequestModel}
*
* <p>DeleteInstancesRequest</p>
*/
public class DeleteInstancesRequest 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("InstanceIds")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceIds;
private DeleteInstancesRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.instanceIds = builder.instanceIds;
}
public static Builder builder() {
return new Builder();
}
public static DeleteInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return instanceIds
*/
public String getInstanceIds() {
return this.instanceIds;
}
public static final class Builder extends Request.Builder<DeleteInstancesRequest, Builder> {
private String appId;
private String instanceIds;
private Builder() {
super();
}
private Builder(DeleteInstancesRequest request) {
super(request);
this.appId = request.appId;
this.instanceIds = request.instanceIds;
}
/**
* <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;
}
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>demo-aaed579c-1f8a-431e-8705-97d18e91c7b4******</p>
*/
public Builder instanceIds(String instanceIds) {
this.putQueryParameter("InstanceIds", instanceIds);
this.instanceIds = instanceIds;
return this;
}
@Override
public DeleteInstancesRequest build() {
return new DeleteInstancesRequest(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/DeleteInstancesResponse.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 DeleteInstancesResponse} extends {@link TeaModel}
*
* <p>DeleteInstancesResponse</p>
*/
public class DeleteInstancesResponse 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 DeleteInstancesResponseBody body;
private DeleteInstancesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteInstancesResponse 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 DeleteInstancesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteInstancesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteInstancesResponseBody body);
@Override
DeleteInstancesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteInstancesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteInstancesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteInstancesResponse 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(DeleteInstancesResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteInstancesResponse build() {
return new DeleteInstancesResponse(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/DeleteInstancesResponseBody.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 DeleteInstancesResponseBody} extends {@link TeaModel}
*
* <p>DeleteInstancesResponseBody</p>
*/
public class DeleteInstancesResponseBody 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 DeleteInstancesResponseBody(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 DeleteInstancesResponseBody 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(DeleteInstancesResponseBody 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 DeleteInstancesResponseBody build() {
return new DeleteInstancesResponseBody(this);
}
}
/**
*
* {@link DeleteInstancesResponseBody} extends {@link TeaModel}
*
* <p>DeleteInstancesResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
private Data(Builder builder) {
this.changeOrderId = builder.changeOrderId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
public static final class Builder {
private String changeOrderId;
private Builder() {
}
private Builder(Data model) {
this.changeOrderId = model.changeOrderId;
}
/**
* ChangeOrderId.
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
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/DeleteJobRequest.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 DeleteJobRequest} extends {@link RequestModel}
*
* <p>DeleteJobRequest</p>
*/
public class DeleteJobRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
@com.aliyun.core.annotation.Validation(required = true)
private String appId;
private DeleteJobRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteJobRequest 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<DeleteJobRequest, Builder> {
private String appId;
private Builder() {
super();
}
private Builder(DeleteJobRequest request) {
super(request);
this.appId = request.appId;
}
/**
* <p>The ID of the job template that you want to delete.</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 DeleteJobRequest build() {
return new DeleteJobRequest(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/DeleteJobResponse.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 DeleteJobResponse} extends {@link TeaModel}
*
* <p>DeleteJobResponse</p>
*/
public class DeleteJobResponse 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 DeleteJobResponseBody body;
private DeleteJobResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteJobResponse 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 DeleteJobResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteJobResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteJobResponseBody body);
@Override
DeleteJobResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteJobResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteJobResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteJobResponse 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(DeleteJobResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteJobResponse build() {
return new DeleteJobResponse(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/DeleteJobResponseBody.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 DeleteJobResponseBody} extends {@link TeaModel}
*
* <p>DeleteJobResponseBody</p>
*/
public class DeleteJobResponseBody 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 DeleteJobResponseBody(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 DeleteJobResponseBody 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(DeleteJobResponseBody 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 result returned.</p>
*
* <strong>example:</strong>
* <p>{msg: "", code: 200, success: true}</p>
*/
public Builder data(String data) {
this.data = data;
return this;
}
/**
* <p>The error code that is returned. Take note of the following rules:</p>
* <ul>
* <li>The <strong>ErrorCode</strong> parameter is not returned if the request is successful.</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 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 application is deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The namespaces were obtained.</li>
* <li><strong>false</strong>: no</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 DeleteJobResponseBody build() {
return new DeleteJobResponseBody(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/DeleteNamespaceRequest.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 DeleteNamespaceRequest} extends {@link RequestModel}
*
* <p>DeleteNamespaceRequest</p>
*/
public class DeleteNamespaceRequest 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 DeleteNamespaceRequest(Builder builder) {
super(builder);
this.nameSpaceShortId = builder.nameSpaceShortId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteNamespaceRequest 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<DeleteNamespaceRequest, Builder> {
private String nameSpaceShortId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DeleteNamespaceRequest 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-beijing:test</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 DeleteNamespaceRequest build() {
return new DeleteNamespaceRequest(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/DeleteNamespaceResponse.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 DeleteNamespaceResponse} extends {@link TeaModel}
*
* <p>DeleteNamespaceResponse</p>
*/
public class DeleteNamespaceResponse 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 DeleteNamespaceResponseBody body;
private DeleteNamespaceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteNamespaceResponse 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 DeleteNamespaceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteNamespaceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteNamespaceResponseBody body);
@Override
DeleteNamespaceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteNamespaceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteNamespaceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteNamespaceResponse 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(DeleteNamespaceResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteNamespaceResponse build() {
return new DeleteNamespaceResponse(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/DeleteNamespaceResponseBody.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 DeleteNamespaceResponseBody} extends {@link TeaModel}
*
* <p>DeleteNamespaceResponseBody</p>
*/
public class DeleteNamespaceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@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 DeleteNamespaceResponseBody(Builder builder) {
this.code = builder.code;
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 DeleteNamespaceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @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 errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DeleteNamespaceResponseBody model) {
this.code = model.code;
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 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 namespace was deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: indicates that the namespace was deleted.</li>
* <li><strong>false</strong>: indicates that the namespace could not be deleted.</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>0a981dd515966966104121683d****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DeleteNamespaceResponseBody build() {
return new DeleteNamespaceResponseBody(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/DeleteSecretRequest.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 DeleteSecretRequest} extends {@link RequestModel}
*
* <p>DeleteSecretRequest</p>
*/
public class DeleteSecretRequest 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 DeleteSecretRequest(Builder builder) {
super(builder);
this.namespaceId = builder.namespaceId;
this.secretId = builder.secretId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSecretRequest 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<DeleteSecretRequest, Builder> {
private String namespaceId;
private Long secretId;
private Builder() {
super();
}
private Builder(DeleteSecretRequest request) {
super(request);
this.namespaceId = request.namespaceId;
this.secretId = request.secretId;
}
/**
* <p>The ID of the namespace in which the Secret resides. By default, the namespace ID is the same as the region 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;
}
/**
* <p>The ID of the Secret to be deleted. You can call the <a href="https://help.aliyun.com/document_detail/466929.html">ListSecrets</a> operation to view the Secret IDs.</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 DeleteSecretRequest build() {
return new DeleteSecretRequest(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/DeleteSecretResponse.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 DeleteSecretResponse} extends {@link TeaModel}
*
* <p>DeleteSecretResponse</p>
*/
public class DeleteSecretResponse 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 DeleteSecretResponseBody body;
private DeleteSecretResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteSecretResponse 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 DeleteSecretResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteSecretResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteSecretResponseBody body);
@Override
DeleteSecretResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteSecretResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteSecretResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteSecretResponse 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(DeleteSecretResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteSecretResponse build() {
return new DeleteSecretResponse(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/DeleteSecretResponseBody.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 DeleteSecretResponseBody} extends {@link TeaModel}
*
* <p>DeleteSecretResponseBody</p>
*/
public class DeleteSecretResponseBody 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 DeleteSecretResponseBody(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 DeleteSecretResponseBody 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(DeleteSecretResponseBody 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 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 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 Secret is successfully deleted. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The instance was deleted.</li>
* <li><strong>false</strong>: The instance failed to be deleted.</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 DeleteSecretResponseBody build() {
return new DeleteSecretResponseBody(this);
}
}
/**
*
* {@link DeleteSecretResponseBody} extends {@link TeaModel}
*
* <p>DeleteSecretResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecretId")
private Long secretId;
private Data(Builder builder) {
this.secretId = builder.secretId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return secretId
*/
public Long getSecretId() {
return this.secretId;
}
public static final class Builder {
private Long secretId;
private Builder() {
}
private Builder(Data model) {
this.secretId = model.secretId;
}
/**
* <p>The ID of the deleted Secret.</p>
*
* <strong>example:</strong>
* <p>16</p>
*/
public Builder secretId(Long secretId) {
this.secretId = secretId;
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/DeleteSwimmingLaneGroupRequest.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 DeleteSwimmingLaneGroupRequest} extends {@link RequestModel}
*
* <p>DeleteSwimmingLaneGroupRequest</p>
*/
public class DeleteSwimmingLaneGroupRequest 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("NamespaceId")
private String namespaceId;
private DeleteSwimmingLaneGroupRequest(Builder builder) {
super(builder);
this.groupId = builder.groupId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSwimmingLaneGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return namespaceId
*/
public String getNamespaceId() {
return this.namespaceId;
}
public static final class Builder extends Request.Builder<DeleteSwimmingLaneGroupRequest, Builder> {
private Long groupId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DeleteSwimmingLaneGroupRequest request) {
super(request);
this.groupId = request.groupId;
this.namespaceId = request.namespaceId;
}
/**
* GroupId.
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* NamespaceId.
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DeleteSwimmingLaneGroupRequest build() {
return new DeleteSwimmingLaneGroupRequest(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/DeleteSwimmingLaneGroupResponse.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 DeleteSwimmingLaneGroupResponse} extends {@link TeaModel}
*
* <p>DeleteSwimmingLaneGroupResponse</p>
*/
public class DeleteSwimmingLaneGroupResponse 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 DeleteSwimmingLaneGroupResponseBody body;
private DeleteSwimmingLaneGroupResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteSwimmingLaneGroupResponse 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 DeleteSwimmingLaneGroupResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteSwimmingLaneGroupResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteSwimmingLaneGroupResponseBody body);
@Override
DeleteSwimmingLaneGroupResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteSwimmingLaneGroupResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteSwimmingLaneGroupResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteSwimmingLaneGroupResponse 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(DeleteSwimmingLaneGroupResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteSwimmingLaneGroupResponse build() {
return new DeleteSwimmingLaneGroupResponse(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/DeleteSwimmingLaneGroupResponseBody.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 DeleteSwimmingLaneGroupResponseBody} extends {@link TeaModel}
*
* <p>DeleteSwimmingLaneGroupResponseBody</p>
*/
public class DeleteSwimmingLaneGroupResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@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 DeleteSwimmingLaneGroupResponseBody(Builder builder) {
this.code = builder.code;
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 DeleteSwimmingLaneGroupResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @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 errorCode;
private String message;
private String requestId;
private Boolean success;
private String traceId;
private Builder() {
}
private Builder(DeleteSwimmingLaneGroupResponseBody model) {
this.code = model.code;
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;
}
/**
* 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 DeleteSwimmingLaneGroupResponseBody build() {
return new DeleteSwimmingLaneGroupResponseBody(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/DeleteWebApplicationRequest.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 DeleteWebApplicationRequest} extends {@link RequestModel}
*
* <p>DeleteWebApplicationRequest</p>
*/
public class DeleteWebApplicationRequest 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 DeleteWebApplicationRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteWebApplicationRequest 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<DeleteWebApplicationRequest, Builder> {
private String applicationId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DeleteWebApplicationRequest 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 DeleteWebApplicationRequest build() {
return new DeleteWebApplicationRequest(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/DeleteWebApplicationResponse.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 DeleteWebApplicationResponse} extends {@link TeaModel}
*
* <p>DeleteWebApplicationResponse</p>
*/
public class DeleteWebApplicationResponse 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 DeleteWebApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteWebApplicationResponse 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<DeleteWebApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationBody body);
@Override
DeleteWebApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteWebApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteWebApplicationResponse 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 DeleteWebApplicationResponse build() {
return new DeleteWebApplicationResponse(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/DeleteWebApplicationRevisionRequest.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 DeleteWebApplicationRevisionRequest} extends {@link RequestModel}
*
* <p>DeleteWebApplicationRevisionRequest</p>
*/
public class DeleteWebApplicationRevisionRequest 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 DeleteWebApplicationRevisionRequest(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 DeleteWebApplicationRevisionRequest 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<DeleteWebApplicationRevisionRequest, Builder> {
private String applicationId;
private String revisionId;
private String namespaceId;
private Builder() {
super();
}
private Builder(DeleteWebApplicationRevisionRequest 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-shanghai</p>
*/
public Builder namespaceId(String namespaceId) {
this.putQueryParameter("NamespaceId", namespaceId);
this.namespaceId = namespaceId;
return this;
}
@Override
public DeleteWebApplicationRevisionRequest build() {
return new DeleteWebApplicationRevisionRequest(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/DeleteWebApplicationRevisionResponse.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 DeleteWebApplicationRevisionResponse} extends {@link TeaModel}
*
* <p>DeleteWebApplicationRevisionResponse</p>
*/
public class DeleteWebApplicationRevisionResponse 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 DeleteWebApplicationRevisionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteWebApplicationRevisionResponse 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<DeleteWebApplicationRevisionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebApplicationRevisionBody body);
@Override
DeleteWebApplicationRevisionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteWebApplicationRevisionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebApplicationRevisionBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteWebApplicationRevisionResponse 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 DeleteWebApplicationRevisionResponse build() {
return new DeleteWebApplicationRevisionResponse(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/DeleteWebCustomDomainRequest.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 DeleteWebCustomDomainRequest} extends {@link RequestModel}
*
* <p>DeleteWebCustomDomainRequest</p>
*/
public class DeleteWebCustomDomainRequest 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 DeleteWebCustomDomainRequest(Builder builder) {
super(builder);
this.domainName = builder.domainName;
this.namespaceId = builder.namespaceId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteWebCustomDomainRequest 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<DeleteWebCustomDomainRequest, Builder> {
private String domainName;
private String namespaceId;
private Builder() {
super();
}
private Builder(DeleteWebCustomDomainRequest 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>admin.pupumall.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 DeleteWebCustomDomainRequest build() {
return new DeleteWebCustomDomainRequest(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/DeleteWebCustomDomainResponse.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 DeleteWebCustomDomainResponse} extends {@link TeaModel}
*
* <p>DeleteWebCustomDomainResponse</p>
*/
public class DeleteWebCustomDomainResponse 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 WebCustomDomainBody body;
private DeleteWebCustomDomainResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteWebCustomDomainResponse 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 WebCustomDomainBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteWebCustomDomainResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(WebCustomDomainBody body);
@Override
DeleteWebCustomDomainResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteWebCustomDomainResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private WebCustomDomainBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteWebCustomDomainResponse 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(WebCustomDomainBody body) {
this.body = body;
return this;
}
@Override
public DeleteWebCustomDomainResponse build() {
return new DeleteWebCustomDomainResponse(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/DeployApplicationRequest.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 DeployApplicationRequest} extends {@link RequestModel}
*
* <p>DeployApplicationRequest</p>
*/
public class DeployApplicationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcrAssumeRoleArn")
private String acrAssumeRoleArn;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AcrInstanceId")
private String acrInstanceId;
@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.Body
@com.aliyun.core.annotation.NameInMap("AssociateEip")
private Boolean associateEip;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoEnableApplicationScalingRule")
private Boolean autoEnableApplicationScalingRule;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BatchWaitTime")
private Integer batchWaitTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ChangeOrderDesc")
private String changeOrderDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Command")
private String command;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CommandArgs")
private String commandArgs;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ConfigMapMountDesc")
private String configMapMountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Cpu")
private Integer cpu;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomHostAlias")
private String customHostAlias;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomImageNetworkType")
private String customImageNetworkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Deploy")
private String deploy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Dotnet")
private String dotnet;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EdasContainerVersion")
private String edasContainerVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableAhas")
private String enableAhas;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableCpuBurst")
private Boolean enableCpuBurst;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableGreyTagRoute")
private Boolean enableGreyTagRoute;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableNewArms")
private Boolean enableNewArms;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("EnableSidecarResourceIsolated")
private Boolean enableSidecarResourceIsolated;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Envs")
private String envs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GpuConfig")
private String gpuConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImagePullSecrets")
private String imagePullSecrets;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ImageUrl")
private String imageUrl;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("InitContainersConfig")
private java.util.List<InitContainerConfig> initContainersConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartArgs")
private String jarStartArgs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("JarStartOptions")
private String jarStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Jdk")
private String jdk;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("KafkaConfigs")
private String kafkaConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Liveness")
private String liveness;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Memory")
private Integer memory;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MicroRegistration")
private String microRegistration;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MicroRegistrationConfig")
private String microRegistrationConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MicroserviceEngineConfig")
private String microserviceEngineConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MinReadyInstanceRatio")
private Integer minReadyInstanceRatio;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MinReadyInstances")
private Integer minReadyInstances;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountDesc")
private String mountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MountHost")
private String mountHost;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NasConfigs")
private String nasConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NasId")
private String nasId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NewSaeVersion")
private String newSaeVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OidcRoleName")
private String oidcRoleName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkId")
private String ossAkId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssAkSecret")
private String ossAkSecret;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OssMountDescs")
private String ossMountDescs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageType")
private String packageType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageUrl")
private String packageUrl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PackageVersion")
private String packageVersion;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Php")
private String php;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhpArmsConfigLocation")
private String phpArmsConfigLocation;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("PhpConfig")
private String phpConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhpConfigLocation")
private String phpConfigLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PostStart")
private String postStart;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PreStop")
private String preStop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PvtzDiscoverySvc")
private String pvtzDiscoverySvc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Python")
private String python;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PythonModules")
private String pythonModules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Readiness")
private String readiness;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Replicas")
private Integer replicas;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecretMountDesc")
private String secretMountDesc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ServiceTags")
private String serviceTags;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SidecarContainersConfig")
private java.util.List<SidecarContainerConfig> sidecarContainersConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SlsConfigs")
private String slsConfigs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartupProbe")
private String startupProbe;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SwimlanePvtzDiscoverySvc")
private String swimlanePvtzDiscoverySvc;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TerminationGracePeriodSeconds")
@com.aliyun.core.annotation.Validation(maximum = 6000)
private Integer terminationGracePeriodSeconds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Timezone")
private String timezone;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TomcatConfig")
private String tomcatConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UpdateStrategy")
private String updateStrategy;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WarStartOptions")
private String warStartOptions;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("WebContainer")
private String webContainer;
private DeployApplicationRequest(Builder builder) {
super(builder);
this.acrAssumeRoleArn = builder.acrAssumeRoleArn;
this.acrInstanceId = builder.acrInstanceId;
this.appId = builder.appId;
this.associateEip = builder.associateEip;
this.autoEnableApplicationScalingRule = builder.autoEnableApplicationScalingRule;
this.batchWaitTime = builder.batchWaitTime;
this.changeOrderDesc = builder.changeOrderDesc;
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.deploy = builder.deploy;
this.dotnet = builder.dotnet;
this.edasContainerVersion = builder.edasContainerVersion;
this.enableAhas = builder.enableAhas;
this.enableCpuBurst = builder.enableCpuBurst;
this.enableGreyTagRoute = builder.enableGreyTagRoute;
this.enableNewArms = builder.enableNewArms;
this.enableSidecarResourceIsolated = builder.enableSidecarResourceIsolated;
this.envs = builder.envs;
this.gpuConfig = builder.gpuConfig;
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.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.pvtzDiscoverySvc = builder.pvtzDiscoverySvc;
this.python = builder.python;
this.pythonModules = builder.pythonModules;
this.readiness = builder.readiness;
this.replicas = builder.replicas;
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.swimlanePvtzDiscoverySvc = builder.swimlanePvtzDiscoverySvc;
this.terminationGracePeriodSeconds = builder.terminationGracePeriodSeconds;
this.timezone = builder.timezone;
this.tomcatConfig = builder.tomcatConfig;
this.updateStrategy = builder.updateStrategy;
this.vSwitchId = builder.vSwitchId;
this.warStartOptions = builder.warStartOptions;
this.webContainer = builder.webContainer;
}
public static Builder builder() {
return new Builder();
}
public static DeployApplicationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acrAssumeRoleArn
*/
public String getAcrAssumeRoleArn() {
return this.acrAssumeRoleArn;
}
/**
* @return acrInstanceId
*/
public String getAcrInstanceId() {
return this.acrInstanceId;
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return associateEip
*/
public Boolean getAssociateEip() {
return this.associateEip;
}
/**
* @return autoEnableApplicationScalingRule
*/
public Boolean getAutoEnableApplicationScalingRule() {
return this.autoEnableApplicationScalingRule;
}
/**
* @return batchWaitTime
*/
public Integer getBatchWaitTime() {
return this.batchWaitTime;
}
/**
* @return changeOrderDesc
*/
public String getChangeOrderDesc() {
return this.changeOrderDesc;
}
/**
* @return command
*/
public String getCommand() {
return this.command;
}
/**
* @return commandArgs
*/
public String getCommandArgs() {
return this.commandArgs;
}
/**
* @return configMapMountDesc
*/
public String 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 deploy
*/
public String getDeploy() {
return this.deploy;
}
/**
* @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 Boolean getEnableCpuBurst() {
return this.enableCpuBurst;
}
/**
* @return enableGreyTagRoute
*/
public Boolean getEnableGreyTagRoute() {
return this.enableGreyTagRoute;
}
/**
* @return enableNewArms
*/
public Boolean getEnableNewArms() {
return this.enableNewArms;
}
/**
* @return enableSidecarResourceIsolated
*/
public Boolean getEnableSidecarResourceIsolated() {
return this.enableSidecarResourceIsolated;
}
/**
* @return envs
*/
public String getEnvs() {
return this.envs;
}
/**
* @return gpuConfig
*/
public String getGpuConfig() {
return this.gpuConfig;
}
/**
* @return imagePullSecrets
*/
public String getImagePullSecrets() {
return this.imagePullSecrets;
}
/**
* @return imageUrl
*/
public String getImageUrl() {
return this.imageUrl;
}
/**
* @return initContainersConfig
*/
public java.util.List<InitContainerConfig> 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 String getMountDesc() {
return this.mountDesc;
}
/**
* @return mountHost
*/
public String getMountHost() {
return this.mountHost;
}
/**
* @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 String 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 pvtzDiscoverySvc
*/
public String getPvtzDiscoverySvc() {
return this.pvtzDiscoverySvc;
}
/**
* @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 replicas
*/
public Integer getReplicas() {
return this.replicas;
}
/**
* @return secretMountDesc
*/
public String getSecretMountDesc() {
return this.secretMountDesc;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return serviceTags
*/
public String getServiceTags() {
return this.serviceTags;
}
/**
* @return sidecarContainersConfig
*/
public java.util.List<SidecarContainerConfig> getSidecarContainersConfig() {
return this.sidecarContainersConfig;
}
/**
* @return slsConfigs
*/
public String getSlsConfigs() {
return this.slsConfigs;
}
/**
* @return startupProbe
*/
public String getStartupProbe() {
return this.startupProbe;
}
/**
* @return swimlanePvtzDiscoverySvc
*/
public String getSwimlanePvtzDiscoverySvc() {
return this.swimlanePvtzDiscoverySvc;
}
/**
* @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 warStartOptions
*/
public String getWarStartOptions() {
return this.warStartOptions;
}
/**
* @return webContainer
*/
public String getWebContainer() {
return this.webContainer;
}
public static final class Builder extends Request.Builder<DeployApplicationRequest, Builder> {
private String acrAssumeRoleArn;
private String acrInstanceId;
private String appId;
private Boolean associateEip;
private Boolean autoEnableApplicationScalingRule;
private Integer batchWaitTime;
private String changeOrderDesc;
private String command;
private String commandArgs;
private String configMapMountDesc;
private Integer cpu;
private String customHostAlias;
private String customImageNetworkType;
private String deploy;
private String dotnet;
private String edasContainerVersion;
private String enableAhas;
private Boolean enableCpuBurst;
private Boolean enableGreyTagRoute;
private Boolean enableNewArms;
private Boolean enableSidecarResourceIsolated;
private String envs;
private String gpuConfig;
private String imagePullSecrets;
private String imageUrl;
private java.util.List<InitContainerConfig> 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 String mountDesc;
private String mountHost;
private String nasConfigs;
private String nasId;
private String newSaeVersion;
private String oidcRoleName;
private String ossAkId;
private String ossAkSecret;
private String 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 pvtzDiscoverySvc;
private String python;
private String pythonModules;
private String readiness;
private Integer replicas;
private String secretMountDesc;
private String securityGroupId;
private String serviceTags;
private java.util.List<SidecarContainerConfig> sidecarContainersConfig;
private String slsConfigs;
private String startupProbe;
private String swimlanePvtzDiscoverySvc;
private Integer terminationGracePeriodSeconds;
private String timezone;
private String tomcatConfig;
private String updateStrategy;
private String vSwitchId;
private String warStartOptions;
private String webContainer;
private Builder() {
super();
}
private Builder(DeployApplicationRequest request) {
super(request);
this.acrAssumeRoleArn = request.acrAssumeRoleArn;
this.acrInstanceId = request.acrInstanceId;
this.appId = request.appId;
this.associateEip = request.associateEip;
this.autoEnableApplicationScalingRule = request.autoEnableApplicationScalingRule;
this.batchWaitTime = request.batchWaitTime;
this.changeOrderDesc = request.changeOrderDesc;
this.command = request.command;
this.commandArgs = request.commandArgs;
this.configMapMountDesc = request.configMapMountDesc;
this.cpu = request.cpu;
this.customHostAlias = request.customHostAlias;
this.customImageNetworkType = request.customImageNetworkType;
this.deploy = request.deploy;
this.dotnet = request.dotnet;
this.edasContainerVersion = request.edasContainerVersion;
this.enableAhas = request.enableAhas;
this.enableCpuBurst = request.enableCpuBurst;
this.enableGreyTagRoute = request.enableGreyTagRoute;
this.enableNewArms = request.enableNewArms;
this.enableSidecarResourceIsolated = request.enableSidecarResourceIsolated;
this.envs = request.envs;
this.gpuConfig = request.gpuConfig;
this.imagePullSecrets = request.imagePullSecrets;
this.imageUrl = request.imageUrl;
this.initContainersConfig = request.initContainersConfig;
this.jarStartArgs = request.jarStartArgs;
this.jarStartOptions = request.jarStartOptions;
this.jdk = request.jdk;
this.kafkaConfigs = request.kafkaConfigs;
this.liveness = request.liveness;
this.memory = request.memory;
this.microRegistration = request.microRegistration;
this.microRegistrationConfig = request.microRegistrationConfig;
this.microserviceEngineConfig = request.microserviceEngineConfig;
this.minReadyInstanceRatio = request.minReadyInstanceRatio;
this.minReadyInstances = request.minReadyInstances;
this.mountDesc = request.mountDesc;
this.mountHost = request.mountHost;
this.nasConfigs = request.nasConfigs;
this.nasId = request.nasId;
this.newSaeVersion = request.newSaeVersion;
this.oidcRoleName = request.oidcRoleName;
this.ossAkId = request.ossAkId;
this.ossAkSecret = request.ossAkSecret;
this.ossMountDescs = request.ossMountDescs;
this.packageType = request.packageType;
this.packageUrl = request.packageUrl;
this.packageVersion = request.packageVersion;
this.php = request.php;
this.phpArmsConfigLocation = request.phpArmsConfigLocation;
this.phpConfig = request.phpConfig;
this.phpConfigLocation = request.phpConfigLocation;
this.postStart = request.postStart;
this.preStop = request.preStop;
this.pvtzDiscoverySvc = request.pvtzDiscoverySvc;
this.python = request.python;
this.pythonModules = request.pythonModules;
this.readiness = request.readiness;
this.replicas = request.replicas;
this.secretMountDesc = request.secretMountDesc;
this.securityGroupId = request.securityGroupId;
this.serviceTags = request.serviceTags;
this.sidecarContainersConfig = request.sidecarContainersConfig;
this.slsConfigs = request.slsConfigs;
this.startupProbe = request.startupProbe;
this.swimlanePvtzDiscoverySvc = request.swimlanePvtzDiscoverySvc;
this.terminationGracePeriodSeconds = request.terminationGracePeriodSeconds;
this.timezone = request.timezone;
this.tomcatConfig = request.tomcatConfig;
this.updateStrategy = request.updateStrategy;
this.vSwitchId = request.vSwitchId;
this.warStartOptions = request.warStartOptions;
this.webContainer = request.webContainer;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) required for a RAM role to obtain images across accounts. For more information, see <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.putQueryParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
this.acrAssumeRoleArn = acrAssumeRoleArn;
return this;
}
/**
* <p>The ID of Container Registry Enterprise Edition instance N. This parameter is required when the <strong>ImageUrl</strong> parameter is set to the URL of an image in an ACR Enterprise Edition instance.</p>
*
* <strong>example:</strong>
* <p>cri-xxxxxx</p>
*/
public Builder acrInstanceId(String acrInstanceId) {
this.putBodyParameter("AcrInstanceId", acrInstanceId);
this.acrInstanceId = acrInstanceId;
return this;
}
/**
* <p>The ID of the application.</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>Specifies whether to associate an EIP with the node pool. Take note of the following rules:</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.putBodyParameter("AssociateEip", associateEip);
this.associateEip = associateEip;
return this;
}
/**
* <p>Specifies whether to automatically enable an auto scaling policy for the application. Take note of the following rules:</p>
* <ul>
* <li><strong>true</strong>: turns on Logon-free Sharing</li>
* <li><strong>false</strong>: turns off Logon-free Sharing</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule) {
this.putQueryParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule);
this.autoEnableApplicationScalingRule = autoEnableApplicationScalingRule;
return this;
}
/**
* <p>The interval between batches during a batch release. Unit: minutes.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder batchWaitTime(Integer batchWaitTime) {
this.putQueryParameter("BatchWaitTime", batchWaitTime);
this.batchWaitTime = batchWaitTime;
return this;
}
/**
* <p>The description of the change order.</p>
*
* <strong>example:</strong>
* <p>Start the application</p>
*/
public Builder changeOrderDesc(String changeOrderDesc) {
this.putQueryParameter("ChangeOrderDesc", changeOrderDesc);
this.changeOrderDesc = changeOrderDesc;
return this;
}
/**
* <p>The command that is used to start the image. The command must be an existing executable object in the container. Sample statements:</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.putQueryParameter("Command", command);
this.command = command;
return this;
}
/**
* <p>The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the <strong>Command</strong> parameter. You can specify the name in one of the following formats:</p>
* <p><code>["a","b"]</code></p>
* <p>In the preceding 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. This parameter is optional.</p>
*
* <strong>example:</strong>
* <p>["a","b"]</p>
*/
public Builder commandArgs(String commandArgs) {
this.putQueryParameter("CommandArgs", commandArgs);
this.commandArgs = commandArgs;
return this;
}
/**
* <p>The description of the <strong>ConfigMap</strong> instance mounted to the application. Use configurations created on the Configuration Items page to configure containers. The following table describes the parameters that are used in the preceding statements.</p>
* <ul>
* <li><strong>congfigMapId</strong>: the ID of the ConfigMap instance. You can call the <a href="https://help.aliyun.com/document_detail/176917.html">ListNamespacedConfigMaps</a> operation to obtain the ID.</li>
* <li><strong>key</strong>: the key.</li>
* </ul>
* <blockquote>
* <p>You can use <code>sae-sys-configmap-all</code> to mount all keys.</p>
* </blockquote>
* <ul>
* <li><strong>mountPath</strong>: the mount path in the container.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"configMapId":16,"key":"test","mountPath":"/tmp"}]</p>
*/
public Builder configMapMountDesc(String configMapMountDesc) {
this.putBodyParameter("ConfigMapMountDesc", configMapMountDesc);
this.configMapMountDesc = configMapMountDesc;
return this;
}
/**
* Cpu.
*/
public Builder cpu(Integer cpu) {
this.putQueryParameter("Cpu", cpu);
this.cpu = cpu;
return this;
}
/**
* <p>The custom mappings between hostnames and IP addresses in the container. Take note of the following rules:</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":"samplehost","ip":"127.0.0.1"}]</p>
*/
public Builder customHostAlias(String customHostAlias) {
this.putQueryParameter("CustomHostAlias", customHostAlias);
this.customHostAlias = customHostAlias;
return this;
}
/**
* CustomImageNetworkType.
*/
public Builder customImageNetworkType(String customImageNetworkType) {
this.putQueryParameter("CustomImageNetworkType", customImageNetworkType);
this.customImageNetworkType = customImageNetworkType;
return this;
}
/**
* <p>This parameter takes effect only for applications that are in the Stopped state. If you call the <strong>DeployApplication</strong> operation to manage a running application, the application is immediately redeployed.</p>
* <ul>
* <li><strong>true</strong> (default): specifies that the system immediately deploys the application, enables new configurations, and pulls application instances.</li>
* <li><strong>false</strong>: specifies that the system only enables the new configurations.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deploy(String deploy) {
this.putQueryParameter("Deploy", deploy);
this.deploy = deploy;
return this;
}
/**
* Dotnet.
*/
public Builder dotnet(String dotnet) {
this.putQueryParameter("Dotnet", 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.putQueryParameter("EdasContainerVersion", edasContainerVersion);
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* <p>Indicates whether access to Application High Availability Service (AHAS) is enabled. Take note of the following rules:</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>false</p>
*/
public Builder enableAhas(String enableAhas) {
this.putQueryParameter("EnableAhas", enableAhas);
this.enableAhas = enableAhas;
return this;
}
/**
* EnableCpuBurst.
*/
public Builder enableCpuBurst(Boolean enableCpuBurst) {
this.putQueryParameter("EnableCpuBurst", 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. Take note of the following rules:</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.putQueryParameter("EnableGreyTagRoute", enableGreyTagRoute);
this.enableGreyTagRoute = enableGreyTagRoute;
return this;
}
/**
* EnableNewArms.
*/
public Builder enableNewArms(Boolean enableNewArms) {
this.putQueryParameter("EnableNewArms", enableNewArms);
this.enableNewArms = enableNewArms;
return this;
}
/**
* EnableSidecarResourceIsolated.
*/
public Builder enableSidecarResourceIsolated(Boolean enableSidecarResourceIsolated) {
this.putBodyParameter("EnableSidecarResourceIsolated", enableSidecarResourceIsolated);
this.enableSidecarResourceIsolated = enableSidecarResourceIsolated;
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>. Take note of the following rules:</p>
* <ul>
* <li><p>Customize</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 ConfigMap</p>
* <ul>
* <li><strong>name</strong>: the name of the environment variable. You can reference one or all keys. If you want 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 ConfigMap ID.</li>
* <li><strong>key</strong>: the key. If you want to reference all keys, do not configure this parameter.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"name":"envtmp","value":"0"}]</p>
*/
public Builder envs(String envs) {
this.putQueryParameter("Envs", envs);
this.envs = envs;
return this;
}
/**
* GpuConfig.
*/
public Builder gpuConfig(String gpuConfig) {
this.putQueryParameter("GpuConfig", gpuConfig);
this.gpuConfig = gpuConfig;
return this;
}
/**
* <p>The ID of the corresponding Secret.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder imagePullSecrets(String imagePullSecrets) {
this.putQueryParameter("ImagePullSecrets", 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>registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1</p>
*/
public Builder imageUrl(String imageUrl) {
this.putQueryParameter("ImageUrl", imageUrl);
this.imageUrl = imageUrl;
return this;
}
/**
* InitContainersConfig.
*/
public Builder initContainersConfig(java.util.List<InitContainerConfig> initContainersConfig) {
String initContainersConfigShrink = shrink(initContainersConfig, "InitContainersConfig", "json");
this.putBodyParameter("InitContainersConfig", initContainersConfigShrink);
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>-Xms4G -Xmx4G</p>
*/
public Builder jarStartArgs(String jarStartArgs) {
this.putQueryParameter("JarStartArgs", 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 for application deployment is <code>$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs</code>.</p>
*
* <strong>example:</strong>
* <p>custom-option</p>
*/
public Builder jarStartOptions(String jarStartOptions) {
this.putQueryParameter("JarStartOptions", 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.putQueryParameter("Jdk", jdk);
this.jdk = jdk;
return this;
}
/**
* <p>The logging configurations of Message Queue for Apache Kafka. Take note of the following rules:</p>
* <ul>
* <li><strong>kafkaEndpoint</strong>: the endpoint of the Message Queue for Apache Kafka API.</li>
* <li><strong>kafkaInstanceId</strong>: the ID of the Message Queue for Apache Kafka instance.</li>
* <li><strong>kafkaConfigs</strong>: One or more logging configurations of Message Queue for Apache Kafka. For information about sample values and parameters, see the request parameter <strong>KafkaLogfileConfig</strong> in this topic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"kafkaEndpoint":"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX","kafkaInstanceId":"alikafka_pre-cn-7pp2l8kr****","kafkaConfigs":[{"logType":"file_log","logDir":"/tmp/a.log","kafkaTopic":"test2"},{"logType":"stdout","logDir":"","kafkaTopic":"test"}]}</p>
*/
public Builder kafkaConfigs(String kafkaConfigs) {
this.putQueryParameter("KafkaConfigs", 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>Example of <strong>exec</strong>: <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 table describes the parameters that are used in the preceding statements.</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":["sleep","5s"]},"initialDelaySeconds":10,"timeoutSeconds":11}</p>
*/
public Builder liveness(String liveness) {
this.putQueryParameter("Liveness", liveness);
this.liveness = liveness;
return this;
}
/**
* Memory.
*/
public Builder memory(Integer memory) {
this.putQueryParameter("Memory", memory);
this.memory = memory;
return this;
}
/**
* <p>The Nacos registry. Valid values:</p>
* <ul>
* <li><strong>0</strong>: SAE built-in Nacos registry</li>
* <li><strong>1</strong>: self-managed Nacos registry</li>
* <li><strong>2</strong> : MSE Nacos registry</li>
* </ul>
*
* <strong>example:</strong>
* <p>"0"</p>
*/
public Builder microRegistration(String microRegistration) {
this.putQueryParameter("MicroRegistration", microRegistration);
this.microRegistration = microRegistration;
return this;
}
/**
* MicroRegistrationConfig.
*/
public Builder microRegistrationConfig(String microRegistrationConfig) {
this.putBodyParameter("MicroRegistrationConfig", microRegistrationConfig);
this.microRegistrationConfig = microRegistrationConfig;
return this;
}
/**
* MicroserviceEngineConfig.
*/
public Builder microserviceEngineConfig(String microserviceEngineConfig) {
this.putQueryParameter("MicroserviceEngineConfig", microserviceEngineConfig);
this.microserviceEngineConfig = microserviceEngineConfig;
return this;
}
/**
* <p>The percentage of the minimum number of available instances. Take note of the following rules:</p>
* <ul>
* <li>If you set the value to <strong>-1</strong>, the minimum number of available instances is not determined based on this parameter. Default value: -1.</li>
* <li>If you set the value to a number <strong>from 0 to 100</strong>, the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). The value is the nearest integer rounded up from the calculated result. 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>When both <strong>MinReadyInstance</strong> and <strong>MinReadyInstanceRatio</strong> are specified and <strong>MinReadyInstanceRatio</strong> is set to a number from 0 to 100, the value of <strong>MinReadyInstanceRatio</strong>** takes precedence. For example, if <strong>MinReadyInstances</strong> is set to **5, and <strong>MinReadyInstanceRatio</strong> 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: Current number of instances × <strong>50%</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>-1</p>
*/
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
this.putQueryParameter("MinReadyInstanceRatio", minReadyInstanceRatio);
this.minReadyInstanceRatio = minReadyInstanceRatio;
return this;
}
/**
* <p>The minimum number of available instances. Special 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 **-1**, 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.putQueryParameter("MinReadyInstances", minReadyInstances);
this.minReadyInstances = minReadyInstances;
return this;
}
/**
* <p>The configurations for mounting the NAS file system. After the application is created, you may want to call other operations to manage the application. If you do not want to change the NAS configurations in these subsequent operations, you can omit the <strong>MountDesc</strong> parameter in the requests. If you want to unmount the NAS file system, you must set the <strong>MountDesc</strong> values in the subsequent requests to an empty string ("").</p>
*
* <strong>example:</strong>
* <p>[{mountPath: "/tmp", nasPath: "/"}]</p>
*/
public Builder mountDesc(String mountDesc) {
this.putQueryParameter("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>10d3b4bc9****.com</p>
*/
public Builder mountHost(String mountHost) {
this.putQueryParameter("MountHost", mountHost);
this.mountHost = mountHost;
return this;
}
/**
* <p>The configurations of mounting the NAS file system. Take note of the following rules:</p>
* <ul>
* <li><strong>mountPath</strong>: the mount path of the container.</li>
* <li><strong>readOnly</strong>: If you set the value to <strong>false</strong>, the application has the read and write permissions.</li>
* <li><strong>nasId</strong>: the ID of the NAS file system.</li>
* <li><strong>mountDomain</strong>: the domain name of the mount target. For more information, see <a href="https://help.aliyun.com/document_detail/62626.html">DescribeMountTargets</a>.</li>
* <li><strong>nasPath</strong>: the directory in the NAS file system.</li>
* </ul>
*
* <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.putQueryParameter("NasConfigs", nasConfigs);
this.nasConfigs = nasConfigs;
return this;
}
/**
* <p>The ID of the File Storage NAS file system. After the application is created, you may want to call other operations to manage the application. If you do not want to change the NAS configurations in these subsequent operations, you can omit the <strong>NasId</strong> parameter in the requests. If you want to unmount the NAS file system, you must set the <strong>NasId</strong> values in the subsequent requests to an empty string ("").</p>
*
* <strong>example:</strong>
* <p>10d3b4****</p>
*/
public Builder nasId(String nasId) {
this.putQueryParameter("NasId", nasId);
this.nasId = nasId;
return this;
}
/**
* NewSaeVersion.
*/
public Builder newSaeVersion(String newSaeVersion) {
this.putQueryParameter("NewSaeVersion", newSaeVersion);
this.newSaeVersion = newSaeVersion;
return this;
}
/**
* <p>The name of the RAM role used to authenticate the user identity.</p>
* <blockquote>
* <p> You need to create an OpenID Connect (OIDC) identity provider (IdP) and an identity provider (IdP) for role-based single sign-on (SSO) in advance. For more information, see <a href="https://help.aliyun.com/document_detail/2331022.html">Creates an OpenID Connect (OIDC) identity provider (IdP)</a> and <a href="https://help.aliyun.com/document_detail/2331016.html">Creates an identity provider (IdP) for role-based single sign-on (SSO)</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>sae-test</p>
*/
public Builder oidcRoleName(String oidcRoleName) {
this.putQueryParameter("OidcRoleName", 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.putBodyParameter("OssAkId", 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.putBodyParameter("OssAkSecret", ossAkSecret);
this.ossAkSecret = ossAkSecret;
return this;
}
/**
* <p>Information of the Object Storage Service (OSS) bucket mounted to the application. The following table describes the parameters that are used in the preceding statements.</p>
* <ul>
* <li><p><strong>bucketName</strong>: the name of the OSS bucket.</p>
* </li>
* <li><p><strong>bucketPath</strong>: the directory or object in OSS. If the specified directory or object does not exist, an error is returned.</p>
* </li>
* <li><p><strong>mountPath</strong>: the directory of the container in SAE. If the path already exists, the newly specified path overwrites the previous one. If the path does not exist, it is created.</p>
* </li>
* <li><p><strong>readOnly</strong>: specifies whether to only allow the container path to read data from the OSS directory. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The container path only has read permission on the OSS directory.</li>
* <li><strong>false</strong>: The application has read and write permissions.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]</p>
*/
public Builder ossMountDescs(String ossMountDescs) {
this.putBodyParameter("OssMountDescs", ossMountDescs);
this.ossMountDescs = ossMountDescs;
return this;
}
/**
* PackageType.
*/
public Builder packageType(String packageType) {
this.putQueryParameter("PackageType", 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>PythonZip</strong>.</p>
*
* <strong>example:</strong>
* <p><a href="http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar">http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar</a></p>
*/
public Builder packageUrl(String packageUrl) {
this.putQueryParameter("PackageUrl", 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>PythonZip</strong>.</p>
*
* <strong>example:</strong>
* <p>1.0.1</p>
*/
public Builder packageVersion(String packageVersion) {
this.putQueryParameter("PackageVersion", packageVersion);
this.packageVersion = packageVersion;
return this;
}
/**
* Php.
*/
public Builder php(String php) {
this.putBodyParameter("Php", 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. 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.putQueryParameter("PhpArmsConfigLocation", 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.putBodyParameter("PhpConfig", 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.putQueryParameter("PhpConfigLocation", phpConfigLocation);
this.phpConfigLocation = phpConfigLocation;
return this;
}
/**
* <p>The script that is run immediately after the container is started. Example: <code>{"exec":{"command":["sh","-c","echo hello"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","echo hello"]}}</p>
*/
public Builder postStart(String postStart) {
this.putQueryParameter("PostStart", postStart);
this.postStart = postStart;
return this;
}
/**
* <p>The script that is run before the container is stopped. Example: <code>{"exec":{"command":["sh","-c","echo hello"\]}}</code></p>
*
* <strong>example:</strong>
* <p>{"exec":{"command":["sh","-c","echo hello"]}}</p>
*/
public Builder preStop(String preStop) {
this.putQueryParameter("PreStop", preStop);
this.preStop = preStop;
return this;
}
/**
* <p>The configurations of Kubernetes Service-based service registration and discovery. Take note of the following rules:</p>
* <ul>
* <li><strong>serviceName</strong>: the name of the Alibaba Cloud service. Format: <code><Custom content>-<Namespace ID></code>. <code>-<Namespace ID></code> is automatically specified based on the namespace in which an application resides and cannot be changed. For example, if you select the default namespace in the China (Beijing) region, <code>-cn-beijing-default</code> is automatically specified.</li>
* <li><strong>namespaceId</strong>: the namespace ID.</li>
* <li><strong>portAndProtocol</strong>: the port number and protocol. Valid values of the port number: 1 to 65535. Valid values of the protocol: <strong>TCP</strong> and <strong>UDP</strong>.</li>
* <li><strong>enable</strong>: enables the Kubernetes Service-based registration and discovery feature.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"serviceName":"bwm-poc-sc-gateway-cn-beijing-front","namespaceId":"cn-beijing:front","portAndProtocol":{"18012":"TCP"},"enable":true}</p>
*/
public Builder pvtzDiscoverySvc(String pvtzDiscoverySvc) {
this.putQueryParameter("PvtzDiscoverySvc", pvtzDiscoverySvc);
this.pvtzDiscoverySvc = pvtzDiscoverySvc;
return this;
}
/**
* <p>The Python environment. Set the value to <strong>PYTHON 3.9.15</strong>.</p>
*
* <strong>example:</strong>
* <p>PYTHON 3.9.15</p>
*/
public Builder python(String python) {
this.putQueryParameter("Python", 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 the package does not contain this file and you do not configure custom dependencies in the package, specify the dependencies that you want to install in the text box.</p>
*
* <strong>example:</strong>
* <p>Flask==2.0</p>
*/
public Builder pythonModules(String pythonModules) {
this.putQueryParameter("PythonModules", 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":["sleep","6s"]},"initialDelaySeconds":15,"timeoutSeconds":12}</p>
*/
public Builder readiness(String readiness) {
this.putQueryParameter("Readiness", readiness);
this.readiness = readiness;
return this;
}
/**
* Replicas.
*/
public Builder replicas(Integer replicas) {
this.putQueryParameter("Replicas", replicas);
this.replicas = replicas;
return this;
}
/**
* SecretMountDesc.
*/
public Builder secretMountDesc(String secretMountDesc) {
this.putQueryParameter("SecretMountDesc", secretMountDesc);
this.secretMountDesc = secretMountDesc;
return this;
}
/**
* SecurityGroupId.
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
/**
* ServiceTags.
*/
public Builder serviceTags(String serviceTags) {
this.putBodyParameter("ServiceTags", serviceTags);
this.serviceTags = serviceTags;
return this;
}
/**
* <p>The configuration of the container.</p>
*/
public Builder sidecarContainersConfig(java.util.List<SidecarContainerConfig> sidecarContainersConfig) {
String sidecarContainersConfigShrink = shrink(sidecarContainersConfig, "SidecarContainersConfig", "json");
this.putBodyParameter("SidecarContainersConfig", sidecarContainersConfigShrink);
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 table describes the parameters that are used in the preceding statements.</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>
* <blockquote>
* <p>A Log Service project that is automatically created by SAE when you create an application is deleted when the application is deleted. Therefore, when you create an application, you cannot select a Log Service project that is automatically created by SAE for log collection.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]</p>
*/
public Builder slsConfigs(String slsConfigs) {
this.putQueryParameter("SlsConfigs", slsConfigs);
this.slsConfigs = slsConfigs;
return this;
}
/**
* StartupProbe.
*/
public Builder startupProbe(String startupProbe) {
this.putQueryParameter("StartupProbe", startupProbe);
this.startupProbe = startupProbe;
return this;
}
/**
* SwimlanePvtzDiscoverySvc.
*/
public Builder swimlanePvtzDiscoverySvc(String swimlanePvtzDiscoverySvc) {
this.putBodyParameter("SwimlanePvtzDiscoverySvc", swimlanePvtzDiscoverySvc);
this.swimlanePvtzDiscoverySvc = swimlanePvtzDiscoverySvc;
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.putQueryParameter("TerminationGracePeriodSeconds", 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.putQueryParameter("Timezone", timezone);
this.timezone = timezone;
return this;
}
/**
* <p>The Tomcat configuration. If you want to cancel this configuration, set this parameter to "" or "{}". The following variables are included in the configuration: Take note of the following rules:</p>
* <ul>
* <li><strong>port</strong>: the port number. The port number ranges from 1024 to 65535. Though the admin permissions are configured for the container, 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 specify 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: UTF-8, ISO-8859-1, GBK, and GB2312.************ If you do not specify this parameter, the default value <strong>ISO-8859-1</strong> is used.</li>
* <li><strong>useBodyEncoding</strong>: specifies whether to use the encoding scheme specified in the request body for URI query parameters. Default value: true.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}</p>
*/
public Builder tomcatConfig(String tomcatConfig) {
this.putQueryParameter("TomcatConfig", 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 table describes the parameters that are used in the preceding statements.</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.putQueryParameter("UpdateStrategy", updateStrategy);
this.updateStrategy = updateStrategy;
return this;
}
/**
* VSwitchId.
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The startup command of the WAR package. For information about how to configure the startup command, see <a href="https://help.aliyun.com/document_detail/96677.html">Configure startup commands</a>.</p>
*
* <strong>example:</strong>
* <p>CATALINA_OPTS="$CATALINA_OPTS $Options" catalina.sh run</p>
*/
public Builder warStartOptions(String warStartOptions) {
this.putQueryParameter("WarStartOptions", 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.putQueryParameter("WebContainer", webContainer);
this.webContainer = webContainer;
return this;
}
@Override
public DeployApplicationRequest build() {
return new DeployApplicationRequest(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/DeployApplicationResponse.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 DeployApplicationResponse} extends {@link TeaModel}
*
* <p>DeployApplicationResponse</p>
*/
public class DeployApplicationResponse 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 DeployApplicationResponseBody body;
private DeployApplicationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeployApplicationResponse 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 DeployApplicationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeployApplicationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeployApplicationResponseBody body);
@Override
DeployApplicationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeployApplicationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeployApplicationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeployApplicationResponse 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(DeployApplicationResponseBody body) {
this.body = body;
return this;
}
@Override
public DeployApplicationResponse build() {
return new DeployApplicationResponse(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/DeployApplicationResponseBody.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 DeployApplicationResponseBody} extends {@link TeaModel}
*
* <p>DeployApplicationResponseBody</p>
*/
public class DeployApplicationResponseBody 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 DeployApplicationResponseBody(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 DeployApplicationResponseBody 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(DeployApplicationResponseBody 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. Take note of the following rules:</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 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 additional information that is returned. Take note of the following rules:</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>01CF26C7-00A3-4AA6-BA76-7E95F2A3***</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the application deployment is successful. Take note of the following rules:</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>ac1a0b2215622246421415014e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DeployApplicationResponseBody build() {
return new DeployApplicationResponseBody(this);
}
}
/**
*
* {@link DeployApplicationResponseBody} extends {@link TeaModel}
*
* <p>DeployApplicationResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.NameInMap("ChangeOrderId")
private String changeOrderId;
@com.aliyun.core.annotation.NameInMap("IsNeedApproval")
private Boolean isNeedApproval;
private Data(Builder builder) {
this.appId = builder.appId;
this.changeOrderId = builder.changeOrderId;
this.isNeedApproval = builder.isNeedApproval;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return changeOrderId
*/
public String getChangeOrderId() {
return this.changeOrderId;
}
/**
* @return isNeedApproval
*/
public Boolean getIsNeedApproval() {
return this.isNeedApproval;
}
public static final class Builder {
private String appId;
private String changeOrderId;
private Boolean isNeedApproval;
private Builder() {
}
private Builder(Data model) {
this.appId = model.appId;
this.changeOrderId = model.changeOrderId;
this.isNeedApproval = model.isNeedApproval;
}
/**
* <p>The application ID.</p>
*
* <strong>example:</strong>
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
*/
public Builder appId(String appId) {
this.appId = appId;
return this;
}
/**
* <p>The ID of the change order. It can be used to query the task status.</p>
*
* <strong>example:</strong>
* <p>01db03d3-3ee9-48b3-b3d0-dfce2d88****</p>
*/
public Builder changeOrderId(String changeOrderId) {
this.changeOrderId = changeOrderId;
return this;
}
/**
* <p>Specifies whether approval is required when a RAM user performs release. Take note of the following rules:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isNeedApproval(Boolean isNeedApproval) {
this.isNeedApproval = isNeedApproval;
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/DescribeAppServiceDetailRequest.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 DescribeAppServiceDetailRequest} extends {@link RequestModel}
*
* <p>DescribeAppServiceDetailRequest</p>
*/
public class DescribeAppServiceDetailRequest 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("NacosInstanceId")
private String nacosInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NacosNamespaceId")
private String nacosNamespaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceGroup")
private String serviceGroup;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceName")
private String serviceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceType")
private String serviceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceVersion")
private String serviceVersion;
private DescribeAppServiceDetailRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.nacosInstanceId = builder.nacosInstanceId;
this.nacosNamespaceId = builder.nacosNamespaceId;
this.serviceGroup = builder.serviceGroup;
this.serviceName = builder.serviceName;
this.serviceType = builder.serviceType;
this.serviceVersion = builder.serviceVersion;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAppServiceDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return nacosInstanceId
*/
public String getNacosInstanceId() {
return this.nacosInstanceId;
}
/**
* @return nacosNamespaceId
*/
public String getNacosNamespaceId() {
return this.nacosNamespaceId;
}
/**
* @return serviceGroup
*/
public String getServiceGroup() {
return this.serviceGroup;
}
/**
* @return serviceName
*/
public String getServiceName() {
return this.serviceName;
}
/**
* @return serviceType
*/
public String getServiceType() {
return this.serviceType;
}
/**
* @return serviceVersion
*/
public String getServiceVersion() {
return this.serviceVersion;
}
public static final class Builder extends Request.Builder<DescribeAppServiceDetailRequest, Builder> {
private String appId;
private String nacosInstanceId;
private String nacosNamespaceId;
private String serviceGroup;
private String serviceName;
private String serviceType;
private String serviceVersion;
private Builder() {
super();
}
private Builder(DescribeAppServiceDetailRequest request) {
super(request);
this.appId = request.appId;
this.nacosInstanceId = request.nacosInstanceId;
this.nacosNamespaceId = request.nacosNamespaceId;
this.serviceGroup = request.serviceGroup;
this.serviceName = request.serviceName;
this.serviceType = request.serviceType;
this.serviceVersion = request.serviceVersion;
}
/**
* <p>6dcc8c9e-d3da-478a-a066-86dcf820****</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>6dcc8c9e-d3da-478a-a066-86dcf820****</p>
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* <p>The ID of the MSE Nacos instance.</p>
*
* <strong>example:</strong>
* <p>mse-cn-sco3r0u****</p>
*/
public Builder nacosInstanceId(String nacosInstanceId) {
this.putQueryParameter("NacosInstanceId", nacosInstanceId);
this.nacosInstanceId = nacosInstanceId;
return this;
}
/**
* <p>The ID of the namespace for the MSE Nacos instance.</p>
*
* <strong>example:</strong>
* <p>public</p>
*/
public Builder nacosNamespaceId(String nacosNamespaceId) {
this.putQueryParameter("NacosNamespaceId", nacosNamespaceId);
this.nacosNamespaceId = nacosNamespaceId;
return this;
}
/**
* <p>springCloud</p>
*
* <strong>example:</strong>
* <p>springCloud</p>
*/
public Builder serviceGroup(String serviceGroup) {
this.putQueryParameter("ServiceGroup", serviceGroup);
this.serviceGroup = serviceGroup;
return this;
}
/**
* <p>edas.service.provider</p>
*
* <strong>example:</strong>
* <p>edas.service.provider</p>
*/
public Builder serviceName(String serviceName) {
this.putQueryParameter("ServiceName", serviceName);
this.serviceName = serviceName;
return this;
}
/**
* <p>springCloud</p>
*
* <strong>example:</strong>
* <p>springCloud</p>
*/
public Builder serviceType(String serviceType) {
this.putQueryParameter("ServiceType", serviceType);
this.serviceType = serviceType;
return this;
}
/**
* <p>1.0.0</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder serviceVersion(String serviceVersion) {
this.putQueryParameter("ServiceVersion", serviceVersion);
this.serviceVersion = serviceVersion;
return this;
}
@Override
public DescribeAppServiceDetailRequest build() {
return new DescribeAppServiceDetailRequest(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/DescribeAppServiceDetailResponse.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 DescribeAppServiceDetailResponse} extends {@link TeaModel}
*
* <p>DescribeAppServiceDetailResponse</p>
*/
public class DescribeAppServiceDetailResponse 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 DescribeAppServiceDetailResponseBody body;
private DescribeAppServiceDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAppServiceDetailResponse 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 DescribeAppServiceDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAppServiceDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAppServiceDetailResponseBody body);
@Override
DescribeAppServiceDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAppServiceDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAppServiceDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAppServiceDetailResponse 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(DescribeAppServiceDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAppServiceDetailResponse build() {
return new DescribeAppServiceDetailResponse(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/DescribeAppServiceDetailResponseBody.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 DescribeAppServiceDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAppServiceDetailResponseBody</p>
*/
public class DescribeAppServiceDetailResponseBody 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 DescribeAppServiceDetailResponseBody(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 DescribeAppServiceDetailResponseBody 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(DescribeAppServiceDetailResponseBody 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 call was successful.</li>
* <li><strong>3xx</strong>: indicates that the call was redirected.</li>
* <li><strong>4xx</strong>: indicates that the call 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 data that is returned.</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>B2C7874F-F109-5B34-8618-2C10BBA2****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the meta data was obtained. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The metadata was obtained.</li>
* <li><strong>false</strong>: The metadata failed to 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. The ID is used to query the details of a request.</p>
*
* <strong>example:</strong>
* <p>0b16399316402420740034918e****</p>
*/
public Builder traceId(String traceId) {
this.traceId = traceId;
return this;
}
public DescribeAppServiceDetailResponseBody build() {
return new DescribeAppServiceDetailResponseBody(this);
}
}
/**
*
* {@link DescribeAppServiceDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAppServiceDetailResponseBody</p>
*/
public static class ParameterDefinitions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private ParameterDefinitions(Builder builder) {
this.description = builder.description;
this.name = builder.name;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static ParameterDefinitions create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String description;
private String name;
private String type;
private Builder() {
}
private Builder(ParameterDefinitions model) {
this.description = model.description;
this.name = model.name;
this.type = model.type;
}
/**
* <p>The description of the parameter.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The name of the parameter.</p>
*
* <strong>example:</strong>
* <p>arg0</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the parameter.</p>
*
* <strong>example:</strong>
* <p>java.lang.String</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public ParameterDefinitions build() {
return new ParameterDefinitions(this);
}
}
}
/**
*
* {@link DescribeAppServiceDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAppServiceDetailResponseBody</p>
*/
public static class Methods extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MethodController")
private String methodController;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NameDetail")
private String nameDetail;
@com.aliyun.core.annotation.NameInMap("ParameterDefinitions")
private java.util.List<ParameterDefinitions> parameterDefinitions;
@com.aliyun.core.annotation.NameInMap("ParameterDetails")
private java.util.List<String> parameterDetails;
@com.aliyun.core.annotation.NameInMap("ParameterTypes")
private java.util.List<String> parameterTypes;
@com.aliyun.core.annotation.NameInMap("Paths")
private java.util.List<String> paths;
@com.aliyun.core.annotation.NameInMap("RequestMethods")
private java.util.List<String> requestMethods;
@com.aliyun.core.annotation.NameInMap("ReturnDetails")
private String returnDetails;
@com.aliyun.core.annotation.NameInMap("ReturnType")
private String returnType;
private Methods(Builder builder) {
this.methodController = builder.methodController;
this.name = builder.name;
this.nameDetail = builder.nameDetail;
this.parameterDefinitions = builder.parameterDefinitions;
this.parameterDetails = builder.parameterDetails;
this.parameterTypes = builder.parameterTypes;
this.paths = builder.paths;
this.requestMethods = builder.requestMethods;
this.returnDetails = builder.returnDetails;
this.returnType = builder.returnType;
}
public static Builder builder() {
return new Builder();
}
public static Methods create() {
return builder().build();
}
/**
* @return methodController
*/
public String getMethodController() {
return this.methodController;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nameDetail
*/
public String getNameDetail() {
return this.nameDetail;
}
/**
* @return parameterDefinitions
*/
public java.util.List<ParameterDefinitions> getParameterDefinitions() {
return this.parameterDefinitions;
}
/**
* @return parameterDetails
*/
public java.util.List<String> getParameterDetails() {
return this.parameterDetails;
}
/**
* @return parameterTypes
*/
public java.util.List<String> getParameterTypes() {
return this.parameterTypes;
}
/**
* @return paths
*/
public java.util.List<String> getPaths() {
return this.paths;
}
/**
* @return requestMethods
*/
public java.util.List<String> getRequestMethods() {
return this.requestMethods;
}
/**
* @return returnDetails
*/
public String getReturnDetails() {
return this.returnDetails;
}
/**
* @return returnType
*/
public String getReturnType() {
return this.returnType;
}
public static final class Builder {
private String methodController;
private String name;
private String nameDetail;
private java.util.List<ParameterDefinitions> parameterDefinitions;
private java.util.List<String> parameterDetails;
private java.util.List<String> parameterTypes;
private java.util.List<String> paths;
private java.util.List<String> requestMethods;
private String returnDetails;
private String returnType;
private Builder() {
}
private Builder(Methods model) {
this.methodController = model.methodController;
this.name = model.name;
this.nameDetail = model.nameDetail;
this.parameterDefinitions = model.parameterDefinitions;
this.parameterDetails = model.parameterDetails;
this.parameterTypes = model.parameterTypes;
this.paths = model.paths;
this.requestMethods = model.requestMethods;
this.returnDetails = model.returnDetails;
this.returnType = model.returnType;
}
/**
* <p>The class to which the method belongs.</p>
*
* <strong>example:</strong>
* <p>com.serverless.sae.controller.EchoController</p>
*/
public Builder methodController(String methodController) {
this.methodController = methodController;
return this;
}
/**
* <p>The name of the method.</p>
*
* <strong>example:</strong>
* <p>echo</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The details of the method.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder nameDetail(String nameDetail) {
this.nameDetail = nameDetail;
return this;
}
/**
* <p>The definition of the parameter.</p>
*/
public Builder parameterDefinitions(java.util.List<ParameterDefinitions> parameterDefinitions) {
this.parameterDefinitions = parameterDefinitions;
return this;
}
/**
* <p>The details of the parameters.</p>
*/
public Builder parameterDetails(java.util.List<String> parameterDetails) {
this.parameterDetails = parameterDetails;
return this;
}
/**
* <p>The types of the parameters.</p>
*/
public Builder parameterTypes(java.util.List<String> parameterTypes) {
this.parameterTypes = parameterTypes;
return this;
}
/**
* <p>The request paths. Format:</p>
* <p><code>/path</code></p>
*/
public Builder paths(java.util.List<String> paths) {
this.paths = paths;
return this;
}
/**
* <p>The request methods. Valid values:</p>
* <ul>
* <li><strong>GET</strong></li>
* <li><strong>ALL</strong></li>
* </ul>
*/
public Builder requestMethods(java.util.List<String> requestMethods) {
this.requestMethods = requestMethods;
return this;
}
/**
* <p>The details of the response.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder returnDetails(String returnDetails) {
this.returnDetails = returnDetails;
return this;
}
/**
* <p>The data format of the response.</p>
*
* <strong>example:</strong>
* <p>java.lang.String</p>
*/
public Builder returnType(String returnType) {
this.returnType = returnType;
return this;
}
public Methods build() {
return new Methods(this);
}
}
}
/**
*
* {@link DescribeAppServiceDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribeAppServiceDetailResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DubboApplicationName")
private String dubboApplicationName;
@com.aliyun.core.annotation.NameInMap("EdasAppName")
private String edasAppName;
@com.aliyun.core.annotation.NameInMap("Group")
private String group;
@com.aliyun.core.annotation.NameInMap("Metadata")
private java.util.Map<String, ?> metadata;
@com.aliyun.core.annotation.NameInMap("Methods")
private java.util.List<Methods> methods;
@com.aliyun.core.annotation.NameInMap("ServiceName")
private String serviceName;
@com.aliyun.core.annotation.NameInMap("ServicePorts")
private java.util.List<Long> servicePorts;
@com.aliyun.core.annotation.NameInMap("ServiceProtocol")
private String serviceProtocol;
@com.aliyun.core.annotation.NameInMap("ServiceTags")
private java.util.List<String> serviceTags;
@com.aliyun.core.annotation.NameInMap("ServiceType")
private String serviceType;
@com.aliyun.core.annotation.NameInMap("SpringApplicationName")
private String springApplicationName;
@com.aliyun.core.annotation.NameInMap("Version")
private String version;
private Data(Builder builder) {
this.dubboApplicationName = builder.dubboApplicationName;
this.edasAppName = builder.edasAppName;
this.group = builder.group;
this.metadata = builder.metadata;
this.methods = builder.methods;
this.serviceName = builder.serviceName;
this.servicePorts = builder.servicePorts;
this.serviceProtocol = builder.serviceProtocol;
this.serviceTags = builder.serviceTags;
this.serviceType = builder.serviceType;
this.springApplicationName = builder.springApplicationName;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return dubboApplicationName
*/
public String getDubboApplicationName() {
return this.dubboApplicationName;
}
/**
* @return edasAppName
*/
public String getEdasAppName() {
return this.edasAppName;
}
/**
* @return group
*/
public String getGroup() {
return this.group;
}
/**
* @return metadata
*/
public java.util.Map<String, ?> getMetadata() {
return this.metadata;
}
/**
* @return methods
*/
public java.util.List<Methods> getMethods() {
return this.methods;
}
/**
* @return serviceName
*/
public String getServiceName() {
return this.serviceName;
}
/**
* @return servicePorts
*/
public java.util.List<Long> getServicePorts() {
return this.servicePorts;
}
/**
* @return serviceProtocol
*/
public String getServiceProtocol() {
return this.serviceProtocol;
}
/**
* @return serviceTags
*/
public java.util.List<String> getServiceTags() {
return this.serviceTags;
}
/**
* @return serviceType
*/
public String getServiceType() {
return this.serviceType;
}
/**
* @return springApplicationName
*/
public String getSpringApplicationName() {
return this.springApplicationName;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private String dubboApplicationName;
private String edasAppName;
private String group;
private java.util.Map<String, ?> metadata;
private java.util.List<Methods> methods;
private String serviceName;
private java.util.List<Long> servicePorts;
private String serviceProtocol;
private java.util.List<String> serviceTags;
private String serviceType;
private String springApplicationName;
private String version;
private Builder() {
}
private Builder(Data model) {
this.dubboApplicationName = model.dubboApplicationName;
this.edasAppName = model.edasAppName;
this.group = model.group;
this.metadata = model.metadata;
this.methods = model.methods;
this.serviceName = model.serviceName;
this.servicePorts = model.servicePorts;
this.serviceProtocol = model.serviceProtocol;
this.serviceTags = model.serviceTags;
this.serviceType = model.serviceType;
this.springApplicationName = model.springApplicationName;
this.version = model.version;
}
/**
* <p>The name of the Dubbo application.</p>
*
* <strong>example:</strong>
* <p>service-consumer</p>
*/
public Builder dubboApplicationName(String dubboApplicationName) {
this.dubboApplicationName = dubboApplicationName;
return this;
}
/**
* <p>The name of the application.</p>
*
* <strong>example:</strong>
* <p>cn-zhangjiakou-micro-service-******</p>
*/
public Builder edasAppName(String edasAppName) {
this.edasAppName = edasAppName;
return this;
}
/**
* <p>The group to which the service belongs. You can create a custom group.</p>
*
* <strong>example:</strong>
* <p>springCloud</p>
*/
public Builder group(String group) {
this.group = group;
return this;
}
/**
* <p>The metadata. Example: <code>{side: "provider", port: "18081", preserved: {register: {source: "SPRING_CLOUD"}},…}</code>.</p>
*
* <strong>example:</strong>
* <p>{side: "provider", port: "18081", preserved: {register: {source: "SPRING_CLOUD"}},…}</p>
*/
public Builder metadata(java.util.Map<String, ?> metadata) {
this.metadata = metadata;
return this;
}
/**
* <p>The methods.</p>
*/
public Builder methods(java.util.List<Methods> methods) {
this.methods = methods;
return this;
}
/**
* <p>The name of the service.</p>
*
* <strong>example:</strong>
* <p>service-provider</p>
*/
public Builder serviceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
/**
* <p>The port used by the service.</p>
*/
public Builder servicePorts(java.util.List<Long> servicePorts) {
this.servicePorts = servicePorts;
return this;
}
/**
* <p>The protocol used by the service.</p>
*
* <strong>example:</strong>
* <p>HTTP</p>
*/
public Builder serviceProtocol(String serviceProtocol) {
this.serviceProtocol = serviceProtocol;
return this;
}
/**
* <p>The tag of the service.</p>
*/
public Builder serviceTags(java.util.List<String> serviceTags) {
this.serviceTags = serviceTags;
return this;
}
/**
* <p>The type of the service. Valid values:</p>
* <ul>
* <li><strong>dubbo</strong></li>
* <li><strong>springCloud</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>springCloud</p>
*/
public Builder serviceType(String serviceType) {
this.serviceType = serviceType;
return this;
}
/**
* <p>The name of the Spring Cloud application.</p>
*
* <strong>example:</strong>
* <p>service-provider</p>
*/
public Builder springApplicationName(String springApplicationName) {
this.springApplicationName = springApplicationName;
return this;
}
/**
* <p>The version of the service. You can create a custom version.</p>
*
* <strong>example:</strong>
* <p>1.0.0</p>
*/
public Builder version(String version) {
this.version = version;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.