public static final class CreateIngressRequest.Builder extends Object
public CreateIngressRequest.Builder addressType(String addressType)
public CreateIngressRequest.Builder certId(String certId)
The ID of the CLB certificate. Valid values:
For more information about how to use SSL certificate IDs for CLB, see Manage certificates (CLB).
example:188077086902****_176993d****_181437****_108724****
public CreateIngressRequest.Builder certIds(String certIds)
The ID of the multi-certificate ALB. Valid values:
756***-cn-hangzhou, the 756*** is the certificate ID obtained from the product page, and the -cn-hangzhou is a fixed suffix. For more information, see Manage certificates.8735-cn-hangzhou,8123-cn-hangzhou
public CreateIngressRequest.Builder corsConfig(String corsConfig)
public CreateIngressRequest.Builder defaultRule(String defaultRule)
The default forwarding rule. Forwards traffic to a specified application through a specified port based on the IP address. The following table describes the parameters.
All requests that do not match or satisfy Rules forwarding rules are forwarded to the specified application.
This parameter is required.
example:{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080}
public CreateIngressRequest.Builder description(String description)
The name of the routing rule.
example:ingress-for-sae-test
public CreateIngressRequest.Builder enableGzip(Boolean enableGzip)
public CreateIngressRequest.Builder enableXForwardedFor(Boolean enableXForwardedFor)
public CreateIngressRequest.Builder enableXForwardedForClientSrcPort(Boolean enableXForwardedForClientSrcPort)
public CreateIngressRequest.Builder enableXForwardedForProto(Boolean enableXForwardedForProto)
public CreateIngressRequest.Builder enableXForwardedForSlbId(Boolean enableXForwardedForSlbId)
public CreateIngressRequest.Builder enableXForwardedForSlbPort(Boolean enableXForwardedForSlbPort)
public CreateIngressRequest.Builder idleTimeout(Integer idleTimeout)
Specifies the connection idle timeout period. Unit: seconds. Valid values: 1 to 60. If there is no access request within the timeout period, the SLB will temporarily interrupt the current connection until the next request comes to re-establish a new connection.
example:15
public CreateIngressRequest.Builder listenerPort(Integer listenerPort)
The SLB listening port. This port cannot be occupied.
This parameter is required.
example:80
public CreateIngressRequest.Builder listenerProtocol(String listenerProtocol)
The request forwarding protocol. Valid values:
HTTP
public CreateIngressRequest.Builder loadBalanceType(String loadBalanceType)
SLB the type of the SLB instance. It depends on the type that you entered when you created the routing rule and cannot be changed when you update it. Valid values:
clb
public CreateIngressRequest.Builder loadBalancerEdition(String loadBalancerEdition)
public CreateIngressRequest.Builder namespaceId(String namespaceId)
The ID of the namespace where the application resides. Currently, cross-namespace applications are not supported.
This parameter is required.
example:cn-beijing:sae-test
public CreateIngressRequest.Builder requestTimeout(Integer requestTimeout)
Specifies the request timeout period. Unit: seconds. Valid values: 1 to 180. If the backend server does not respond within the timeout period, the SLB abandons the wait and returns an HTTP 504 error code to the client.
example:3
public CreateIngressRequest.Builder rules(String rules)
The forwarding rule. Forwards traffic to a specified application through a specified port based on the domain name and request path. The following table describes the parameters.
Only ALB allows you to set the RewritePath feature. CLB does not support this feature.
This parameter is required.
example:[{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080,"domain":"www.sae.site","path":"/path1"},{"appId":"666403ce-d25b-47cf-87fe-497565d2****","containerPort":8080,"domain":"sae.site","path":"/path2"}]
public CreateIngressRequest.Builder securityPolicyId(String securityPolicyId)
The ID of the security policy instance.
example:sp-bp1bpn0kn9****
public CreateIngressRequest.Builder slbId(String slbId)
The Server Load Balancer (SLB) instance that is used by the routing rule.
example:SLB SLB instances include CLB instances and ALB instances.
lb-uf6hucc7inlqrtcq5****
public CreateIngressRequest.Builder zoneMappings(String zoneMappings)
public CreateIngressRequest build()
Copyright © 2026. All rights reserved.