public class ModifyApiRequest extends AbstractModel
| Constructor and Description | 
|---|
| ModifyApiRequest() | 
| ModifyApiRequest(ModifyApiRequest 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 | getApiId()Get Unique API ID. | 
| 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`. | 
| Boolean | getAuthRequired()Get Whether signature authentication is required. | 
| String | getAuthType()Get API authentication type. | 
| Base64EncodedTriggerRule[] | getBase64EncodedTriggerRules()Get Header trigger rules. | 
| ConstantParameter[] | getConstantParameters()Get Constant parameter. | 
| String | getEIAMAppId()Get Validity of the EIAM application token. | 
| 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 | getIsBase64Trigger()Get Whether to trigger Base64 encoding by header. | 
| 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 | getProtocol()Get API frontend request type, such as HTTP, HTTPS, or HTTP and HTTPS. | 
| RequestConfig | getRequestConfig()Get Request frontend configuration. | 
| ReqParameter[] | 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 when 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`. | 
| Tag | getTagSpecifications()Get Tag. | 
| HealthCheckConf | getTargetServicesHealthCheckConf()Get `target` health check configuration (in beta test). | 
| Long | getTargetServicesLoadBalanceConf()Get `target` type load balancing configuration (in beta test). | 
| Long | getTokenTimeout()Get EIAM application ID. | 
| void | setApiBusinessType(String ApiBusinessType)Set This field is valid if `AuthType` is `OAUTH`. | 
| void | setApiDesc(String ApiDesc)Set Custom API description. | 
| void | setApiId(String ApiId)Set Unique API ID. | 
| 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 | setAuthRequired(Boolean AuthRequired)Set Whether signature authentication is required. | 
| void | setAuthType(String AuthType)Set API authentication type. | 
| void | setBase64EncodedTriggerRules(Base64EncodedTriggerRule[] Base64EncodedTriggerRules)Set Header trigger rules. | 
| void | setConstantParameters(ConstantParameter[] ConstantParameters)Set Constant parameter. | 
| void | setEIAMAppId(String EIAMAppId)Set Validity of the EIAM application token. | 
| 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 | setIsBase64Trigger(Boolean IsBase64Trigger)Set Whether to trigger Base64 encoding by header. | 
| 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 | setProtocol(String Protocol)Set API frontend request type, such as HTTP, HTTPS, or HTTP and HTTPS. | 
| void | setRequestConfig(RequestConfig RequestConfig)Set Request frontend configuration. | 
| void | setRequestParameters(ReqParameter[] 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 when 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 | setTagSpecifications(Tag TagSpecifications)Set Tag. | 
| 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 EIAM application ID. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic ModifyApiRequest()
public ModifyApiRequest(ModifyApiRequest 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, CLB, SCF, WEBSOCKET, TARGET (in beta test).public RequestConfig getRequestConfig()
public void setRequestConfig(RequestConfig RequestConfig)
RequestConfig - Request frontend configuration.public String getApiId()
public void setApiId(String ApiId)
ApiId - Unique API ID.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, TSF. Default value: NORMAL.public String getAuthType()
public void setAuthType(String AuthType)
AuthType - API authentication type. Valid values: SECRET, NONE, OAUTH, APP. Default value: NONE.public Boolean getAuthRequired()
public void setAuthRequired(Boolean AuthRequired)
AuthRequired - Whether signature authentication is required. True: yes; False: no. This parameter is to be disused.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 type, such as HTTP, HTTPS, or HTTP and HTTPS.public Boolean getEnableCORS()
public void setEnableCORS(Boolean EnableCORS)
EnableCORS - Whether to enable CORS. True: yes; False: no.public ConstantParameter[] getConstantParameters()
public void setConstantParameters(ConstantParameter[] ConstantParameters)
ConstantParameters - Constant parameter.public ReqParameter[] getRequestParameters()
public void setRequestParameters(ReqParameter[] 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 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 Tag getTagSpecifications()
public void setTagSpecifications(Tag TagSpecifications)
TagSpecifications - Tag.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 Boolean getIsBase64Encoded()
public void setIsBase64Encoded(Boolean IsBase64Encoded)
IsBase64Encoded - Whether to enable Base64 encoding. This parameter takes effect only when the backend is SCF.public Boolean getIsBase64Trigger()
public void setIsBase64Trigger(Boolean IsBase64Trigger)
IsBase64Trigger - Whether to trigger Base64 encoding by header. This parameter takes effect only when the backend is SCF.public Base64EncodedTriggerRule[] getBase64EncodedTriggerRules()
public void setBase64EncodedTriggerRules(Base64EncodedTriggerRule[] Base64EncodedTriggerRules)
Base64EncodedTriggerRules - Header trigger rules. The number of rules cannot exceed 10.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 when 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 String getEIAMAppId()
public void setEIAMAppId(String EIAMAppId)
EIAMAppId - Validity of the EIAM application token. Unit: second. Default value: `7200`.public Long getTokenTimeout()
public void setTokenTimeout(Long TokenTimeout)
TokenTimeout - EIAM application ID.Copyright © 2022. All rights reserved.