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

com.aliyun.sdk.service.cloudapi20160714.models.DescribeDeployedApiResponseBody Maven / Gradle / Ivy

There is a newer version: 3.0.24
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;

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

/**
 * {@link DescribeDeployedApiResponseBody} extends {@link TeaModel}
 *
 * 

DescribeDeployedApiResponseBody

*/ public class DescribeDeployedApiResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AllowSignatureMethod") private String allowSignatureMethod; @com.aliyun.core.annotation.NameInMap("ApiId") private String apiId; @com.aliyun.core.annotation.NameInMap("ApiName") private String apiName; @com.aliyun.core.annotation.NameInMap("AuthType") private String authType; @com.aliyun.core.annotation.NameInMap("ConstantParameters") private ConstantParameters constantParameters; @com.aliyun.core.annotation.NameInMap("CustomSystemParameters") private CustomSystemParameters customSystemParameters; @com.aliyun.core.annotation.NameInMap("DeployedTime") private String deployedTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisableInternet") private Boolean disableInternet; @com.aliyun.core.annotation.NameInMap("ErrorCodeSamples") private ErrorCodeSamples errorCodeSamples; @com.aliyun.core.annotation.NameInMap("FailResultSample") private String failResultSample; @com.aliyun.core.annotation.NameInMap("ForceNonceCheck") private Boolean forceNonceCheck; @com.aliyun.core.annotation.NameInMap("GroupId") private String groupId; @com.aliyun.core.annotation.NameInMap("GroupName") private String groupName; @com.aliyun.core.annotation.NameInMap("OpenIdConnectConfig") private OpenIdConnectConfig openIdConnectConfig; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestConfig") private RequestConfig requestConfig; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RequestParameters") private RequestParameters requestParameters; @com.aliyun.core.annotation.NameInMap("ResultBodyModel") private String resultBodyModel; @com.aliyun.core.annotation.NameInMap("ResultDescriptions") private ResultDescriptions resultDescriptions; @com.aliyun.core.annotation.NameInMap("ResultSample") private String resultSample; @com.aliyun.core.annotation.NameInMap("ResultType") private String resultType; @com.aliyun.core.annotation.NameInMap("ServiceConfig") private ServiceConfig serviceConfig; @com.aliyun.core.annotation.NameInMap("ServiceParameters") private ServiceParameters serviceParameters; @com.aliyun.core.annotation.NameInMap("ServiceParametersMap") private ServiceParametersMap serviceParametersMap; @com.aliyun.core.annotation.NameInMap("StageName") private String stageName; @com.aliyun.core.annotation.NameInMap("SystemParameters") private SystemParameters systemParameters; @com.aliyun.core.annotation.NameInMap("Visibility") private String visibility; private DescribeDeployedApiResponseBody(Builder builder) { this.allowSignatureMethod = builder.allowSignatureMethod; this.apiId = builder.apiId; this.apiName = builder.apiName; this.authType = builder.authType; this.constantParameters = builder.constantParameters; this.customSystemParameters = builder.customSystemParameters; this.deployedTime = builder.deployedTime; this.description = builder.description; this.disableInternet = builder.disableInternet; this.errorCodeSamples = builder.errorCodeSamples; this.failResultSample = builder.failResultSample; this.forceNonceCheck = builder.forceNonceCheck; this.groupId = builder.groupId; this.groupName = builder.groupName; this.openIdConnectConfig = builder.openIdConnectConfig; this.regionId = builder.regionId; this.requestConfig = builder.requestConfig; this.requestId = builder.requestId; this.requestParameters = builder.requestParameters; this.resultBodyModel = builder.resultBodyModel; this.resultDescriptions = builder.resultDescriptions; this.resultSample = builder.resultSample; this.resultType = builder.resultType; this.serviceConfig = builder.serviceConfig; this.serviceParameters = builder.serviceParameters; this.serviceParametersMap = builder.serviceParametersMap; this.stageName = builder.stageName; this.systemParameters = builder.systemParameters; this.visibility = builder.visibility; } public static Builder builder() { return new Builder(); } public static DescribeDeployedApiResponseBody create() { return builder().build(); } /** * @return allowSignatureMethod */ public String getAllowSignatureMethod() { return this.allowSignatureMethod; } /** * @return apiId */ public String getApiId() { return this.apiId; } /** * @return apiName */ public String getApiName() { return this.apiName; } /** * @return authType */ public String getAuthType() { return this.authType; } /** * @return constantParameters */ public ConstantParameters getConstantParameters() { return this.constantParameters; } /** * @return customSystemParameters */ public CustomSystemParameters getCustomSystemParameters() { return this.customSystemParameters; } /** * @return deployedTime */ public String getDeployedTime() { return this.deployedTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disableInternet */ public Boolean getDisableInternet() { return this.disableInternet; } /** * @return errorCodeSamples */ public ErrorCodeSamples getErrorCodeSamples() { return this.errorCodeSamples; } /** * @return failResultSample */ public String getFailResultSample() { return this.failResultSample; } /** * @return forceNonceCheck */ public Boolean getForceNonceCheck() { return this.forceNonceCheck; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return groupName */ public String getGroupName() { return this.groupName; } /** * @return openIdConnectConfig */ public OpenIdConnectConfig getOpenIdConnectConfig() { return this.openIdConnectConfig; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestConfig */ public RequestConfig getRequestConfig() { return this.requestConfig; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return requestParameters */ public RequestParameters getRequestParameters() { return this.requestParameters; } /** * @return resultBodyModel */ public String getResultBodyModel() { return this.resultBodyModel; } /** * @return resultDescriptions */ public ResultDescriptions getResultDescriptions() { return this.resultDescriptions; } /** * @return resultSample */ public String getResultSample() { return this.resultSample; } /** * @return resultType */ public String getResultType() { return this.resultType; } /** * @return serviceConfig */ public ServiceConfig getServiceConfig() { return this.serviceConfig; } /** * @return serviceParameters */ public ServiceParameters getServiceParameters() { return this.serviceParameters; } /** * @return serviceParametersMap */ public ServiceParametersMap getServiceParametersMap() { return this.serviceParametersMap; } /** * @return stageName */ public String getStageName() { return this.stageName; } /** * @return systemParameters */ public SystemParameters getSystemParameters() { return this.systemParameters; } /** * @return visibility */ public String getVisibility() { return this.visibility; } public static final class Builder { private String allowSignatureMethod; private String apiId; private String apiName; private String authType; private ConstantParameters constantParameters; private CustomSystemParameters customSystemParameters; private String deployedTime; private String description; private Boolean disableInternet; private ErrorCodeSamples errorCodeSamples; private String failResultSample; private Boolean forceNonceCheck; private String groupId; private String groupName; private OpenIdConnectConfig openIdConnectConfig; private String regionId; private RequestConfig requestConfig; private String requestId; private RequestParameters requestParameters; private String resultBodyModel; private ResultDescriptions resultDescriptions; private String resultSample; private String resultType; private ServiceConfig serviceConfig; private ServiceParameters serviceParameters; private ServiceParametersMap serviceParametersMap; private String stageName; private SystemParameters systemParameters; private String visibility; /** * The signature method used by the client. Valid values: *

* * * HmacSHA256 * * HmacSHA1,HmacSHA256 */ public Builder allowSignatureMethod(String allowSignatureMethod) { this.allowSignatureMethod = allowSignatureMethod; return this; } /** * The ID of the API. */ public Builder apiId(String apiId) { this.apiId = apiId; return this; } /** * The name of the API */ public Builder apiName(String apiName) { this.apiName = apiName; return this; } /** * The security authentication method of the API. Valid values: *

* * * **APP: Only authorized applications can call the API.** * * * **ANONYMOUS: The API can be anonymously called. In this mode, you must take note of the following rules:** * * * All users who have obtained the API service information can call this API. API Gateway does not authenticate callers and cannot set user-specific throttling policies. If you make this API public, set API-specific throttling policies. */ public Builder authType(String authType) { this.authType = authType; return this; } /** * The constant parameters. */ public Builder constantParameters(ConstantParameters constantParameters) { this.constantParameters = constantParameters; return this; } /** * The custom system parameters. */ public Builder customSystemParameters(CustomSystemParameters customSystemParameters) { this.customSystemParameters = customSystemParameters; return this; } /** * The deployment time. Format: yyyy-mm-ddhh:mm:ss. */ public Builder deployedTime(String deployedTime) { this.deployedTime = deployedTime; return this; } /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * * Specifies whether to set DisableInternet to **true** to limit API calls to within the VPC. *

* * If you set DisableInternet to **false**, the limit is lifted. * * > If you do not set this parameter, the original value is not modified. */ public Builder disableInternet(Boolean disableInternet) { this.disableInternet = disableInternet; return this; } /** * The sample error codes returned by the backend service. *

* * For more information, see [ErrorCodeSample](~~44392~~). */ public Builder errorCodeSamples(ErrorCodeSamples errorCodeSamples) { this.errorCodeSamples = errorCodeSamples; return this; } /** * The sample error response from the backend service. */ public Builder failResultSample(String failResultSample) { this.failResultSample = failResultSample; return this; } /** * * Specifies whether to set **ForceNonceCheck** to **true** to force the check of X-Ca-Nonce during the request. This is the unique identifier of the request and is generally identified by UUID. After receiving this parameter, API Gateway verifies the validity of this parameter. The same value can be used only once within 15 minutes. This helps prevent replay attacks. *

* * If you set **ForceNonceCheck** to **false**, the check is not performed. The default value is false when you create an API. */ public Builder forceNonceCheck(Boolean forceNonceCheck) { this.forceNonceCheck = forceNonceCheck; return this; } /** * The ID of the API group. */ public Builder groupId(String groupId) { this.groupId = groupId; return this; } /** * The name of the API group. */ public Builder groupName(String groupName) { this.groupName = groupName; return this; } /** * The configuration items of the third-party OpenID Connect authentication method. */ public Builder openIdConnectConfig(OpenIdConnectConfig openIdConnectConfig) { this.openIdConnectConfig = openIdConnectConfig; return this; } /** * The region to which the API group belongs. */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * Configuration items of API requests sent by the consumer to API Gateway. *

* * For more information, see [RequestConfig](~~43985~~). */ public Builder requestConfig(RequestConfig requestConfig) { this.requestConfig = requestConfig; return this; } /** * The ID of the request. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * The parameters of API requests sent by the consumer to API Gateway. *

* * For more information, see [RequestParameter](~~43986~~). */ public Builder requestParameters(RequestParameters requestParameters) { this.requestParameters = requestParameters; return this; } /** * The return description of the API. */ public Builder resultBodyModel(String resultBodyModel) { this.resultBodyModel = resultBodyModel; return this; } /** * The return description of the API. */ public Builder resultDescriptions(ResultDescriptions resultDescriptions) { this.resultDescriptions = resultDescriptions; return this; } /** * The sample response from the backend service. */ public Builder resultSample(String resultSample) { this.resultSample = resultSample; return this; } /** * The format of the response from the backend service. Valid values: JSON, TEXT, BINARY, XML, and HTML. Default value: JSON. */ public Builder resultType(String resultType) { this.resultType = resultType; return this; } /** * The configuration items of API requests sent by API Gateway to the backend service. *

* * For more information, see [ServiceConfig](~~43987~~). */ public Builder serviceConfig(ServiceConfig serviceConfig) { this.serviceConfig = serviceConfig; return this; } /** * The parameters of API requests sent by API Gateway to the backend service. *

* * For more information, see [ServiceParameter](~~43988~~). */ public Builder serviceParameters(ServiceParameters serviceParameters) { this.serviceParameters = serviceParameters; return this; } /** * The mappings between parameters of requests sent by the consumer to API Gateway and parameters of requests sent by API Gateway to the backend service. *

* * For more information, see [ServiceParameterMap](~~43989~~). */ public Builder serviceParametersMap(ServiceParametersMap serviceParametersMap) { this.serviceParametersMap = serviceParametersMap; return this; } /** * The name of the runtime environment. Valid values: *

* * * **RELEASE** * * **PRE: the pre-release environment** * * **TEST** */ public Builder stageName(String stageName) { this.stageName = stageName; return this; } /** * System parameters */ public Builder systemParameters(SystemParameters systemParameters) { this.systemParameters = systemParameters; return this; } /** * Specifies whether to make the API public. Valid values: *

* * * **PUBLIC**: Make the API public. If you set this parameter to PUBLIC, this API is displayed on the APIs page for all users after the API is published to the production environment.** * * **PRIVATE**: Make the API private. Private APIs are not displayed in the Alibaba Cloud Marketplace after the API group to which they belong is made available. */ public Builder visibility(String visibility) { this.visibility = visibility; return this; } public DescribeDeployedApiResponseBody build() { return new DescribeDeployedApiResponseBody(this); } } public static class ConstantParameter extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConstantValue") private String constantValue; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Location") private String location; @com.aliyun.core.annotation.NameInMap("ServiceParameterName") private String serviceParameterName; private ConstantParameter(Builder builder) { this.constantValue = builder.constantValue; this.description = builder.description; this.location = builder.location; this.serviceParameterName = builder.serviceParameterName; } public static Builder builder() { return new Builder(); } public static ConstantParameter create() { return builder().build(); } /** * @return constantValue */ public String getConstantValue() { return this.constantValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return location */ public String getLocation() { return this.location; } /** * @return serviceParameterName */ public String getServiceParameterName() { return this.serviceParameterName; } public static final class Builder { private String constantValue; private String description; private String location; private String serviceParameterName; /** * The constant value. */ public Builder constantValue(String constantValue) { this.constantValue = constantValue; return this; } /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * The parameter location. Valid values: BODY, HEAD, QUERY, and PATH. */ public Builder location(String location) { this.location = location; return this; } /** * The name of the backend service parameter. */ public Builder serviceParameterName(String serviceParameterName) { this.serviceParameterName = serviceParameterName; return this; } public ConstantParameter build() { return new ConstantParameter(this); } } } public static class ConstantParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConstantParameter") private java.util.List < ConstantParameter> constantParameter; private ConstantParameters(Builder builder) { this.constantParameter = builder.constantParameter; } public static Builder builder() { return new Builder(); } public static ConstantParameters create() { return builder().build(); } /** * @return constantParameter */ public java.util.List < ConstantParameter> getConstantParameter() { return this.constantParameter; } public static final class Builder { private java.util.List < ConstantParameter> constantParameter; /** * ConstantParameter. */ public Builder constantParameter(java.util.List < ConstantParameter> constantParameter) { this.constantParameter = constantParameter; return this; } public ConstantParameters build() { return new ConstantParameters(this); } } } public static class CustomSystemParameter extends TeaModel { @com.aliyun.core.annotation.NameInMap("DemoValue") private String demoValue; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Location") private String location; @com.aliyun.core.annotation.NameInMap("ParameterName") private String parameterName; @com.aliyun.core.annotation.NameInMap("ServiceParameterName") private String serviceParameterName; private CustomSystemParameter(Builder builder) { this.demoValue = builder.demoValue; this.description = builder.description; this.location = builder.location; this.parameterName = builder.parameterName; this.serviceParameterName = builder.serviceParameterName; } public static Builder builder() { return new Builder(); } public static CustomSystemParameter create() { return builder().build(); } /** * @return demoValue */ public String getDemoValue() { return this.demoValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return location */ public String getLocation() { return this.location; } /** * @return parameterName */ public String getParameterName() { return this.parameterName; } /** * @return serviceParameterName */ public String getServiceParameterName() { return this.serviceParameterName; } public static final class Builder { private String demoValue; private String description; private String location; private String parameterName; private String serviceParameterName; /** * Example */ public Builder demoValue(String demoValue) { this.demoValue = demoValue; return this; } /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * The parameter location. Valid values: BODY, HEAD, QUERY, and PATH. */ public Builder location(String location) { this.location = location; return this; } /** * The name of the custom system parameter. */ public Builder parameterName(String parameterName) { this.parameterName = parameterName; return this; } /** * The name of the corresponding backend parameter. */ public Builder serviceParameterName(String serviceParameterName) { this.serviceParameterName = serviceParameterName; return this; } public CustomSystemParameter build() { return new CustomSystemParameter(this); } } } public static class CustomSystemParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomSystemParameter") private java.util.List < CustomSystemParameter> customSystemParameter; private CustomSystemParameters(Builder builder) { this.customSystemParameter = builder.customSystemParameter; } public static Builder builder() { return new Builder(); } public static CustomSystemParameters create() { return builder().build(); } /** * @return customSystemParameter */ public java.util.List < CustomSystemParameter> getCustomSystemParameter() { return this.customSystemParameter; } public static final class Builder { private java.util.List < CustomSystemParameter> customSystemParameter; /** * CustomSystemParameter. */ public Builder customSystemParameter(java.util.List < CustomSystemParameter> customSystemParameter) { this.customSystemParameter = customSystemParameter; return this; } public CustomSystemParameters build() { return new CustomSystemParameters(this); } } } public static class ErrorCodeSample extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Message") private String message; private ErrorCodeSample(Builder builder) { this.code = builder.code; this.description = builder.description; this.message = builder.message; } public static Builder builder() { return new Builder(); } public static ErrorCodeSample create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return description */ public String getDescription() { return this.description; } /** * @return message */ public String getMessage() { return this.message; } public static final class Builder { private String code; private String description; private String message; /** * The error code. */ public Builder code(String code) { this.code = code; return this; } /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * The error message. */ public Builder message(String message) { this.message = message; return this; } public ErrorCodeSample build() { return new ErrorCodeSample(this); } } } public static class ErrorCodeSamples extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCodeSample") private java.util.List < ErrorCodeSample> errorCodeSample; private ErrorCodeSamples(Builder builder) { this.errorCodeSample = builder.errorCodeSample; } public static Builder builder() { return new Builder(); } public static ErrorCodeSamples create() { return builder().build(); } /** * @return errorCodeSample */ public java.util.List < ErrorCodeSample> getErrorCodeSample() { return this.errorCodeSample; } public static final class Builder { private java.util.List < ErrorCodeSample> errorCodeSample; /** * ErrorCodeSample. */ public Builder errorCodeSample(java.util.List < ErrorCodeSample> errorCodeSample) { this.errorCodeSample = errorCodeSample; return this; } public ErrorCodeSamples build() { return new ErrorCodeSamples(this); } } } public static class OpenIdConnectConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IdTokenParamName") private String idTokenParamName; @com.aliyun.core.annotation.NameInMap("OpenIdApiType") private String openIdApiType; @com.aliyun.core.annotation.NameInMap("PublicKey") private String publicKey; @com.aliyun.core.annotation.NameInMap("PublicKeyId") private String publicKeyId; private OpenIdConnectConfig(Builder builder) { this.idTokenParamName = builder.idTokenParamName; this.openIdApiType = builder.openIdApiType; this.publicKey = builder.publicKey; this.publicKeyId = builder.publicKeyId; } public static Builder builder() { return new Builder(); } public static OpenIdConnectConfig create() { return builder().build(); } /** * @return idTokenParamName */ public String getIdTokenParamName() { return this.idTokenParamName; } /** * @return openIdApiType */ public String getOpenIdApiType() { return this.openIdApiType; } /** * @return publicKey */ public String getPublicKey() { return this.publicKey; } /** * @return publicKeyId */ public String getPublicKeyId() { return this.publicKeyId; } public static final class Builder { private String idTokenParamName; private String openIdApiType; private String publicKey; private String publicKeyId; /** * The name of the parameter that corresponds to the token. */ public Builder idTokenParamName(String idTokenParamName) { this.idTokenParamName = idTokenParamName; return this; } /** * The configuration of OpenID Connect authentication. Valid values: *

* * * **IDTOKEN: indicates the APIs that are called by clients to obtain tokens. If you specify this value, the PublicKeyId parameter and the PublicKey parameter are required.** * * **BUSINESS: indicates business APIs. Tokens are used to call the business APIs. If you specify this value, the IdTokenParamName parameter is required. */ public Builder openIdApiType(String openIdApiType) { this.openIdApiType = openIdApiType; return this; } /** * The public key of the API. */ public Builder publicKey(String publicKey) { this.publicKey = publicKey; return this; } /** * The ID of the public key. */ public Builder publicKeyId(String publicKeyId) { this.publicKeyId = publicKeyId; return this; } public OpenIdConnectConfig build() { return new OpenIdConnectConfig(this); } } } public static class RequestConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("BodyFormat") private String bodyFormat; @com.aliyun.core.annotation.NameInMap("BodyModel") private String bodyModel; @com.aliyun.core.annotation.NameInMap("PostBodyDescription") private String postBodyDescription; @com.aliyun.core.annotation.NameInMap("RequestHttpMethod") private String requestHttpMethod; @com.aliyun.core.annotation.NameInMap("RequestMode") private String requestMode; @com.aliyun.core.annotation.NameInMap("RequestPath") private String requestPath; @com.aliyun.core.annotation.NameInMap("RequestProtocol") private String requestProtocol; private RequestConfig(Builder builder) { this.bodyFormat = builder.bodyFormat; this.bodyModel = builder.bodyModel; this.postBodyDescription = builder.postBodyDescription; this.requestHttpMethod = builder.requestHttpMethod; this.requestMode = builder.requestMode; this.requestPath = builder.requestPath; this.requestProtocol = builder.requestProtocol; } public static Builder builder() { return new Builder(); } public static RequestConfig create() { return builder().build(); } /** * @return bodyFormat */ public String getBodyFormat() { return this.bodyFormat; } /** * @return bodyModel */ public String getBodyModel() { return this.bodyModel; } /** * @return postBodyDescription */ public String getPostBodyDescription() { return this.postBodyDescription; } /** * @return requestHttpMethod */ public String getRequestHttpMethod() { return this.requestHttpMethod; } /** * @return requestMode */ public String getRequestMode() { return this.requestMode; } /** * @return requestPath */ public String getRequestPath() { return this.requestPath; } /** * @return requestProtocol */ public String getRequestProtocol() { return this.requestProtocol; } public static final class Builder { private String bodyFormat; private String bodyModel; private String postBodyDescription; private String requestHttpMethod; private String requestMode; private String requestPath; private String requestProtocol; /** * This parameter takes effect only when the RequestMode parameter is set to MAPPING. *

* * The server data transmission method used for POST and PUT requests. Valid values: FORM and STREAM. FORM indicates that data in key-value pairs is transmitted as forms. STREAM indicates that data is transmitted as byte streams. */ public Builder bodyFormat(String bodyFormat) { this.bodyFormat = bodyFormat; return this; } /** * The body model. */ public Builder bodyModel(String bodyModel) { this.bodyModel = bodyModel; return this; } /** * The description of the request body. */ public Builder postBodyDescription(String postBodyDescription) { this.postBodyDescription = postBodyDescription; return this; } /** * The HTTP method used to make the request. Valid values: GET, POST, DELETE, PUT, HEADER, TRACE, PATCH, CONNECT, and OPTIONS. */ public Builder requestHttpMethod(String requestHttpMethod) { this.requestHttpMethod = requestHttpMethod; return this; } /** * The request mode. Valid values: *

* * * MAPPING: Parameters are mapped. Unknown parameters are filtered out. * * PASSTHROUGH: Parameters are passed through. * * MAPPING_PASSTHROUGH: Parameters are mapped. Unknown parameters are passed through. */ public Builder requestMode(String requestMode) { this.requestMode = requestMode; return this; } /** * The API request path. If the complete API URL is `http://api.a.com:8080/object/add?key1=value1&key2=value2`, the API request path is ` /object/add `. */ public Builder requestPath(String requestPath) { this.requestPath = requestPath; return this; } /** * The protocol type supported by the API. Valid values: HTTP, HTTPS, and WebSocket. Separate multiple values with commas (,), such as "HTTP,HTTPS". */ public Builder requestProtocol(String requestProtocol) { this.requestProtocol = requestProtocol; return this; } public RequestConfig build() { return new RequestConfig(this); } } } public static class RequestParameter extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiParameterName") private String apiParameterName; @com.aliyun.core.annotation.NameInMap("ArrayItemsType") private String arrayItemsType; @com.aliyun.core.annotation.NameInMap("DefaultValue") private String defaultValue; @com.aliyun.core.annotation.NameInMap("DemoValue") private String demoValue; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DocOrder") private Integer docOrder; @com.aliyun.core.annotation.NameInMap("DocShow") private String docShow; @com.aliyun.core.annotation.NameInMap("EnumValue") private String enumValue; @com.aliyun.core.annotation.NameInMap("JsonScheme") private String jsonScheme; @com.aliyun.core.annotation.NameInMap("Location") private String location; @com.aliyun.core.annotation.NameInMap("MaxLength") private Long maxLength; @com.aliyun.core.annotation.NameInMap("MaxValue") private Long maxValue; @com.aliyun.core.annotation.NameInMap("MinLength") private Long minLength; @com.aliyun.core.annotation.NameInMap("MinValue") private Long minValue; @com.aliyun.core.annotation.NameInMap("ParameterType") private String parameterType; @com.aliyun.core.annotation.NameInMap("RegularExpression") private String regularExpression; @com.aliyun.core.annotation.NameInMap("Required") private String required; private RequestParameter(Builder builder) { this.apiParameterName = builder.apiParameterName; this.arrayItemsType = builder.arrayItemsType; this.defaultValue = builder.defaultValue; this.demoValue = builder.demoValue; this.description = builder.description; this.docOrder = builder.docOrder; this.docShow = builder.docShow; this.enumValue = builder.enumValue; this.jsonScheme = builder.jsonScheme; this.location = builder.location; this.maxLength = builder.maxLength; this.maxValue = builder.maxValue; this.minLength = builder.minLength; this.minValue = builder.minValue; this.parameterType = builder.parameterType; this.regularExpression = builder.regularExpression; this.required = builder.required; } public static Builder builder() { return new Builder(); } public static RequestParameter create() { return builder().build(); } /** * @return apiParameterName */ public String getApiParameterName() { return this.apiParameterName; } /** * @return arrayItemsType */ public String getArrayItemsType() { return this.arrayItemsType; } /** * @return defaultValue */ public String getDefaultValue() { return this.defaultValue; } /** * @return demoValue */ public String getDemoValue() { return this.demoValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return docOrder */ public Integer getDocOrder() { return this.docOrder; } /** * @return docShow */ public String getDocShow() { return this.docShow; } /** * @return enumValue */ public String getEnumValue() { return this.enumValue; } /** * @return jsonScheme */ public String getJsonScheme() { return this.jsonScheme; } /** * @return location */ public String getLocation() { return this.location; } /** * @return maxLength */ public Long getMaxLength() { return this.maxLength; } /** * @return maxValue */ public Long getMaxValue() { return this.maxValue; } /** * @return minLength */ public Long getMinLength() { return this.minLength; } /** * @return minValue */ public Long getMinValue() { return this.minValue; } /** * @return parameterType */ public String getParameterType() { return this.parameterType; } /** * @return regularExpression */ public String getRegularExpression() { return this.regularExpression; } /** * @return required */ public String getRequired() { return this.required; } public static final class Builder { private String apiParameterName; private String arrayItemsType; private String defaultValue; private String demoValue; private String description; private Integer docOrder; private String docShow; private String enumValue; private String jsonScheme; private String location; private Long maxLength; private Long maxValue; private Long minLength; private Long minValue; private String parameterType; private String regularExpression; private String required; /** * The name of the API parameter. */ public Builder apiParameterName(String apiParameterName) { this.apiParameterName = apiParameterName; return this; } /** * The type of the array element. */ public Builder arrayItemsType(String arrayItemsType) { this.arrayItemsType = arrayItemsType; return this; } /** * The default value. */ public Builder defaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; } /** * Example */ public Builder demoValue(String demoValue) { this.demoValue = demoValue; return this; } /** * Description */ public Builder description(String description) { this.description = description; return this; } /** * The order in the document. */ public Builder docOrder(Integer docOrder) { this.docOrder = docOrder; return this; } /** * Specifies whether the document is public. Valid values: PUBLIC and PRIVATE. */ public Builder docShow(String docShow) { this.docShow = docShow; return this; } /** * The hash values that can be entered when ParameterType is set to Int, Long, Float, Double, or String. Separate different values with commas (,), such as 1,2,3,4,9 or A,B,C,E,F. */ public Builder enumValue(String enumValue) { this.enumValue = enumValue; return this; } /** * JSON scheme */ public Builder jsonScheme(String jsonScheme) { this.jsonScheme = jsonScheme; return this; } /** * The parameter location. Valid values: BODY, HEAD, QUERY, and PATH. */ public Builder location(String location) { this.location = location; return this; } /** * The maximum parameter length when ParameterType is set to String. */ public Builder maxLength(Long maxLength) { this.maxLength = maxLength; return this; } /** * The maximum parameter value when ParameterType is set to Int, Long, Float, or Double. */ public Builder maxValue(Long maxValue) { this.maxValue = maxValue; return this; } /** * The minimum parameter length when ParameterType is set to String. */ public Builder minLength(Long minLength) { this.minLength = minLength; return this; } /** * The minimum parameter value when ParameterType is set to Int, Long, Float, or Double. */ public Builder minValue(Long minValue) { this.minValue = minValue; return this; } /** * The type of a request parameter. Valid values: String, Int, Long, Float, Double, and Boolean. */ public Builder parameterType(String parameterType) { this.parameterType = parameterType; return this; } /** * The regular expression used for parameter validation when ParameterType is set to String. */ public Builder regularExpression(String regularExpression) { this.regularExpression = regularExpression; return this; } /** * Indicates whether the parameter is required. Valid values: REQUIRED and OPTIONAL. */ public Builder required(String required) { this.required = required; return this; } public RequestParameter build() { return new RequestParameter(this); } } } public static class RequestParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestParameter") private java.util.List < RequestParameter> requestParameter; private RequestParameters(Builder builder) { this.requestParameter = builder.requestParameter; } public static Builder builder() { return new Builder(); } public static RequestParameters create() { return builder().build(); } /** * @return requestParameter */ public java.util.List < RequestParameter> getRequestParameter() { return this.requestParameter; } public static final class Builder { private java.util.List < RequestParameter> requestParameter; /** * RequestParameter. */ public Builder requestParameter(java.util.List < RequestParameter> requestParameter) { this.requestParameter = requestParameter; return this; } public RequestParameters build() { return new RequestParameters(this); } } } public static class ResultDescription extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("HasChild") private Boolean hasChild; @com.aliyun.core.annotation.NameInMap("Id") private String id; @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Mandatory") private Boolean mandatory; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Pid") private String pid; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ResultDescription(Builder builder) { this.description = builder.description; this.hasChild = builder.hasChild; this.id = builder.id; this.key = builder.key; this.mandatory = builder.mandatory; this.name = builder.name; this.pid = builder.pid; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ResultDescription create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return hasChild */ public Boolean getHasChild() { return this.hasChild; } /** * @return id */ public String getId() { return this.id; } /** * @return key */ public String getKey() { return this.key; } /** * @return mandatory */ public Boolean getMandatory() { return this.mandatory; } /** * @return name */ public String getName() { return this.name; } /** * @return pid */ public String getPid() { return this.pid; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String description; private Boolean hasChild; private String id; private String key; private Boolean mandatory; private String name; private String pid; private String type; /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * Specifies whether a subnode exists. */ public Builder hasChild(Boolean hasChild) { this.hasChild = hasChild; return this; } /** * The ID of the result. */ public Builder id(String id) { this.id = id; return this; } /** * The primary key of the result. */ public Builder key(String key) { this.key = key; return this; } /** * Specifies whether the parameter is required. */ public Builder mandatory(Boolean mandatory) { this.mandatory = mandatory; return this; } /** * The name of the result. */ public Builder name(String name) { this.name = name; return this; } /** * The ID of the parent node. */ public Builder pid(String pid) { this.pid = pid; return this; } /** * The type of the result. */ public Builder type(String type) { this.type = type; return this; } public ResultDescription build() { return new ResultDescription(this); } } } public static class ResultDescriptions extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResultDescription") private java.util.List < ResultDescription> resultDescription; private ResultDescriptions(Builder builder) { this.resultDescription = builder.resultDescription; } public static Builder builder() { return new Builder(); } public static ResultDescriptions create() { return builder().build(); } /** * @return resultDescription */ public java.util.List < ResultDescription> getResultDescription() { return this.resultDescription; } public static final class Builder { private java.util.List < ResultDescription> resultDescription; /** * ResultDescription. */ public Builder resultDescription(java.util.List < ResultDescription> resultDescription) { this.resultDescription = resultDescription; return this; } public ResultDescriptions build() { return new ResultDescriptions(this); } } } public static class FunctionComputeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("ContentTypeCatagory") private String contentTypeCatagory; @com.aliyun.core.annotation.NameInMap("ContentTypeValue") private String contentTypeValue; @com.aliyun.core.annotation.NameInMap("FcBaseUrl") private String fcBaseUrl; @com.aliyun.core.annotation.NameInMap("FcType") private String fcType; @com.aliyun.core.annotation.NameInMap("FunctionName") private String functionName; @com.aliyun.core.annotation.NameInMap("Method") private String method; @com.aliyun.core.annotation.NameInMap("OnlyBusinessPath") private Boolean onlyBusinessPath; @com.aliyun.core.annotation.NameInMap("Path") private String path; @com.aliyun.core.annotation.NameInMap("Qualifier") private String qualifier; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RoleArn") private String roleArn; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; private FunctionComputeConfig(Builder builder) { this.contentTypeCatagory = builder.contentTypeCatagory; this.contentTypeValue = builder.contentTypeValue; this.fcBaseUrl = builder.fcBaseUrl; this.fcType = builder.fcType; this.functionName = builder.functionName; this.method = builder.method; this.onlyBusinessPath = builder.onlyBusinessPath; this.path = builder.path; this.qualifier = builder.qualifier; this.regionId = builder.regionId; this.roleArn = builder.roleArn; this.serviceName = builder.serviceName; } public static Builder builder() { return new Builder(); } public static FunctionComputeConfig create() { return builder().build(); } /** * @return contentTypeCatagory */ public String getContentTypeCatagory() { return this.contentTypeCatagory; } /** * @return contentTypeValue */ public String getContentTypeValue() { return this.contentTypeValue; } /** * @return fcBaseUrl */ public String getFcBaseUrl() { return this.fcBaseUrl; } /** * @return fcType */ public String getFcType() { return this.fcType; } /** * @return functionName */ public String getFunctionName() { return this.functionName; } /** * @return method */ public String getMethod() { return this.method; } /** * @return onlyBusinessPath */ public Boolean getOnlyBusinessPath() { return this.onlyBusinessPath; } /** * @return path */ public String getPath() { return this.path; } /** * @return qualifier */ public String getQualifier() { return this.qualifier; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return roleArn */ public String getRoleArn() { return this.roleArn; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } public static final class Builder { private String contentTypeCatagory; private String contentTypeValue; private String fcBaseUrl; private String fcType; private String functionName; private String method; private Boolean onlyBusinessPath; private String path; private String qualifier; private String regionId; private String roleArn; private String serviceName; /** * The ContentType header type used when you call the backend service over HTTP. *

* * * **DEFAULT: the default header type in API Gateway.** * * **CUSTOM: a custom header type.** * * **CLIENT: the ContentType header type of the client. */ public Builder contentTypeCatagory(String contentTypeCatagory) { this.contentTypeCatagory = contentTypeCatagory; return this; } /** * The value of the ContentType header when the ServiceProtocol parameter is set to HTTP and the ContentTypeCatagory parameter is set to DEFAULT or CUSTOM. */ public Builder contentTypeValue(String contentTypeValue) { this.contentTypeValue = contentTypeValue; return this; } /** * The root path of Function Compute. */ public Builder fcBaseUrl(String fcBaseUrl) { this.fcBaseUrl = fcBaseUrl; return this; } /** * The type of the Function Compute instance. */ public Builder fcType(String fcType) { this.fcType = fcType; return this; } /** * The function name defined in Function Compute. */ public Builder functionName(String functionName) { this.functionName = functionName; return this; } /** * The request method. */ public Builder method(String method) { this.method = method; return this; } /** * The backend only receives the service path. */ public Builder onlyBusinessPath(Boolean onlyBusinessPath) { this.onlyBusinessPath = onlyBusinessPath; return this; } /** * The API request path. */ public Builder path(String path) { this.path = path; return this; } /** * The alias of the function. */ public Builder qualifier(String qualifier) { this.qualifier = qualifier; return this; } /** * The region where the API is located. */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * The Alibaba Cloud Resource Name (ARN) of the RAM role to be assumed by API Gateway to access Function Compute. */ public Builder roleArn(String roleArn) { this.roleArn = roleArn; return this; } /** * The service name defined in Function Compute. */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } public FunctionComputeConfig build() { return new FunctionComputeConfig(this); } } } public static class MockHeader extends TeaModel { @com.aliyun.core.annotation.NameInMap("HeaderName") private String headerName; @com.aliyun.core.annotation.NameInMap("HeaderValue") private String headerValue; private MockHeader(Builder builder) { this.headerName = builder.headerName; this.headerValue = builder.headerValue; } public static Builder builder() { return new Builder(); } public static MockHeader create() { return builder().build(); } /** * @return headerName */ public String getHeaderName() { return this.headerName; } /** * @return headerValue */ public String getHeaderValue() { return this.headerValue; } public static final class Builder { private String headerName; private String headerValue; /** * The name of the HTTP header parameter. */ public Builder headerName(String headerName) { this.headerName = headerName; return this; } /** * The value of the HTTP header parameter. */ public Builder headerValue(String headerValue) { this.headerValue = headerValue; return this; } public MockHeader build() { return new MockHeader(this); } } } public static class MockHeaders extends TeaModel { @com.aliyun.core.annotation.NameInMap("MockHeader") private java.util.List < MockHeader> mockHeader; private MockHeaders(Builder builder) { this.mockHeader = builder.mockHeader; } public static Builder builder() { return new Builder(); } public static MockHeaders create() { return builder().build(); } /** * @return mockHeader */ public java.util.List < MockHeader> getMockHeader() { return this.mockHeader; } public static final class Builder { private java.util.List < MockHeader> mockHeader; /** * MockHeader. */ public Builder mockHeader(java.util.List < MockHeader> mockHeader) { this.mockHeader = mockHeader; return this; } public MockHeaders build() { return new MockHeaders(this); } } } public static class VpcConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private VpcConfig(Builder builder) { this.instanceId = builder.instanceId; this.name = builder.name; this.port = builder.port; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static VpcConfig create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return name */ public String getName() { return this.name; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private String instanceId; private String name; private Integer port; private String vpcId; /** * The IDs of the ELB and SLB instances in the VPC. */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * The name of the VPC access authorization. */ public Builder name(String name) { this.name = name; return this; } /** * The port number that corresponds to the instance. */ public Builder port(Integer port) { this.port = port; return this; } /** * The ID of the VPC. */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public VpcConfig build() { return new VpcConfig(this); } } } public static class ServiceConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("FunctionComputeConfig") private FunctionComputeConfig functionComputeConfig; @com.aliyun.core.annotation.NameInMap("Mock") private String mock; @com.aliyun.core.annotation.NameInMap("MockHeaders") private MockHeaders mockHeaders; @com.aliyun.core.annotation.NameInMap("MockResult") private String mockResult; @com.aliyun.core.annotation.NameInMap("MockStatusCode") private Integer mockStatusCode; @com.aliyun.core.annotation.NameInMap("ServiceAddress") private String serviceAddress; @com.aliyun.core.annotation.NameInMap("ServiceHttpMethod") private String serviceHttpMethod; @com.aliyun.core.annotation.NameInMap("ServicePath") private String servicePath; @com.aliyun.core.annotation.NameInMap("ServiceProtocol") private String serviceProtocol; @com.aliyun.core.annotation.NameInMap("ServiceTimeout") private Integer serviceTimeout; @com.aliyun.core.annotation.NameInMap("ServiceVpcEnable") private String serviceVpcEnable; @com.aliyun.core.annotation.NameInMap("VpcConfig") private VpcConfig vpcConfig; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private ServiceConfig(Builder builder) { this.functionComputeConfig = builder.functionComputeConfig; this.mock = builder.mock; this.mockHeaders = builder.mockHeaders; this.mockResult = builder.mockResult; this.mockStatusCode = builder.mockStatusCode; this.serviceAddress = builder.serviceAddress; this.serviceHttpMethod = builder.serviceHttpMethod; this.servicePath = builder.servicePath; this.serviceProtocol = builder.serviceProtocol; this.serviceTimeout = builder.serviceTimeout; this.serviceVpcEnable = builder.serviceVpcEnable; this.vpcConfig = builder.vpcConfig; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static ServiceConfig create() { return builder().build(); } /** * @return functionComputeConfig */ public FunctionComputeConfig getFunctionComputeConfig() { return this.functionComputeConfig; } /** * @return mock */ public String getMock() { return this.mock; } /** * @return mockHeaders */ public MockHeaders getMockHeaders() { return this.mockHeaders; } /** * @return mockResult */ public String getMockResult() { return this.mockResult; } /** * @return mockStatusCode */ public Integer getMockStatusCode() { return this.mockStatusCode; } /** * @return serviceAddress */ public String getServiceAddress() { return this.serviceAddress; } /** * @return serviceHttpMethod */ public String getServiceHttpMethod() { return this.serviceHttpMethod; } /** * @return servicePath */ public String getServicePath() { return this.servicePath; } /** * @return serviceProtocol */ public String getServiceProtocol() { return this.serviceProtocol; } /** * @return serviceTimeout */ public Integer getServiceTimeout() { return this.serviceTimeout; } /** * @return serviceVpcEnable */ public String getServiceVpcEnable() { return this.serviceVpcEnable; } /** * @return vpcConfig */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private FunctionComputeConfig functionComputeConfig; private String mock; private MockHeaders mockHeaders; private String mockResult; private Integer mockStatusCode; private String serviceAddress; private String serviceHttpMethod; private String servicePath; private String serviceProtocol; private Integer serviceTimeout; private String serviceVpcEnable; private VpcConfig vpcConfig; private String vpcId; /** * Backend configuration items when the backend service is Function Compute */ public Builder functionComputeConfig(FunctionComputeConfig functionComputeConfig) { this.functionComputeConfig = functionComputeConfig; return this; } /** * Specifies whether to enable the Mock mode. Valid values: *

* * * **TRUE: The Mock mode is enabled.** * * **FALSE: The Mock mode is not enabled. */ public Builder mock(String mock) { this.mock = mock; return this; } /** * The simulated Headers. */ public Builder mockHeaders(MockHeaders mockHeaders) { this.mockHeaders = mockHeaders; return this; } /** * The result returned when the Mock mode is enabled. */ public Builder mockResult(String mockResult) { this.mockResult = mockResult; return this; } /** * The status code returned for service mocking. */ public Builder mockStatusCode(Integer mockStatusCode) { this.mockStatusCode = mockStatusCode; return this; } /** * The URL used to call the back-end service. If the complete back-end service URL is `http://api.a.com:8080/object/add?key1=value1&key2=value2`, the value of ServiceAddress is **http://api.a.com:8080**.`` */ public Builder serviceAddress(String serviceAddress) { this.serviceAddress = serviceAddress; return this; } /** * The HTTP method used to call a backend service. Valid values: GET, POST, DELETE, PUT, HEADER, TRACE, PATCH, CONNECT, and OPTIONS. */ public Builder serviceHttpMethod(String serviceHttpMethod) { this.serviceHttpMethod = serviceHttpMethod; return this; } /** * ServicePath. */ public Builder servicePath(String servicePath) { this.servicePath = servicePath; return this; } /** * The backend service protocol. Currently, only HTTP, HTTPS, and FunctionCompute are supported. */ public Builder serviceProtocol(String serviceProtocol) { this.serviceProtocol = serviceProtocol; return this; } /** * The timeout period of the backend service, in millisecond. */ public Builder serviceTimeout(Integer serviceTimeout) { this.serviceTimeout = serviceTimeout; return this; } /** * Specifies whether to enable the VPC channel. Valid values: *

* * * **TRUE**: The VPC channel is enabled. You must create the corresponding VPC access authorization before you can enable a VPC channel. * * **FALSE**: The VPC channel is not enabled. */ public Builder serviceVpcEnable(String serviceVpcEnable) { this.serviceVpcEnable = serviceVpcEnable; return this; } /** * Configuration items related to VPC channels */ public Builder vpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; return this; } /** * The ID of the VPC. */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public ServiceConfig build() { return new ServiceConfig(this); } } } public static class ServiceParameter extends TeaModel { @com.aliyun.core.annotation.NameInMap("Location") private String location; @com.aliyun.core.annotation.NameInMap("ParameterType") private String parameterType; @com.aliyun.core.annotation.NameInMap("ServiceParameterName") private String serviceParameterName; private ServiceParameter(Builder builder) { this.location = builder.location; this.parameterType = builder.parameterType; this.serviceParameterName = builder.serviceParameterName; } public static Builder builder() { return new Builder(); } public static ServiceParameter create() { return builder().build(); } /** * @return location */ public String getLocation() { return this.location; } /** * @return parameterType */ public String getParameterType() { return this.parameterType; } /** * @return serviceParameterName */ public String getServiceParameterName() { return this.serviceParameterName; } public static final class Builder { private String location; private String parameterType; private String serviceParameterName; /** * The parameter location. Valid values: BODY, HEAD, QUERY, and PATH. */ public Builder location(String location) { this.location = location; return this; } /** * The data type of the back-end service parameter. */ public Builder parameterType(String parameterType) { this.parameterType = parameterType; return this; } /** * The name of the backend service parameter. */ public Builder serviceParameterName(String serviceParameterName) { this.serviceParameterName = serviceParameterName; return this; } public ServiceParameter build() { return new ServiceParameter(this); } } } public static class ServiceParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("ServiceParameter") private java.util.List < ServiceParameter> serviceParameter; private ServiceParameters(Builder builder) { this.serviceParameter = builder.serviceParameter; } public static Builder builder() { return new Builder(); } public static ServiceParameters create() { return builder().build(); } /** * @return serviceParameter */ public java.util.List < ServiceParameter> getServiceParameter() { return this.serviceParameter; } public static final class Builder { private java.util.List < ServiceParameter> serviceParameter; /** * ServiceParameter. */ public Builder serviceParameter(java.util.List < ServiceParameter> serviceParameter) { this.serviceParameter = serviceParameter; return this; } public ServiceParameters build() { return new ServiceParameters(this); } } } public static class ServiceParameterMap extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestParameterName") private String requestParameterName; @com.aliyun.core.annotation.NameInMap("ServiceParameterName") private String serviceParameterName; private ServiceParameterMap(Builder builder) { this.requestParameterName = builder.requestParameterName; this.serviceParameterName = builder.serviceParameterName; } public static Builder builder() { return new Builder(); } public static ServiceParameterMap create() { return builder().build(); } /** * @return requestParameterName */ public String getRequestParameterName() { return this.requestParameterName; } /** * @return serviceParameterName */ public String getServiceParameterName() { return this.serviceParameterName; } public static final class Builder { private String requestParameterName; private String serviceParameterName; /** * The name of the front-end input parameter. */ public Builder requestParameterName(String requestParameterName) { this.requestParameterName = requestParameterName; return this; } /** * The name of the backend service parameter. */ public Builder serviceParameterName(String serviceParameterName) { this.serviceParameterName = serviceParameterName; return this; } public ServiceParameterMap build() { return new ServiceParameterMap(this); } } } public static class ServiceParametersMap extends TeaModel { @com.aliyun.core.annotation.NameInMap("ServiceParameterMap") private java.util.List < ServiceParameterMap> serviceParameterMap; private ServiceParametersMap(Builder builder) { this.serviceParameterMap = builder.serviceParameterMap; } public static Builder builder() { return new Builder(); } public static ServiceParametersMap create() { return builder().build(); } /** * @return serviceParameterMap */ public java.util.List < ServiceParameterMap> getServiceParameterMap() { return this.serviceParameterMap; } public static final class Builder { private java.util.List < ServiceParameterMap> serviceParameterMap; /** * ServiceParameterMap. */ public Builder serviceParameterMap(java.util.List < ServiceParameterMap> serviceParameterMap) { this.serviceParameterMap = serviceParameterMap; return this; } public ServiceParametersMap build() { return new ServiceParametersMap(this); } } } public static class SystemParameter extends TeaModel { @com.aliyun.core.annotation.NameInMap("DemoValue") private String demoValue; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Location") private String location; @com.aliyun.core.annotation.NameInMap("ParameterName") private String parameterName; @com.aliyun.core.annotation.NameInMap("ServiceParameterName") private String serviceParameterName; private SystemParameter(Builder builder) { this.demoValue = builder.demoValue; this.description = builder.description; this.location = builder.location; this.parameterName = builder.parameterName; this.serviceParameterName = builder.serviceParameterName; } public static Builder builder() { return new Builder(); } public static SystemParameter create() { return builder().build(); } /** * @return demoValue */ public String getDemoValue() { return this.demoValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return location */ public String getLocation() { return this.location; } /** * @return parameterName */ public String getParameterName() { return this.parameterName; } /** * @return serviceParameterName */ public String getServiceParameterName() { return this.serviceParameterName; } public static final class Builder { private String demoValue; private String description; private String location; private String parameterName; private String serviceParameterName; /** * Examples */ public Builder demoValue(String demoValue) { this.demoValue = demoValue; return this; } /** * The description. */ public Builder description(String description) { this.description = description; return this; } /** * The parameter location. Valid values: BODY, HEAD, QUERY, and PATH. */ public Builder location(String location) { this.location = location; return this; } /** * The name of the system parameter. Valid values: CaClientIp, CaDomain, CaRequestHandleTime, CaAppId, CaRequestId, CaHttpSchema, and CaProxy. */ public Builder parameterName(String parameterName) { this.parameterName = parameterName; return this; } /** * The name of the corresponding backend parameter. */ public Builder serviceParameterName(String serviceParameterName) { this.serviceParameterName = serviceParameterName; return this; } public SystemParameter build() { return new SystemParameter(this); } } } public static class SystemParameters extends TeaModel { @com.aliyun.core.annotation.NameInMap("SystemParameter") private java.util.List < SystemParameter> systemParameter; private SystemParameters(Builder builder) { this.systemParameter = builder.systemParameter; } public static Builder builder() { return new Builder(); } public static SystemParameters create() { return builder().build(); } /** * @return systemParameter */ public java.util.List < SystemParameter> getSystemParameter() { return this.systemParameter; } public static final class Builder { private java.util.List < SystemParameter> systemParameter; /** * SystemParameter. */ public Builder systemParameter(java.util.List < SystemParameter> systemParameter) { this.systemParameter = systemParameter; return this; } public SystemParameters build() { return new SystemParameters(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy