public class CreateApiRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateApiRequest() | 
| CreateApiRequest(CreateApiRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getApiBusinessType()Get This field is valid if `AuthType` is `OAUTH`. | 
| String | getApiDesc()Get Custom API description. | 
| String | getApiName()Get Custom API name. | 
| String | getApiType()Get API type. | 
| String | getAuthRelationApiId()Get Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`. | 
| String | getAuthType()Get API authentication type. | 
| ConstantParameter[] | getConstantParameters()Get Constant parameter. | 
| String | getEIAMAppId()Get EIAM application ID. | 
| String | getEIAMAppType()Get EIAM application type. | 
| String | getEIAMAuthType()Get EIAM application authentication type. | 
| Boolean | getEnableCORS()Get Whether to enable CORS. | 
| String | getEventBusId()Get Event bus ID. | 
| Boolean | getIsBase64Encoded()Get Whether to enable Base64 encoding. | 
| Boolean | getIsDebugAfterCharge()Get Billing after debugging starts (reserved field for marketplace). | 
| Boolean | getIsDeleteResponseErrorCodes()Get Whether to delete the error codes for custom response configuration. | 
| MicroServiceReq[] | getMicroServices()Get List of microservices bound to API. | 
| OauthConfig | getOauthConfig()Get OAuth configuration, which takes effect if `AuthType` is `OAUTH`. | 
| String | getOwner()Get Owner of the resource | 
| String | getProtocol()Get API frontend request protocol. | 
| ApiRequestConfig | getRequestConfig()Get Request frontend configuration. | 
| RequestParameter[] | getRequestParameters()Get Frontend request parameter. | 
| ResponseErrorCodeReq[] | getResponseErrorCodes()Get Custom error code configuration. | 
| String | getResponseFailExample()Get Sample response for failed custom response configuration. | 
| String | getResponseSuccessExample()Get Sample response for successful custom response configuration. | 
| String | getResponseType()Get Return type. | 
| ServiceConfig | getServiceConfig()Get API backend service configuration. | 
| String | getServiceId()Get Unique service ID of API. | 
| String | getServiceMockReturnMessage()Get Returned message of API backend Mock, which is required if `ServiceType` is `Mock`. | 
| ServiceParameter[] | getServiceParameters()Get API backend service parameter. | 
| String | getServiceScfFunctionName()Get SCF function name, which takes effect if the backend type is `SCF`. | 
| String | getServiceScfFunctionNamespace()Get SCF function namespace, which takes effect if the backend type is `SCF`. | 
| String | getServiceScfFunctionQualifier()Get SCF function version, which takes effect if the backend type is `SCF`. | 
| String | getServiceScfFunctionType()Get SCF function type, which takes effect if the backend type is `SCF`. | 
| Boolean | getServiceScfIsIntegratedResponse()Get Whether to enable response integration, which takes effect if the backend type is `SCF`. | 
| Long | getServiceTimeout()Get API backend service timeout period in seconds. | 
| HealthCheckConf | getServiceTsfHealthCheckConf()Get Health check configuration of microservice. | 
| TsfLoadBalanceConfResp | getServiceTsfLoadBalanceConf()Get Load balancing configuration of microservice. | 
| String | getServiceType()Get API backend service type. | 
| String | getServiceWebsocketCleanupFunctionName()Get SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketCleanupFunctionNamespace()Get SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketCleanupFunctionQualifier()Get SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketRegisterFunctionName()Get SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketRegisterFunctionNamespace()Get SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketRegisterFunctionQualifier()Get SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketTransportFunctionName()Get SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketTransportFunctionNamespace()Get SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getServiceWebsocketTransportFunctionQualifier()Get SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| String | getTargetNamespaceId()Get TSF Serverless namespace ID (in beta test). | 
| TargetServicesReq[] | getTargetServices()Get `target` type backend resource information (in beta test). | 
| HealthCheckConf | getTargetServicesHealthCheckConf()Get `target` health check configuration (in beta test). | 
| Long | getTargetServicesLoadBalanceConf()Get `target` type load balancing configuration (in beta test). | 
| Long | getTokenTimeout()Get Validity of the EIAM application token. | 
| String | getUserType()Get User type. | 
| void | setApiBusinessType(String ApiBusinessType)Set This field is valid if `AuthType` is `OAUTH`. | 
| void | setApiDesc(String ApiDesc)Set Custom API description. | 
| void | setApiName(String ApiName)Set Custom API name. | 
| void | setApiType(String ApiType)Set API type. | 
| void | setAuthRelationApiId(String AuthRelationApiId)Set Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`. | 
| void | setAuthType(String AuthType)Set API authentication type. | 
| void | setConstantParameters(ConstantParameter[] ConstantParameters)Set Constant parameter. | 
| void | setEIAMAppId(String EIAMAppId)Set EIAM application ID. | 
| void | setEIAMAppType(String EIAMAppType)Set EIAM application type. | 
| void | setEIAMAuthType(String EIAMAuthType)Set EIAM application authentication type. | 
| void | setEnableCORS(Boolean EnableCORS)Set Whether to enable CORS. | 
| void | setEventBusId(String EventBusId)Set Event bus ID. | 
| void | setIsBase64Encoded(Boolean IsBase64Encoded)Set Whether to enable Base64 encoding. | 
| void | setIsDebugAfterCharge(Boolean IsDebugAfterCharge)Set Billing after debugging starts (reserved field for marketplace). | 
| void | setIsDeleteResponseErrorCodes(Boolean IsDeleteResponseErrorCodes)Set Whether to delete the error codes for custom response configuration. | 
| void | setMicroServices(MicroServiceReq[] MicroServices)Set List of microservices bound to API. | 
| void | setOauthConfig(OauthConfig OauthConfig)Set OAuth configuration, which takes effect if `AuthType` is `OAUTH`. | 
| void | setOwner(String Owner)Set Owner of the resource | 
| void | setProtocol(String Protocol)Set API frontend request protocol. | 
| void | setRequestConfig(ApiRequestConfig RequestConfig)Set Request frontend configuration. | 
| void | setRequestParameters(RequestParameter[] RequestParameters)Set Frontend request parameter. | 
| void | setResponseErrorCodes(ResponseErrorCodeReq[] ResponseErrorCodes)Set Custom error code configuration. | 
| void | setResponseFailExample(String ResponseFailExample)Set Sample response for failed custom response configuration. | 
| void | setResponseSuccessExample(String ResponseSuccessExample)Set Sample response for successful custom response configuration. | 
| void | setResponseType(String ResponseType)Set Return type. | 
| void | setServiceConfig(ServiceConfig ServiceConfig)Set API backend service configuration. | 
| void | setServiceId(String ServiceId)Set Unique service ID of API. | 
| void | setServiceMockReturnMessage(String ServiceMockReturnMessage)Set Returned message of API backend Mock, which is required if `ServiceType` is `Mock`. | 
| void | setServiceParameters(ServiceParameter[] ServiceParameters)Set API backend service parameter. | 
| void | setServiceScfFunctionName(String ServiceScfFunctionName)Set SCF function name, which takes effect if the backend type is `SCF`. | 
| void | setServiceScfFunctionNamespace(String ServiceScfFunctionNamespace)Set SCF function namespace, which takes effect if the backend type is `SCF`. | 
| void | setServiceScfFunctionQualifier(String ServiceScfFunctionQualifier)Set SCF function version, which takes effect if the backend type is `SCF`. | 
| void | setServiceScfFunctionType(String ServiceScfFunctionType)Set SCF function type, which takes effect if the backend type is `SCF`. | 
| void | setServiceScfIsIntegratedResponse(Boolean ServiceScfIsIntegratedResponse)Set Whether to enable response integration, which takes effect if the backend type is `SCF`. | 
| void | setServiceTimeout(Long ServiceTimeout)Set API backend service timeout period in seconds. | 
| void | setServiceTsfHealthCheckConf(HealthCheckConf ServiceTsfHealthCheckConf)Set Health check configuration of microservice. | 
| void | setServiceTsfLoadBalanceConf(TsfLoadBalanceConfResp ServiceTsfLoadBalanceConf)Set Load balancing configuration of microservice. | 
| void | setServiceType(String ServiceType)Set API backend service type. | 
| void | setServiceWebsocketCleanupFunctionName(String ServiceWebsocketCleanupFunctionName)Set SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketCleanupFunctionNamespace(String ServiceWebsocketCleanupFunctionNamespace)Set SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketCleanupFunctionQualifier(String ServiceWebsocketCleanupFunctionQualifier)Set SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketRegisterFunctionName(String ServiceWebsocketRegisterFunctionName)Set SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketRegisterFunctionNamespace(String ServiceWebsocketRegisterFunctionNamespace)Set SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketRegisterFunctionQualifier(String ServiceWebsocketRegisterFunctionQualifier)Set SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketTransportFunctionName(String ServiceWebsocketTransportFunctionName)Set SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketTransportFunctionNamespace(String ServiceWebsocketTransportFunctionNamespace)Set SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setServiceWebsocketTransportFunctionQualifier(String ServiceWebsocketTransportFunctionQualifier)Set SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`. | 
| void | setTargetNamespaceId(String TargetNamespaceId)Set TSF Serverless namespace ID (in beta test). | 
| void | setTargetServices(TargetServicesReq[] TargetServices)Set `target` type backend resource information (in beta test). | 
| void | setTargetServicesHealthCheckConf(HealthCheckConf TargetServicesHealthCheckConf)Set `target` health check configuration (in beta test). | 
| void | setTargetServicesLoadBalanceConf(Long TargetServicesLoadBalanceConf)Set `target` type load balancing configuration (in beta test). | 
| void | setTokenTimeout(Long TokenTimeout)Set Validity of the EIAM application token. | 
| void | setUserType(String UserType)Set User type. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateApiRequest()
public CreateApiRequest(CreateApiRequest source)
public String getServiceId()
public void setServiceId(String ServiceId)
ServiceId - Unique service ID of API.public String getServiceType()
public void setServiceType(String ServiceType)
ServiceType - API backend service type. Valid values: HTTP, MOCK, TSF, SCF, WEBSOCKET, TARGET (in beta test).public Long getServiceTimeout()
public void setServiceTimeout(Long ServiceTimeout)
ServiceTimeout - API backend service timeout period in seconds.public String getProtocol()
public void setProtocol(String Protocol)
Protocol - API frontend request protocol. Valid values: HTTPS, WEBSOCKET.public ApiRequestConfig getRequestConfig()
public void setRequestConfig(ApiRequestConfig RequestConfig)
RequestConfig - Request frontend configuration.public String getApiName()
public void setApiName(String ApiName)
ApiName - Custom API name.public String getApiDesc()
public void setApiDesc(String ApiDesc)
ApiDesc - Custom API description.public String getApiType()
public void setApiType(String ApiType)
ApiType - API type. Valid values: NORMAL (general API), TSF (microservice API). Default value: NORMAL.public String getAuthType()
public void setAuthType(String AuthType)
AuthType - API authentication type. Valid values: SECRET (key pair authentication), NONE (no authentication), OAUTH, APP (application authentication). Default value: NONE.public Boolean getEnableCORS()
public void setEnableCORS(Boolean EnableCORS)
EnableCORS - Whether to enable CORS.public ConstantParameter[] getConstantParameters()
public void setConstantParameters(ConstantParameter[] ConstantParameters)
ConstantParameters - Constant parameter.public RequestParameter[] getRequestParameters()
public void setRequestParameters(RequestParameter[] RequestParameters)
RequestParameters - Frontend request parameter.public String getApiBusinessType()
public void setApiBusinessType(String ApiBusinessType)
ApiBusinessType - This field is valid if `AuthType` is `OAUTH`. NORMAL: business API; OAUTH: authorization API.public String getServiceMockReturnMessage()
public void setServiceMockReturnMessage(String ServiceMockReturnMessage)
ServiceMockReturnMessage - Returned message of API backend Mock, which is required if `ServiceType` is `Mock`.public MicroServiceReq[] getMicroServices()
public void setMicroServices(MicroServiceReq[] MicroServices)
MicroServices - List of microservices bound to API.public TsfLoadBalanceConfResp getServiceTsfLoadBalanceConf()
public void setServiceTsfLoadBalanceConf(TsfLoadBalanceConfResp ServiceTsfLoadBalanceConf)
ServiceTsfLoadBalanceConf - Load balancing configuration of microservice.public HealthCheckConf getServiceTsfHealthCheckConf()
public void setServiceTsfHealthCheckConf(HealthCheckConf ServiceTsfHealthCheckConf)
ServiceTsfHealthCheckConf - Health check configuration of microservice.public TargetServicesReq[] getTargetServices()
public void setTargetServices(TargetServicesReq[] TargetServices)
TargetServices - `target` type backend resource information (in beta test).public Long getTargetServicesLoadBalanceConf()
public void setTargetServicesLoadBalanceConf(Long TargetServicesLoadBalanceConf)
TargetServicesLoadBalanceConf - `target` type load balancing configuration (in beta test).public HealthCheckConf getTargetServicesHealthCheckConf()
public void setTargetServicesHealthCheckConf(HealthCheckConf TargetServicesHealthCheckConf)
TargetServicesHealthCheckConf - `target` health check configuration (in beta test).public String getServiceScfFunctionName()
public void setServiceScfFunctionName(String ServiceScfFunctionName)
ServiceScfFunctionName - SCF function name, which takes effect if the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionName()
public void setServiceWebsocketRegisterFunctionName(String ServiceWebsocketRegisterFunctionName)
ServiceWebsocketRegisterFunctionName - SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionName()
public void setServiceWebsocketCleanupFunctionName(String ServiceWebsocketCleanupFunctionName)
ServiceWebsocketCleanupFunctionName - SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionName()
public void setServiceWebsocketTransportFunctionName(String ServiceWebsocketTransportFunctionName)
ServiceWebsocketTransportFunctionName - SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceScfFunctionNamespace()
public void setServiceScfFunctionNamespace(String ServiceScfFunctionNamespace)
ServiceScfFunctionNamespace - SCF function namespace, which takes effect if the backend type is `SCF`.public String getServiceScfFunctionQualifier()
public void setServiceScfFunctionQualifier(String ServiceScfFunctionQualifier)
ServiceScfFunctionQualifier - SCF function version, which takes effect if the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionNamespace()
public void setServiceWebsocketRegisterFunctionNamespace(String ServiceWebsocketRegisterFunctionNamespace)
ServiceWebsocketRegisterFunctionNamespace - SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionQualifier()
public void setServiceWebsocketRegisterFunctionQualifier(String ServiceWebsocketRegisterFunctionQualifier)
ServiceWebsocketRegisterFunctionQualifier - SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionNamespace()
public void setServiceWebsocketTransportFunctionNamespace(String ServiceWebsocketTransportFunctionNamespace)
ServiceWebsocketTransportFunctionNamespace - SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionQualifier()
public void setServiceWebsocketTransportFunctionQualifier(String ServiceWebsocketTransportFunctionQualifier)
ServiceWebsocketTransportFunctionQualifier - SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionNamespace()
public void setServiceWebsocketCleanupFunctionNamespace(String ServiceWebsocketCleanupFunctionNamespace)
ServiceWebsocketCleanupFunctionNamespace - SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionQualifier()
public void setServiceWebsocketCleanupFunctionQualifier(String ServiceWebsocketCleanupFunctionQualifier)
ServiceWebsocketCleanupFunctionQualifier - SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public Boolean getServiceScfIsIntegratedResponse()
public void setServiceScfIsIntegratedResponse(Boolean ServiceScfIsIntegratedResponse)
ServiceScfIsIntegratedResponse - Whether to enable response integration, which takes effect if the backend type is `SCF`.public Boolean getIsDebugAfterCharge()
public void setIsDebugAfterCharge(Boolean IsDebugAfterCharge)
IsDebugAfterCharge - Billing after debugging starts (reserved field for marketplace).public Boolean getIsDeleteResponseErrorCodes()
public void setIsDeleteResponseErrorCodes(Boolean IsDeleteResponseErrorCodes)
IsDeleteResponseErrorCodes - Whether to delete the error codes for custom response configuration. If the value is left empty or `False`, the error codes will not be deleted. If the value is `True`, all custom response configuration error codes of the API will be deleted.public String getResponseType()
public void setResponseType(String ResponseType)
ResponseType - Return type.public String getResponseSuccessExample()
public void setResponseSuccessExample(String ResponseSuccessExample)
ResponseSuccessExample - Sample response for successful custom response configuration.public String getResponseFailExample()
public void setResponseFailExample(String ResponseFailExample)
ResponseFailExample - Sample response for failed custom response configuration.public ServiceConfig getServiceConfig()
public void setServiceConfig(ServiceConfig ServiceConfig)
ServiceConfig - API backend service configuration.public String getAuthRelationApiId()
public void setAuthRelationApiId(String AuthRelationApiId)
AuthRelationApiId - Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`. It is the unique ID of the OAuth 2.0 authorization API bound to the business API.public ServiceParameter[] getServiceParameters()
public void setServiceParameters(ServiceParameter[] ServiceParameters)
ServiceParameters - API backend service parameter.public OauthConfig getOauthConfig()
public void setOauthConfig(OauthConfig OauthConfig)
OauthConfig - OAuth configuration, which takes effect if `AuthType` is `OAUTH`.public ResponseErrorCodeReq[] getResponseErrorCodes()
public void setResponseErrorCodes(ResponseErrorCodeReq[] ResponseErrorCodes)
ResponseErrorCodes - Custom error code configuration.public String getTargetNamespaceId()
public void setTargetNamespaceId(String TargetNamespaceId)
TargetNamespaceId - TSF Serverless namespace ID (in beta test).public String getUserType()
public void setUserType(String UserType)
UserType - User type.public Boolean getIsBase64Encoded()
public void setIsBase64Encoded(Boolean IsBase64Encoded)
IsBase64Encoded - Whether to enable Base64 encoding. This parameter takes effect only when the backend is SCF.public String getEventBusId()
public void setEventBusId(String EventBusId)
EventBusId - Event bus ID.public String getServiceScfFunctionType()
public void setServiceScfFunctionType(String ServiceScfFunctionType)
ServiceScfFunctionType - SCF function type, which takes effect if the backend type is `SCF`. Valid values: `EVENT` and `HTTP`.public String getEIAMAppType()
public void setEIAMAppType(String EIAMAppType)
EIAMAppType - EIAM application type.public String getEIAMAuthType()
public void setEIAMAuthType(String EIAMAuthType)
EIAMAuthType - EIAM application authentication type. Valid values: `AuthenticationOnly`, `Authentication`, `Authorization`.public Long getTokenTimeout()
public void setTokenTimeout(Long TokenTimeout)
TokenTimeout - Validity of the EIAM application token. Unit: second. Default value: `7200`.public String getEIAMAppId()
public void setEIAMAppId(String EIAMAppId)
EIAMAppId - EIAM application ID.public String getOwner()
public void setOwner(String Owner)
Owner - Owner of the resourceCopyright © 2025. All rights reserved.