public static final class DescribeApiResponseBody.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeApiResponseBody.Builder allowSignatureMethod(String allowSignatureMethod)
public DescribeApiResponseBody.Builder apiId(String apiId)
public DescribeApiResponseBody.Builder apiName(String apiName)
public DescribeApiResponseBody.Builder appCodeAuthType(String appCodeAuthType)
* HmacSHA256 * HmacSHA1,HmacSHA256
public DescribeApiResponseBody.Builder authType(String authType)
public DescribeApiResponseBody.Builder backendConfig(DescribeApiResponseBody.BackendConfig backendConfig)
public DescribeApiResponseBody.Builder backendEnable(Boolean backendEnable)
public DescribeApiResponseBody.Builder constantParameters(DescribeApiResponseBody.ConstantParameters constantParameters)
public DescribeApiResponseBody.Builder createdTime(String createdTime)
public DescribeApiResponseBody.Builder customSystemParameters(DescribeApiResponseBody.CustomSystemParameters customSystemParameters)
public DescribeApiResponseBody.Builder deployedInfos(DescribeApiResponseBody.DeployedInfos deployedInfos)
public DescribeApiResponseBody.Builder description(String description)
public DescribeApiResponseBody.Builder disableInternet(Boolean disableInternet)
public DescribeApiResponseBody.Builder errorCodeSamples(DescribeApiResponseBody.ErrorCodeSamples errorCodeSamples)
public DescribeApiResponseBody.Builder failResultSample(String failResultSample)
* **APP**: Only authorized applications can call the API. * **ANONYMOUS**: The API can be anonymously called. In this mode, you must take note of the following rules: * All users who have obtained the API service information can call this API. API Gateway does not authenticate callers and cannot set user-specific throttling policies. If you make this API public, set API-specific throttling policies. * We recommend that you do not make the API whose security authentication method is ANONYMOUS available in Alibaba Cloud Marketplace because API Gateway cannot meter calls on the caller or limit the number of calls on the API. If you want to make the API group to which the API belongs available in Alibaba Cloud Marketplace, we recommend that you move the API to another group, set its type to PRIVATE, or set its security authentication method to APP. * **APPOPENID**: The OpenID Connect account authentication method is used. Only applications authorized by OpenID Connect can call the API. If this method is selected, the OpenIdConnectConfig parameter is required.
public DescribeApiResponseBody.Builder forceNonceCheck(Boolean forceNonceCheck)
* **PUBLIC**: Make the API public. If you set this parameter to PUBLIC, this API is displayed on the APIs page for all users after the API is published to the production environment. * **PRIVATE**: Make the API private. Private APIs are not displayed in the Alibaba Cloud Marketplace after the API group to which they belong is made available.
public DescribeApiResponseBody.Builder groupId(String groupId)
* OPEN: The Mock mode is enabled. * CLOSED: The Mock mode is not enabled.
public DescribeApiResponseBody.Builder groupName(String groupName)
public DescribeApiResponseBody.Builder mock(String mock)
public DescribeApiResponseBody.Builder mockResult(String mockResult)
public DescribeApiResponseBody.Builder modifiedTime(String modifiedTime)
public DescribeApiResponseBody.Builder openIdConnectConfig(DescribeApiResponseBody.OpenIdConnectConfig openIdConnectConfig)
* **IDTOKEN**: indicates the APIs that are called by clients to obtain tokens. If you specify this value, the PublicKeyId parameter and the PublicKey parameter are required. * **BUSINESS**: indicates business APIs. Tokens are used to call the business APIs. If you specify this value, the IdTokenParamName parameter is required.
public DescribeApiResponseBody.Builder regionId(String regionId)
* **true**: This field is forcibly checked when an API is requested to prevent replay attacks. * **false**: This field is not checked.
public DescribeApiResponseBody.Builder requestConfig(DescribeApiResponseBody.RequestConfig requestConfig)
public DescribeApiResponseBody.Builder requestId(String requestId)
public DescribeApiResponseBody.Builder requestParameters(DescribeApiResponseBody.RequestParameters requestParameters)
public DescribeApiResponseBody.Builder resultBodyModel(String resultBodyModel)
public DescribeApiResponseBody.Builder resultDescriptions(DescribeApiResponseBody.ResultDescriptions resultDescriptions)
public DescribeApiResponseBody.Builder resultSample(String resultSample)
* **DEFAULT**: The default value that is used if no other values are passed. This value means that the setting of the group is 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 DescribeApiResponseBody.Builder resultType(String resultType)
* **COMMON**: general APIs * **REGISTER**: registered APIs * **UNREGISTER**: unregistered APIs * **NOTIFY**: downstream notification
public DescribeApiResponseBody.Builder serviceConfig(DescribeApiResponseBody.ServiceConfig serviceConfig)
public DescribeApiResponseBody.Builder serviceParameters(DescribeApiResponseBody.ServiceParameters serviceParameters)
public DescribeApiResponseBody.Builder serviceParametersMap(DescribeApiResponseBody.ServiceParametersMap serviceParametersMap)
public DescribeApiResponseBody.Builder systemParameters(DescribeApiResponseBody.SystemParameters systemParameters)
public DescribeApiResponseBody.Builder visibility(String visibility)
public DescribeApiResponseBody.Builder webSocketApiType(String webSocketApiType)
* **true**: Only API calls from the VPC are supported. * **false**: API calls from the VPC and Internet are both supported.
public DescribeApiResponseBody build()
Copyright © 2023. All rights reserved.