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

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

There is a newer version: 3.0.23
Show newest version
// 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 ModifyApiConfigurationRequest} extends {@link RequestModel}
 *
 * 

ModifyApiConfigurationRequest

*/ public class ModifyApiConfigurationRequest extends Request { @Query @NameInMap("AllowSignatureMethod") private String allowSignatureMethod; @Query @NameInMap("ApiId") @Validation(required = true) private String apiId; @Query @NameInMap("ApiName") private String apiName; @Query @NameInMap("AppCodeAuthType") private String appCodeAuthType; @Query @NameInMap("AuthType") private String authType; @Query @NameInMap("BackendName") private String backendName; @Query @NameInMap("BodyFormat") private String bodyFormat; @Query @NameInMap("BodyModel") private String bodyModel; @Query @NameInMap("ContentTypeCategory") private String contentTypeCategory; @Query @NameInMap("ContentTypeValue") private String contentTypeValue; @Query @NameInMap("Description") private String description; @Query @NameInMap("DisableInternet") private Boolean disableInternet; @Query @NameInMap("ErrorCodeSamples") private String errorCodeSamples; @Query @NameInMap("FailResultSample") private String failResultSample; @Query @NameInMap("ForceNonceCheck") private Boolean forceNonceCheck; @Query @NameInMap("FunctionComputeConfig") private String functionComputeConfig; @Query @NameInMap("HttpConfig") private String httpConfig; @Query @NameInMap("MockConfig") private String mockConfig; @Query @NameInMap("ModelName") private String modelName; @Query @NameInMap("OssConfig") private String ossConfig; @Query @NameInMap("PostBodyDescription") private String postBodyDescription; @Query @NameInMap("RequestHttpMethod") private String requestHttpMethod; @Query @NameInMap("RequestMode") private String requestMode; @Query @NameInMap("RequestParameters") private String requestParameters; @Query @NameInMap("RequestPath") private String requestPath; @Query @NameInMap("RequestProtocol") private String requestProtocol; @Query @NameInMap("ResultSample") private String resultSample; @Query @NameInMap("ResultType") private String resultType; @Query @NameInMap("SecurityToken") private String securityToken; @Query @NameInMap("ServiceParameters") private String serviceParameters; @Query @NameInMap("ServiceParametersMap") private String serviceParametersMap; @Query @NameInMap("ServiceProtocol") private String serviceProtocol; @Query @NameInMap("ServiceTimeout") private Integer serviceTimeout; @Query @NameInMap("UseBackendService") private Boolean useBackendService; @Query @NameInMap("Visibility") private String visibility; @Query @NameInMap("VpcConfig") private String vpcConfig; private ModifyApiConfigurationRequest(Builder builder) { super(builder); this.allowSignatureMethod = builder.allowSignatureMethod; this.apiId = builder.apiId; this.apiName = builder.apiName; this.appCodeAuthType = builder.appCodeAuthType; this.authType = builder.authType; this.backendName = builder.backendName; this.bodyFormat = builder.bodyFormat; this.bodyModel = builder.bodyModel; this.contentTypeCategory = builder.contentTypeCategory; this.contentTypeValue = builder.contentTypeValue; this.description = builder.description; this.disableInternet = builder.disableInternet; this.errorCodeSamples = builder.errorCodeSamples; this.failResultSample = builder.failResultSample; this.forceNonceCheck = builder.forceNonceCheck; this.functionComputeConfig = builder.functionComputeConfig; this.httpConfig = builder.httpConfig; this.mockConfig = builder.mockConfig; this.modelName = builder.modelName; this.ossConfig = builder.ossConfig; this.postBodyDescription = builder.postBodyDescription; this.requestHttpMethod = builder.requestHttpMethod; this.requestMode = builder.requestMode; this.requestParameters = builder.requestParameters; this.requestPath = builder.requestPath; this.requestProtocol = builder.requestProtocol; this.resultSample = builder.resultSample; this.resultType = builder.resultType; this.securityToken = builder.securityToken; this.serviceParameters = builder.serviceParameters; this.serviceParametersMap = builder.serviceParametersMap; this.serviceProtocol = builder.serviceProtocol; this.serviceTimeout = builder.serviceTimeout; this.useBackendService = builder.useBackendService; this.visibility = builder.visibility; this.vpcConfig = builder.vpcConfig; } public static Builder builder() { return new Builder(); } public static ModifyApiConfigurationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 backendName */ public String getBackendName() { return this.backendName; } /** * @return bodyFormat */ public String getBodyFormat() { return this.bodyFormat; } /** * @return bodyModel */ public String getBodyModel() { return this.bodyModel; } /** * @return contentTypeCategory */ public String getContentTypeCategory() { return this.contentTypeCategory; } /** * @return contentTypeValue */ public String getContentTypeValue() { return this.contentTypeValue; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disableInternet */ public Boolean getDisableInternet() { return this.disableInternet; } /** * @return errorCodeSamples */ public String getErrorCodeSamples() { return this.errorCodeSamples; } /** * @return failResultSample */ public String getFailResultSample() { return this.failResultSample; } /** * @return forceNonceCheck */ public Boolean getForceNonceCheck() { return this.forceNonceCheck; } /** * @return functionComputeConfig */ public String getFunctionComputeConfig() { return this.functionComputeConfig; } /** * @return httpConfig */ public String getHttpConfig() { return this.httpConfig; } /** * @return mockConfig */ public String getMockConfig() { return this.mockConfig; } /** * @return modelName */ public String getModelName() { return this.modelName; } /** * @return ossConfig */ public String getOssConfig() { return this.ossConfig; } /** * @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 requestParameters */ public String getRequestParameters() { return this.requestParameters; } /** * @return requestPath */ public String getRequestPath() { return this.requestPath; } /** * @return requestProtocol */ public String getRequestProtocol() { return this.requestProtocol; } /** * @return resultSample */ public String getResultSample() { return this.resultSample; } /** * @return resultType */ public String getResultType() { return this.resultType; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return serviceParameters */ public String getServiceParameters() { return this.serviceParameters; } /** * @return serviceParametersMap */ public String getServiceParametersMap() { return this.serviceParametersMap; } /** * @return serviceProtocol */ public String getServiceProtocol() { return this.serviceProtocol; } /** * @return serviceTimeout */ public Integer getServiceTimeout() { return this.serviceTimeout; } /** * @return useBackendService */ public Boolean getUseBackendService() { return this.useBackendService; } /** * @return visibility */ public String getVisibility() { return this.visibility; } /** * @return vpcConfig */ public String getVpcConfig() { return this.vpcConfig; } public static final class Builder extends Request.Builder { private String allowSignatureMethod; private String apiId; private String apiName; private String appCodeAuthType; private String authType; private String backendName; private String bodyFormat; private String bodyModel; private String contentTypeCategory; private String contentTypeValue; private String description; private Boolean disableInternet; private String errorCodeSamples; private String failResultSample; private Boolean forceNonceCheck; private String functionComputeConfig; private String httpConfig; private String mockConfig; private String modelName; private String ossConfig; private String postBodyDescription; private String requestHttpMethod; private String requestMode; private String requestParameters; private String requestPath; private String requestProtocol; private String resultSample; private String resultType; private String securityToken; private String serviceParameters; private String serviceParametersMap; private String serviceProtocol; private Integer serviceTimeout; private Boolean useBackendService; private String visibility; private String vpcConfig; private Builder() { super(); } private Builder(ModifyApiConfigurationRequest request) { super(request); this.allowSignatureMethod = request.allowSignatureMethod; this.apiId = request.apiId; this.apiName = request.apiName; this.appCodeAuthType = request.appCodeAuthType; this.authType = request.authType; this.backendName = request.backendName; this.bodyFormat = request.bodyFormat; this.bodyModel = request.bodyModel; this.contentTypeCategory = request.contentTypeCategory; this.contentTypeValue = request.contentTypeValue; this.description = request.description; this.disableInternet = request.disableInternet; this.errorCodeSamples = request.errorCodeSamples; this.failResultSample = request.failResultSample; this.forceNonceCheck = request.forceNonceCheck; this.functionComputeConfig = request.functionComputeConfig; this.httpConfig = request.httpConfig; this.mockConfig = request.mockConfig; this.modelName = request.modelName; this.ossConfig = request.ossConfig; this.postBodyDescription = request.postBodyDescription; this.requestHttpMethod = request.requestHttpMethod; this.requestMode = request.requestMode; this.requestParameters = request.requestParameters; this.requestPath = request.requestPath; this.requestProtocol = request.requestProtocol; this.resultSample = request.resultSample; this.resultType = request.resultType; this.securityToken = request.securityToken; this.serviceParameters = request.serviceParameters; this.serviceParametersMap = request.serviceParametersMap; this.serviceProtocol = request.serviceProtocol; this.serviceTimeout = request.serviceTimeout; this.useBackendService = request.useBackendService; this.visibility = request.visibility; this.vpcConfig = request.vpcConfig; } /** * If the **AuthType** parameter is set to **APP**, you must include this parameter to specify the signature algorithm. If you do not specify a value, HmacSHA256 is used by default. Valid values: *

* * * HmacSHA256 * * HmacSHA1,HmacSHA256 */ public Builder allowSignatureMethod(String allowSignatureMethod) { this.putQueryParameter("AllowSignatureMethod", allowSignatureMethod); this.allowSignatureMethod = allowSignatureMethod; return this; } /** * The ID of the API. */ public Builder apiId(String apiId) { this.putQueryParameter("ApiId", apiId); this.apiId = apiId; return this; } /** * The name of the API. */ public Builder apiName(String apiName) { this.putQueryParameter("ApiName", apiName); this.apiName = apiName; return this; } /** * If the **AuthType** parameter is set to **APP**, the valid values are: *

* * * **DEFAULT**: The default value that is used if no other values are passed. This value indicates that the settings of the group are used. * * **DISABLE**: The authentication is disabled. * * **HEADER**: AppCode can be placed in the Header parameter for authentication. * * **HEADER_QUERY**: AppCode can be placed in the Header or Query parameter for authentication. */ public Builder appCodeAuthType(String appCodeAuthType) { this.putQueryParameter("AppCodeAuthType", appCodeAuthType); this.appCodeAuthType = appCodeAuthType; return this; } /** * API安全认证类型,目前可以取值: *

* * - **APP**:只允许已授权的APP调用 * - **ANONYMOUS**:允许匿名调用,设置为允许匿名调用需要注意: * - 任何能够获取该API服务信息的人,都将能够调用该API。网关不会对调用者做身份认证,也无法设置按用户的流量控制,若开放该API请设置好按API的流量控制; * - AppCodeAuthType的值不会生效。 */ public Builder authType(String authType) { this.putQueryParameter("AuthType", authType); this.authType = authType; return this; } /** * The name of the backend service. This parameter takes effect only when the UseBackendService parameter is set to TRUE. */ public Builder backendName(String backendName) { this.putQueryParameter("BackendName", backendName); this.backendName = backendName; return this; } /** * This parameter takes effect only when the **RequestMode** parameter is set to **MAPPING**. *

* * The format in which data is transmitted to the server for POST and PUT requests. Valid values: **FORM** and **STREAM**. FORM indicates that data is transmitted in the key-value pair format. STREAM indicates that data is transmitted as byte streams. */ public Builder bodyFormat(String bodyFormat) { this.putQueryParameter("BodyFormat", bodyFormat); this.bodyFormat = bodyFormat; return this; } /** * The body model. */ public Builder bodyModel(String bodyModel) { this.putQueryParameter("BodyModel", bodyModel); this.bodyModel = bodyModel; return this; } /** * The ContentType configuration of the backend request. *

* * * DEFAULT: the default configuration in API Gateway * * CUSTOM: a custom configuration */ public Builder contentTypeCategory(String contentTypeCategory) { this.putQueryParameter("ContentTypeCategory", contentTypeCategory); this.contentTypeCategory = contentTypeCategory; 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.putQueryParameter("ContentTypeValue", contentTypeValue); this.contentTypeValue = contentTypeValue; return this; } /** * The description of the API. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * * Specifies whether to call the API only in an internal network. If the **DisableInternet** parameter is set to **true**, the API can be called only in an internal network. *

* * If the **DisableInternet** parameter is set to **false**, the API can be called over the Internet and in an internal network. */ public Builder disableInternet(Boolean disableInternet) { this.putQueryParameter("DisableInternet", disableInternet); this.disableInternet = disableInternet; return this; } /** * The sample error codes returned by the backend service. *

* * For more information, see [ErrorCodeSample](~~44392~~). */ public Builder errorCodeSamples(String errorCodeSamples) { this.putQueryParameter("ErrorCodeSamples", errorCodeSamples); this.errorCodeSamples = errorCodeSamples; return this; } /** * The sample error response from the backend service. This value is used only to generate documents. It does not affect the returned result. */ public Builder failResultSample(String failResultSample) { this.putQueryParameter("FailResultSample", failResultSample); this.failResultSample = failResultSample; return this; } /** * * Specifies whether to forcibly check X-Ca-Nonce. If the **ForceNonceCheck** parameter is set to **true**, X-Ca-Nonce is forcibly checked. X-Ca-Nonce 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 the **ForceNonceCheck** parameter is set to **false**, X-Ca-Nonce is not checked. If you do not modify this parameter when you modify an API, the original value is used. */ public Builder forceNonceCheck(Boolean forceNonceCheck) { this.putQueryParameter("ForceNonceCheck", forceNonceCheck); this.forceNonceCheck = forceNonceCheck; return this; } /** * The Function Compute configuration. */ public Builder functionComputeConfig(String functionComputeConfig) { this.putQueryParameter("FunctionComputeConfig", functionComputeConfig); this.functionComputeConfig = functionComputeConfig; return this; } /** * The HTTP configuration. */ public Builder httpConfig(String httpConfig) { this.putQueryParameter("HttpConfig", httpConfig); this.httpConfig = httpConfig; return this; } /** * The Mock configuration. */ public Builder mockConfig(String mockConfig) { this.putQueryParameter("MockConfig", mockConfig); this.mockConfig = mockConfig; return this; } /** * The name of the model. */ public Builder modelName(String modelName) { this.putQueryParameter("ModelName", modelName); this.modelName = modelName; return this; } /** * The OSS configuration. */ public Builder ossConfig(String ossConfig) { this.putQueryParameter("OssConfig", ossConfig); this.ossConfig = ossConfig; return this; } /** * The description of the request body. */ public Builder postBodyDescription(String postBodyDescription) { this.putQueryParameter("PostBodyDescription", 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.putQueryParameter("RequestHttpMethod", 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.putQueryParameter("RequestMode", requestMode); this.requestMode = requestMode; return this; } /** * The parameters of API requests sent by the consumer to API Gateway. *

* * For more information, see [RequestParameter](~~43986~~). */ public Builder requestParameters(String requestParameters) { this.putQueryParameter("RequestParameters", requestParameters); this.requestParameters = requestParameters; return this; } /** * The path of the API request. If the complete API URL is `http://api.a.com:8080/object/add?key1=value1&key2=value2`, the path of the API request is `/object/add`. */ public Builder requestPath(String requestPath) { this.putQueryParameter("RequestPath", requestPath); this.requestPath = requestPath; return this; } /** * The protocol type supported by the API. Valid values: HTTP and HTTPS. Separate multiple values with commas (,), such as "HTTP,HTTPS". */ public Builder requestProtocol(String requestProtocol) { this.putQueryParameter("RequestProtocol", requestProtocol); this.requestProtocol = requestProtocol; return this; } /** * The sample response from the backend service. This value is used only to generate documents. It does not affect the returned result. */ public Builder resultSample(String resultSample) { this.putQueryParameter("ResultSample", resultSample); this.resultSample = resultSample; return this; } /** * The format of the response from the backend service. Valid values: JSON, TEXT, BINARY, XML, and HTML. This value is used only to generate documents. It does not affect the returned result. */ public Builder resultType(String resultType) { this.putQueryParameter("ResultType", resultType); this.resultType = resultType; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** * The parameters of API requests sent by API Gateway to the backend service. *

* * For more information, see [ServiceParameter](~~43988~~). */ public Builder serviceParameters(String serviceParameters) { this.putQueryParameter("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(String serviceParametersMap) { this.putQueryParameter("ServiceParametersMap", serviceParametersMap); this.serviceParametersMap = serviceParametersMap; return this; } /** * The protocol that is used to access backend services. Valid values: *

* * * Http: for backend services that use HTTP or HTTPS * * Vpc: for backend services that use VPC * * FC: for Function Compute * * OSS: for Object Storage Service * * Mock: for backend services that use the Mock mode * * EventBridge: for EventBridge * * You must specify the config value for the corresponding backend service. */ public Builder serviceProtocol(String serviceProtocol) { this.putQueryParameter("ServiceProtocol", serviceProtocol); this.serviceProtocol = serviceProtocol; return this; } /** * The timeout period of the backend service. Unit: milliseconds. */ public Builder serviceTimeout(Integer serviceTimeout) { this.putQueryParameter("ServiceTimeout", serviceTimeout); this.serviceTimeout = serviceTimeout; return this; } /** * Specifies whether to use the information about the created backend service. Valid values: *

* * * TRUE: uses the information about the created backend service. * * FALSE: uses the information about the custom backend service. */ public Builder useBackendService(Boolean useBackendService) { this.putQueryParameter("UseBackendService", useBackendService); this.useBackendService = useBackendService; return this; } /** * Specifies whether to make the API public. Valid values: *

* * * **PUBLIC:** The API is public. If this parameter is set to PUBLIC, the API is displayed on the APIs page for all users after the API is published to the production environment. * * **PRIVATE:** The API is 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.putQueryParameter("Visibility", visibility); this.visibility = visibility; return this; } /** * The VPC configuration. */ public Builder vpcConfig(String vpcConfig) { this.putQueryParameter("VpcConfig", vpcConfig); this.vpcConfig = vpcConfig; return this; } @Override public ModifyApiConfigurationRequest build() { return new ModifyApiConfigurationRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy