com.aliyun.sdk.service.cloudapi20160714.models.DescribeApiHistoryResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-cloudapi20160714 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeApiHistoryResponseBody} extends {@link TeaModel}
*
* DescribeApiHistoryResponseBody
*/
public class DescribeApiHistoryResponseBody extends TeaModel {
@NameInMap("AllowSignatureMethod")
private String allowSignatureMethod;
@NameInMap("ApiId")
private String apiId;
@NameInMap("ApiName")
private String apiName;
@NameInMap("AppCodeAuthType")
private String appCodeAuthType;
@NameInMap("AuthType")
private String authType;
@NameInMap("BackendConfig")
private BackendConfig backendConfig;
@NameInMap("BackendEnable")
private Boolean backendEnable;
@NameInMap("ConstantParameters")
private ConstantParameters constantParameters;
@NameInMap("CustomSystemParameters")
private CustomSystemParameters customSystemParameters;
@NameInMap("DeployedTime")
private String deployedTime;
@NameInMap("Description")
private String description;
@NameInMap("DisableInternet")
private Boolean disableInternet;
@NameInMap("ErrorCodeSamples")
private ErrorCodeSamples errorCodeSamples;
@NameInMap("FailResultSample")
private String failResultSample;
@NameInMap("ForceNonceCheck")
private Boolean forceNonceCheck;
@NameInMap("GroupId")
private String groupId;
@NameInMap("GroupName")
private String groupName;
@NameInMap("HistoryVersion")
private String historyVersion;
@NameInMap("OpenIdConnectConfig")
private OpenIdConnectConfig openIdConnectConfig;
@NameInMap("RegionId")
private String regionId;
@NameInMap("RequestConfig")
private RequestConfig requestConfig;
@NameInMap("RequestId")
private String requestId;
@NameInMap("RequestParameters")
private RequestParameters requestParameters;
@NameInMap("ResultBodyModel")
private String resultBodyModel;
@NameInMap("ResultDescriptions")
private ResultDescriptions resultDescriptions;
@NameInMap("ResultSample")
private String resultSample;
@NameInMap("ResultType")
private String resultType;
@NameInMap("ServiceConfig")
private ServiceConfig serviceConfig;
@NameInMap("ServiceParameters")
private ServiceParameters serviceParameters;
@NameInMap("ServiceParametersMap")
private ServiceParametersMap serviceParametersMap;
@NameInMap("StageName")
private String stageName;
@NameInMap("Status")
private String status;
@NameInMap("SystemParameters")
private SystemParameters systemParameters;
@NameInMap("Visibility")
private String visibility;
@NameInMap("WebSocketApiType")
private String webSocketApiType;
private DescribeApiHistoryResponseBody(Builder builder) {
this.allowSignatureMethod = builder.allowSignatureMethod;
this.apiId = builder.apiId;
this.apiName = builder.apiName;
this.appCodeAuthType = builder.appCodeAuthType;
this.authType = builder.authType;
this.backendConfig = builder.backendConfig;
this.backendEnable = builder.backendEnable;
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.historyVersion = builder.historyVersion;
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.status = builder.status;
this.systemParameters = builder.systemParameters;
this.visibility = builder.visibility;
this.webSocketApiType = builder.webSocketApiType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApiHistoryResponseBody 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 appCodeAuthType
*/
public String getAppCodeAuthType() {
return this.appCodeAuthType;
}
/**
* @return authType
*/
public String getAuthType() {
return this.authType;
}
/**
* @return backendConfig
*/
public BackendConfig getBackendConfig() {
return this.backendConfig;
}
/**
* @return backendEnable
*/
public Boolean getBackendEnable() {
return this.backendEnable;
}
/**
* @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 historyVersion
*/
public String getHistoryVersion() {
return this.historyVersion;
}
/**
* @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 status
*/
public String getStatus() {
return this.status;
}
/**
* @return systemParameters
*/
public SystemParameters getSystemParameters() {
return this.systemParameters;
}
/**
* @return visibility
*/
public String getVisibility() {
return this.visibility;
}
/**
* @return webSocketApiType
*/
public String getWebSocketApiType() {
return this.webSocketApiType;
}
public static final class Builder {
private String allowSignatureMethod;
private String apiId;
private String apiName;
private String appCodeAuthType;
private String authType;
private BackendConfig backendConfig;
private Boolean backendEnable;
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 String historyVersion;
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 String status;
private SystemParameters systemParameters;
private String visibility;
private String webSocketApiType;
/**
* The signature algorithm that is used if the **AuthType** parameter is set to **APP**. If no value is specified for the AllowSignatureMethod parameter, the default value HmacSHA256 is used. 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 type of AppCode authentication. Default value: DEFAULT. Valid values:
*
*
* * DEFAULT: AppCode authentication is supported after the API is published in Alibaba Cloud Marketplace.
* * DISABLE: AppCode authentication is not supported.
* * HEADER: AppCode authentication is supported only in Header parameters.
* * HEADER_QUERY: AppCode authentication is supported in Header or Query parameters.
*/
public Builder appCodeAuthType(String appCodeAuthType) {
this.appCodeAuthType = appCodeAuthType;
return this;
}
/**
* The type of the security authentication that is used for the API. Valid values:
*
*
* * **APP**: The API can be called only by authorized applications.
*
* * **ANONYMOUS**: The API can be anonymously called. Take note of the following information:
*
* * All users who have obtained the API service information can call this API. API Gateway neither authenticates callers nor sets user-specific throttling policies. If this API is a public one, you must set throttling policies for it.
*/
public Builder authType(String authType) {
this.authType = authType;
return this;
}
/**
* The configuration items of the backend service.
*/
public Builder backendConfig(BackendConfig backendConfig) {
this.backendConfig = backendConfig;
return this;
}
/**
* Indicates whether the backend service is enabled.
*/
public Builder backendEnable(Boolean backendEnable) {
this.backendEnable = backendEnable;
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 time when the API was published. The time is displayed in UTC.
*/
public Builder deployedTime(String deployedTime) {
this.deployedTime = deployedTime;
return this;
}
/**
* The description of the API.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* * If the **DisableInternet** parameter is set to **true**, you call the API only over internal networks.
*
* * If the **DisableInternet** parameter is set to **false**, no limit is imposed on networks. When you create an API, the default value of this parameter is false.
*/
public Builder disableInternet(Boolean disableInternet) {
this.disableInternet = disableInternet;
return this;
}
/**
* The sample error codes that are returned from the backend service.
*
*
* For more information, see [ErrorCodeSample](~~44392~~).
*/
public Builder errorCodeSamples(ErrorCodeSamples errorCodeSamples) {
this.errorCodeSamples = errorCodeSamples;
return this;
}
/**
* The sample error response that is returned from the backend service.
*/
public Builder failResultSample(String failResultSample) {
this.failResultSample = failResultSample;
return this;
}
/**
* * Indicates whether to forcefully check X-Ca-Nonce. X-Ca-Nonce is the unique identifier of a request and is generally identified by UUID. If the **ForceNonceCheck** parameter is set to **true**, X-Ca-Nonce is forcefully checked. After API Gateway receives this parameter, API Gateway verifies the validity of this parameter. The same value can be used only once within 15 minutes. This helps defend against replay attacks.
*
* * If the **ForceNonceCheck** parameter is set to **false**, X-Ca-Nonce is not checked. When you create an API, the default value of this parameter is false.
*/
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 historical version number of the API.
*/
public Builder historyVersion(String historyVersion) {
this.historyVersion = historyVersion;
return this;
}
/**
* The configuration items of third-party OpenID Connect authentication.
*/
public Builder openIdConnectConfig(OpenIdConnectConfig openIdConnectConfig) {
this.openIdConnectConfig = openIdConnectConfig;
return this;
}
/**
* The ID of the region where the API is deployed.
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* The configuration items of API requests that are sent from 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 that are sent from the consumer to API Gateway.
*
*
* For more information, see [RequestParameter](~~43986~~).
*/
public Builder requestParameters(RequestParameters requestParameters) {
this.requestParameters = requestParameters;
return this;
}
/**
* The response of the API.
*/
public Builder resultBodyModel(String resultBodyModel) {
this.resultBodyModel = resultBodyModel;
return this;
}
/**
* The descriptions that are returned for the API.
*/
public Builder resultDescriptions(ResultDescriptions resultDescriptions) {
this.resultDescriptions = resultDescriptions;
return this;
}
/**
* The sample response.
*/
public Builder resultSample(String resultSample) {
this.resultSample = resultSample;
return this;
}
/**
* The type of data that is returned.
*/
public Builder resultType(String resultType) {
this.resultType = resultType;
return this;
}
/**
* The information about backend service calls.
*/
public Builder serviceConfig(ServiceConfig serviceConfig) {
this.serviceConfig = serviceConfig;
return this;
}
/**
* The parameters of API requests that are sent from 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 the parameters of requests sent from the consumer to API Gateway and the parameters of requests sent from API Gateway to the backend service.
*
*
* For more information, see [ServiceParameterMap](~~43989~~).
*/
public Builder serviceParametersMap(ServiceParametersMap serviceParametersMap) {
this.serviceParametersMap = serviceParametersMap;
return this;
}
/**
* The environment to which the API is published. Valid values:
*
*
* * **RELEASE**: production environment
* * **PRE**: staging environment
* * **TEST**: test environment
*/
public Builder stageName(String stageName) {
this.stageName = stageName;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The system parameters of the API in the JSON format.
*/
public Builder systemParameters(SystemParameters systemParameters) {
this.systemParameters = systemParameters;
return this;
}
/**
* Indicates whether the API is public. Valid values:
*
*
* * **PUBLIC**: The API is public. If you publish the definition of a public API to the production environment, the definition is displayed on the APIs page for all users.
* * **PRIVATE**: The API is private. If you publish an API group that contains a private API in Alibaba Cloud Marketplace, the API is not displayed in Alibaba Cloud Marketplace.
*/
public Builder visibility(String visibility) {
this.visibility = visibility;
return this;
}
/**
* The type of the API that is used in bidirectional communication. Valid values:
*
*
* * **COMMON**: common API
* * **REGISTER**: registered API
* * **UNREGISTER**: unregistered API
* * **NOTIFY**: downstream notification API
*/
public Builder webSocketApiType(String webSocketApiType) {
this.webSocketApiType = webSocketApiType;
return this;
}
public DescribeApiHistoryResponseBody build() {
return new DescribeApiHistoryResponseBody(this);
}
}
public static class BackendConfig extends TeaModel {
@NameInMap("BackendId")
private String backendId;
@NameInMap("BackendName")
private String backendName;
@NameInMap("BackendType")
private String backendType;
private BackendConfig(Builder builder) {
this.backendId = builder.backendId;
this.backendName = builder.backendName;
this.backendType = builder.backendType;
}
public static Builder builder() {
return new Builder();
}
public static BackendConfig create() {
return builder().build();
}
/**
* @return backendId
*/
public String getBackendId() {
return this.backendId;
}
/**
* @return backendName
*/
public String getBackendName() {
return this.backendName;
}
/**
* @return backendType
*/
public String getBackendType() {
return this.backendType;
}
public static final class Builder {
private String backendId;
private String backendName;
private String backendType;
/**
* The ID of the backend service.
*/
public Builder backendId(String backendId) {
this.backendId = backendId;
return this;
}
/**
* The name of the backend service.
*/
public Builder backendName(String backendName) {
this.backendName = backendName;
return this;
}
/**
* The type of the backend service.
*/
public Builder backendType(String backendType) {
this.backendType = backendType;
return this;
}
public BackendConfig build() {
return new BackendConfig(this);
}
}
}
public static class ConstantParameter extends TeaModel {
@NameInMap("ConstantValue")
private String constantValue;
@NameInMap("Description")
private String description;
@NameInMap("Location")
private String location;
@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 value of the constant parameter.
*/
public Builder constantValue(String constantValue) {
this.constantValue = constantValue;
return this;
}
/**
* The description of the parameter.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The location of the parameter. Valid values: BODY, HEAD, QUERY, and PATH.
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* The name of the backend parameter that corresponds to the constant parameter.
*/
public Builder serviceParameterName(String serviceParameterName) {
this.serviceParameterName = serviceParameterName;
return this;
}
public ConstantParameter build() {
return new ConstantParameter(this);
}
}
}
public static class ConstantParameters extends TeaModel {
@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 {
@NameInMap("DemoValue")
private String demoValue;
@NameInMap("Description")
private String description;
@NameInMap("Location")
private String location;
@NameInMap("ParameterName")
private String parameterName;
@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;
/**
* The sample value of the parameter.
*/
public Builder demoValue(String demoValue) {
this.demoValue = demoValue;
return this;
}
/**
* The description of the parameter.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The location of the parameter. Valid values: BODY, HEAD, QUERY, and PATH.
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* The name of the parameter.
*/
public Builder parameterName(String parameterName) {
this.parameterName = parameterName;
return this;
}
/**
* The name of the backend parameter that corresponds to the custom system parameter.
*/
public Builder serviceParameterName(String serviceParameterName) {
this.serviceParameterName = serviceParameterName;
return this;
}
public CustomSystemParameter build() {
return new CustomSystemParameter(this);
}
}
}
public static class CustomSystemParameters extends TeaModel {
@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 {
@NameInMap("Code")
private String code;
@NameInMap("Description")
private String description;
@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 {
@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 {
@NameInMap("IdTokenParamName")
private String idTokenParamName;
@NameInMap("OpenIdApiType")
private String openIdApiType;
@NameInMap("PublicKey")
private String publicKey;
@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;
}
/**
* * ****
*
* * ****
*/
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 {
@NameInMap("BodyFormat")
private String bodyFormat;
@NameInMap("BodyModel")
private String bodyModel;
@NameInMap("PostBodyDescription")
private String postBodyDescription;
@NameInMap("RequestHttpMethod")
private String requestHttpMethod;
@NameInMap("RequestMode")
private String requestMode;
@NameInMap("RequestPath")
private String requestPath;
@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;
/**
* The format in which data was transmitted to the server for a POST or PUT request. Valid values: FORM and STREAM. FORM indicates that data was transmitted as forms that consist of key-value pairs. STREAM indicates that data was transmitted as byte streams. This parameter takes effect when the RequestMode parameter is set to MAPPING.
*/
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 request method. 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 of the parameters. 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 request path of the API.
*/
public Builder requestPath(String requestPath) {
this.requestPath = requestPath;
return this;
}
/**
* The type of the protocol that is supported by the API. Valid values: HTTP, HTTPS, and WebSocket. Separate multiple values with commas (,). Example: "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 {
@NameInMap("ApiParameterName")
private String apiParameterName;
@NameInMap("ArrayItemsType")
private String arrayItemsType;
@NameInMap("DefaultValue")
private String defaultValue;
@NameInMap("DemoValue")
private String demoValue;
@NameInMap("Description")
private String description;
@NameInMap("DocOrder")
private Integer docOrder;
@NameInMap("DocShow")
private String docShow;
@NameInMap("EnumValue")
private String enumValue;
@NameInMap("JsonScheme")
private String jsonScheme;
@NameInMap("Location")
private String location;
@NameInMap("MaxLength")
private Long maxLength;
@NameInMap("MaxValue")
private Long maxValue;
@NameInMap("MinLength")
private Long minLength;
@NameInMap("MinValue")
private Long minValue;
@NameInMap("ParameterType")
private String parameterType;
@NameInMap("RegularExpression")
private String regularExpression;
@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 parameter in the API request.
*/
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 of the parameter.
*/
public Builder defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* The sample value of the parameter.
*/
public Builder demoValue(String demoValue) {
this.demoValue = demoValue;
return this;
}
/**
* The description of the parameter.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The order in which the parameter is sorted in the document.
*/
public Builder docOrder(Integer docOrder) {
this.docOrder = docOrder;
return this;
}
/**
* Indicates whether the document is public. Valid values: **PUBLIC** and **PRIVATE**.
*/
public Builder docShow(String docShow) {
this.docShow = docShow;
return this;
}
/**
* The hash values can be specified if the **ParameterType** parameter is set to Int, Long, Float, Double, or String. Separate multiple hash values with commas (,). Examples: 1,2,3,4,9 and A,B,C,E,F.
*/
public Builder enumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
/**
* The JSON scheme.
*/
public Builder jsonScheme(String jsonScheme) {
this.jsonScheme = jsonScheme;
return this;
}
/**
* The location of the parameter. Valid values: BODY, HEAD, QUERY, and PATH.
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* The maximum length of the parameter value if the **ParameterType** parameter is set to String.
*/
public Builder maxLength(Long maxLength) {
this.maxLength = maxLength;
return this;
}
/**
* The maximum value of the parameter if the **ParameterType** parameter is set to Int, Long, Float, or Double.
*/
public Builder maxValue(Long maxValue) {
this.maxValue = maxValue;
return this;
}
/**
* The minimum length of the parameter value if the **ParameterType** parameter is set to String.
*/
public Builder minLength(Long minLength) {
this.minLength = minLength;
return this;
}
/**
* The minimum value of the parameter if the **ParameterType** parameter is set to Int, Long, Float, or Double.
*/
public Builder minValue(Long minValue) {
this.minValue = minValue;
return this;
}
/**
* The data type of the parameter. Valid values: String, Int, Long, Float, Double, and Boolean.
*/
public Builder parameterType(String parameterType) {
this.parameterType = parameterType;
return this;
}
/**
* The regular expression that is used to validate the parameter if the **ParameterType** parameter 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 {
@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 {
@NameInMap("Description")
private String description;
@NameInMap("HasChild")
private Boolean hasChild;
@NameInMap("Id")
private String id;
@NameInMap("Key")
private String key;
@NameInMap("Mandatory")
private Boolean mandatory;
@NameInMap("Name")
private String name;
@NameInMap("Pid")
private String pid;
@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;
}
/**
* Indicates 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;
}
/**
* Indicates 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 {
@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 EventBridgeConfig extends TeaModel {
@NameInMap("EventBridgeRegionId")
private String eventBridgeRegionId;
@NameInMap("EventBus")
private String eventBus;
@NameInMap("EventSource")
private String eventSource;
@NameInMap("RoleArn")
private String roleArn;
private EventBridgeConfig(Builder builder) {
this.eventBridgeRegionId = builder.eventBridgeRegionId;
this.eventBus = builder.eventBus;
this.eventSource = builder.eventSource;
this.roleArn = builder.roleArn;
}
public static Builder builder() {
return new Builder();
}
public static EventBridgeConfig create() {
return builder().build();
}
/**
* @return eventBridgeRegionId
*/
public String getEventBridgeRegionId() {
return this.eventBridgeRegionId;
}
/**
* @return eventBus
*/
public String getEventBus() {
return this.eventBus;
}
/**
* @return eventSource
*/
public String getEventSource() {
return this.eventSource;
}
/**
* @return roleArn
*/
public String getRoleArn() {
return this.roleArn;
}
public static final class Builder {
private String eventBridgeRegionId;
private String eventBus;
private String eventSource;
private String roleArn;
/**
* The ID of the region where EventBridge is deployed.
*/
public Builder eventBridgeRegionId(String eventBridgeRegionId) {
this.eventBridgeRegionId = eventBridgeRegionId;
return this;
}
/**
* The event bus.
*/
public Builder eventBus(String eventBus) {
this.eventBus = eventBus;
return this;
}
/**
* The event source.
*/
public Builder eventSource(String eventSource) {
this.eventSource = eventSource;
return this;
}
/**
* The ARN of the RAM role that is assigned to EventBridge.
*/
public Builder roleArn(String roleArn) {
this.roleArn = roleArn;
return this;
}
public EventBridgeConfig build() {
return new EventBridgeConfig(this);
}
}
}
public static class FunctionComputeConfig extends TeaModel {
@NameInMap("ContentTypeCatagory")
private String contentTypeCatagory;
@NameInMap("ContentTypeValue")
private String contentTypeValue;
@NameInMap("FcBaseUrl")
private String fcBaseUrl;
@NameInMap("FcType")
private String fcType;
@NameInMap("FunctionName")
private String functionName;
@NameInMap("Method")
private String method;
@NameInMap("OnlyBusinessPath")
private Boolean onlyBusinessPath;
@NameInMap("Path")
private String path;
@NameInMap("Qualifier")
private String qualifier;
@NameInMap("RegionId")
private String regionId;
@NameInMap("RoleArn")
private String roleArn;
@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 that is used if the ServiceProtocol parameter is set to HTTP. Valid values:
*
*
* * **DEFAULT**: the default header in API Gateway
* * **CUSTOM**: a custom header
* * **CLIENT**: the ContentType header of the client
*/
public Builder contentTypeCatagory(String contentTypeCatagory) {
this.contentTypeCatagory = contentTypeCatagory;
return this;
}
/**
* The value of the ContentType header if 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 the service in Function Compute.
*/
public Builder fcBaseUrl(String fcBaseUrl) {
this.fcBaseUrl = fcBaseUrl;
return this;
}
/**
* The type of the service in Function Compute.
*/
public Builder fcType(String fcType) {
this.fcType = fcType;
return this;
}
/**
* The function name that is 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;
}
/**
* Indicates whether the backend receives only the service path.
*/
public Builder onlyBusinessPath(Boolean onlyBusinessPath) {
this.onlyBusinessPath = onlyBusinessPath;
return this;
}
/**
* The path of the API request.
*/
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 ID of the region.
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* The Alibaba Cloud Resource Name (ARN) of the RAM role that is assumed by API Gateway to access Function Compute.
*/
public Builder roleArn(String roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* The service name that is 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 {
@NameInMap("HeaderName")
private String headerName;
@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
*/
public Builder headerName(String headerName) {
this.headerName = headerName;
return this;
}
/**
* The value of the HTTP header.
*/
public Builder headerValue(String headerValue) {
this.headerValue = headerValue;
return this;
}
public MockHeader build() {
return new MockHeader(this);
}
}
}
public static class MockHeaders extends TeaModel {
@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 OssConfig extends TeaModel {
@NameInMap("Action")
private String action;
@NameInMap("BucketName")
private String bucketName;
@NameInMap("Key")
private String key;
@NameInMap("OssRegionId")
private String ossRegionId;
private OssConfig(Builder builder) {
this.action = builder.action;
this.bucketName = builder.bucketName;
this.key = builder.key;
this.ossRegionId = builder.ossRegionId;
}
public static Builder builder() {
return new Builder();
}
public static OssConfig create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return ossRegionId
*/
public String getOssRegionId() {
return this.ossRegionId;
}
public static final class Builder {
private String action;
private String bucketName;
private String key;
private String ossRegionId;
/**
* Action.
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* The name of the OSS bucket.
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* The primary key of the result.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The ID of the region where OSS is deployed.
*/
public Builder ossRegionId(String ossRegionId) {
this.ossRegionId = ossRegionId;
return this;
}
public OssConfig build() {
return new OssConfig(this);
}
}
}
public static class VpcConfig extends TeaModel {
@NameInMap("InstanceId")
private String instanceId;
@NameInMap("Name")
private String name;
@NameInMap("Port")
private Integer port;
@NameInMap("VpcId")
private String vpcId;
@NameInMap("VpcScheme")
private String vpcScheme;
private VpcConfig(Builder builder) {
this.instanceId = builder.instanceId;
this.name = builder.name;
this.port = builder.port;
this.vpcId = builder.vpcId;
this.vpcScheme = builder.vpcScheme;
}
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;
}
/**
* @return vpcScheme
*/
public String getVpcScheme() {
return this.vpcScheme;
}
public static final class Builder {
private String instanceId;
private String name;
private Integer port;
private String vpcId;
private String vpcScheme;
/**
* The ID of the Elastic Compute Service (ECS) or Server Load Balancer (SLB) instance in the VPC.
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The name of the VPC.
*/
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;
}
/**
* The protocol of the VPC.
*/
public Builder vpcScheme(String vpcScheme) {
this.vpcScheme = vpcScheme;
return this;
}
public VpcConfig build() {
return new VpcConfig(this);
}
}
}
public static class ServiceConfig extends TeaModel {
@NameInMap("ContentTypeCatagory")
private String contentTypeCatagory;
@NameInMap("ContentTypeValue")
private String contentTypeValue;
@NameInMap("EventBridgeConfig")
private EventBridgeConfig eventBridgeConfig;
@NameInMap("FunctionComputeConfig")
private FunctionComputeConfig functionComputeConfig;
@NameInMap("Mock")
private String mock;
@NameInMap("MockHeaders")
private MockHeaders mockHeaders;
@NameInMap("MockResult")
private String mockResult;
@NameInMap("MockStatusCode")
private Integer mockStatusCode;
@NameInMap("OssConfig")
private OssConfig ossConfig;
@NameInMap("ServiceAddress")
private String serviceAddress;
@NameInMap("ServiceHttpMethod")
private String serviceHttpMethod;
@NameInMap("ServicePath")
private String servicePath;
@NameInMap("ServiceProtocol")
private String serviceProtocol;
@NameInMap("ServiceTimeout")
private Integer serviceTimeout;
@NameInMap("ServiceVpcEnable")
private String serviceVpcEnable;
@NameInMap("VpcConfig")
private VpcConfig vpcConfig;
@NameInMap("VpcId")
private String vpcId;
private ServiceConfig(Builder builder) {
this.contentTypeCatagory = builder.contentTypeCatagory;
this.contentTypeValue = builder.contentTypeValue;
this.eventBridgeConfig = builder.eventBridgeConfig;
this.functionComputeConfig = builder.functionComputeConfig;
this.mock = builder.mock;
this.mockHeaders = builder.mockHeaders;
this.mockResult = builder.mockResult;
this.mockStatusCode = builder.mockStatusCode;
this.ossConfig = builder.ossConfig;
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 contentTypeCatagory
*/
public String getContentTypeCatagory() {
return this.contentTypeCatagory;
}
/**
* @return contentTypeValue
*/
public String getContentTypeValue() {
return this.contentTypeValue;
}
/**
* @return eventBridgeConfig
*/
public EventBridgeConfig getEventBridgeConfig() {
return this.eventBridgeConfig;
}
/**
* @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 ossConfig
*/
public OssConfig getOssConfig() {
return this.ossConfig;
}
/**
* @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 String contentTypeCatagory;
private String contentTypeValue;
private EventBridgeConfig eventBridgeConfig;
private FunctionComputeConfig functionComputeConfig;
private String mock;
private MockHeaders mockHeaders;
private String mockResult;
private Integer mockStatusCode;
private OssConfig ossConfig;
private String serviceAddress;
private String serviceHttpMethod;
private String servicePath;
private String serviceProtocol;
private Integer serviceTimeout;
private String serviceVpcEnable;
private VpcConfig vpcConfig;
private String vpcId;
/**
* The ContentType header that is used if the ServiceProtocol parameter is set to HTTP. Valid values:
*
*
* * DEFAULT: the default header in API Gateway
* * CUSTOM: a custom header
* * CLIENT: the ContentType header of the client
*/
public Builder contentTypeCatagory(String contentTypeCatagory) {
this.contentTypeCatagory = contentTypeCatagory;
return this;
}
/**
* The value of the ContentType header if 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 configuration items of EventBridge.
*/
public Builder eventBridgeConfig(EventBridgeConfig eventBridgeConfig) {
this.eventBridgeConfig = eventBridgeConfig;
return this;
}
/**
* The configuration items of the backend service whose type is Function Compute.
*/
public Builder functionComputeConfig(FunctionComputeConfig functionComputeConfig) {
this.functionComputeConfig = functionComputeConfig;
return this;
}
/**
* Indicates whether the mock mode is enabled. Valid values:
*
*
* * TRUE
* * FALSE
*/
public Builder mock(String mock) {
this.mock = mock;
return this;
}
/**
* The mock headers.
*/
public Builder mockHeaders(MockHeaders mockHeaders) {
this.mockHeaders = mockHeaders;
return this;
}
/**
* The result that is returned if the Mock parameter is set to TRUE.
*/
public Builder mockResult(String mockResult) {
this.mockResult = mockResult;
return this;
}
/**
* The status code that is returned for service mocking.
*/
public Builder mockStatusCode(Integer mockStatusCode) {
this.mockStatusCode = mockStatusCode;
return this;
}
/**
* The configuration items of the backend service whose type is Object Storage Service (OSS).
*/
public Builder ossConfig(OssConfig ossConfig) {
this.ossConfig = ossConfig;
return this;
}
/**
* The URL that is used to call the backend service.
*/
public Builder serviceAddress(String serviceAddress) {
this.serviceAddress = serviceAddress;
return this;
}
/**
* The HTTP request method that is used if the ServiceProtocol parameter is set to HTTP. Valid values: PUT, GET, POST, DELETE, PATCH, HEAD, OPTIONS, and ANY.
*/
public Builder serviceHttpMethod(String serviceHttpMethod) {
this.serviceHttpMethod = serviceHttpMethod;
return this;
}
/**
* The path that is used when the backend service is called.
*/
public Builder servicePath(String servicePath) {
this.servicePath = servicePath;
return this;
}
/**
* The protocol of the backend service. Only HTTP, HTTPS, and Function Compute are supported.
*/
public Builder serviceProtocol(String serviceProtocol) {
this.serviceProtocol = serviceProtocol;
return this;
}
/**
* The timeout period of the backend service. Unit: milliseconds.
*/
public Builder serviceTimeout(Integer serviceTimeout) {
this.serviceTimeout = serviceTimeout;
return this;
}
/**
* Indicates whether the VPC channel is enabled. Valid values:
*
*
* * TRUE
* * FALSE
*
* Before you can enable the VPC channel, make sure that a VPC authorization is added.
*/
public Builder serviceVpcEnable(String serviceVpcEnable) {
this.serviceVpcEnable = serviceVpcEnable;
return this;
}
/**
* The configuration items of the VPC channel.
*/
public Builder vpcConfig(VpcConfig vpcConfig) {
this.vpcConfig = vpcConfig;
return this;
}
/**
* The ID of the virtual private cloud (VPC).
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public ServiceConfig build() {
return new ServiceConfig(this);
}
}
}
public static class ServiceParameter extends TeaModel {
@NameInMap("Location")
private String location;
@NameInMap("ParameterType")
private String parameterType;
@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 location of the parameter. Valid values: BODY, HEAD, QUERY, and PATH.
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* The data type of the parameter. Valid values: STRING, NUMBER, and BOOLEAN.
*/
public Builder parameterType(String parameterType) {
this.parameterType = parameterType;
return this;
}
/**
* The name of the backend parameter.
*/
public Builder serviceParameterName(String serviceParameterName) {
this.serviceParameterName = serviceParameterName;
return this;
}
public ServiceParameter build() {
return new ServiceParameter(this);
}
}
}
public static class ServiceParameters extends TeaModel {
@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 {
@NameInMap("RequestParameterName")
private String requestParameterName;
@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 frontend parameter. The name must be included in RequestParametersObject and match ApiParameterName in RequestParameters.
*/
public Builder requestParameterName(String requestParameterName) {
this.requestParameterName = requestParameterName;
return this;
}
/**
* The name of the backend parameter.
*/
public Builder serviceParameterName(String serviceParameterName) {
this.serviceParameterName = serviceParameterName;
return this;
}
public ServiceParameterMap build() {
return new ServiceParameterMap(this);
}
}
}
public static class ServiceParametersMap extends TeaModel {
@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 {
@NameInMap("DemoValue")
private String demoValue;
@NameInMap("Description")
private String description;
@NameInMap("Location")
private String location;
@NameInMap("ParameterName")
private String parameterName;
@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;
/**
* The sample value of the parameter.
*/
public Builder demoValue(String demoValue) {
this.demoValue = demoValue;
return this;
}
/**
* The description of the parameter.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The location of the parameter. Valid values: BODY, HEAD, QUERY, and PATH.
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* The name of the 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 backend parameter that corresponds to the system parameter.
*/
public Builder serviceParameterName(String serviceParameterName) {
this.serviceParameterName = serviceParameterName;
return this;
}
public SystemParameter build() {
return new SystemParameter(this);
}
}
}
public static class SystemParameters extends TeaModel {
@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);
}
}
}
}