public class CreateListenerRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateListenerRequest.CreateListenerRequestCaCertificates |
static class |
CreateListenerRequest.CreateListenerRequestCertificates |
static class |
CreateListenerRequest.CreateListenerRequestDefaultActions |
static class |
CreateListenerRequest.CreateListenerRequestDefaultActionsForwardGroupConfig |
static class |
CreateListenerRequest.CreateListenerRequestDefaultActionsForwardGroupConfigServerGroupTuples |
static class |
CreateListenerRequest.CreateListenerRequestQuicConfig |
static class |
CreateListenerRequest.CreateListenerRequestTag |
static class |
CreateListenerRequest.CreateListenerRequestXForwardedForConfig |
| 构造器和说明 |
|---|
CreateListenerRequest() |
@NameInMap(value="CaCertificates") public List<CreateListenerRequest.CreateListenerRequestCaCertificates> caCertificates
@NameInMap(value="CaEnabled") public Boolean caEnabled
Specifies whether to enable mutual authentication. Valid values:
* **true**: enables mutual authentication.
* **false** (default): disables mutual authentication.
@NameInMap(value="Certificates") public List<CreateListenerRequest.CreateListenerRequestCertificates> certificates
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters.
> If you do not set this parameter, the system automatically uses the value of **RequestId** as the value of **ClientToken**. **RequestId** may be different for each API request.
@NameInMap(value="DefaultActions") public List<CreateListenerRequest.CreateListenerRequestDefaultActions> defaultActions
This parameter is required.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a precheck. Valid values:
* **true**: prechecks the request without creating a listener. The system checks the required parameters, request syntax, and limits. If the request fails the precheck, an error code is returned based on the cause of the failure. If the request passes the precheck, the `DryRunOperation` error code is returned.
* **false** (default): sends the API request. If the request passes the precheck, a 2xx HTTP status code is returned and the system proceeds to create a listener.
@NameInMap(value="GzipEnabled") public Boolean gzipEnabled
Specifies whether to enable `Gzip` compression to compress specific types of files. Valid values:
* **true** (default): enables Gzip compression.
* **false**: disables Gzip compression.
@NameInMap(value="Http2Enabled") public Boolean http2Enabled
Specifies whether to enable `HTTP/2`. Valid values:
* **true** (default): enables HTTP/2.
* **false**: disables HTTP/2.
> Only HTTPS listeners support this parameter.
@NameInMap(value="IdleTimeout") public Integer idleTimeout
The timeout period of an idle connection. Unit: seconds.
Valid values: **1 to 60**.
Default value: **15**.
If no requests are received within the specified timeout period, ALB closes the current connection. When a new request is received, ALB establishes a new connection.
@NameInMap(value="ListenerDescription") public String listenerDescription
The name of the listener.
The description must be 2 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_). Regular expressions are supported.
@NameInMap(value="ListenerPort") public Integer listenerPort
The frontend port that is used by the ALB instance.
Valid values: **1 to 65535**.
This parameter is required.
@NameInMap(value="ListenerProtocol") public String listenerProtocol
The listener protocol.
Valid values: **HTTP**, **HTTPS**, and **QUIC**.
This parameter is required.
@NameInMap(value="LoadBalancerId") public String loadBalancerId
The ID of the ALB instance.
This parameter is required.
@NameInMap(value="QuicConfig") public CreateListenerRequest.CreateListenerRequestQuicConfig quicConfig
@NameInMap(value="RequestTimeout") public Integer requestTimeout
The timeout period of a request. Unit: seconds.
Valid values: **1 to 180**.
Default value: **60**.
If no response is received from the backend server during the request timeout period, ALB sends an `HTTP 504` error code to the client.
@NameInMap(value="SecurityPolicyId") public String securityPolicyId
The ID of the security policy. System security policies and custom security policies are supported.
Default value: **tls_cipher_policy_1_0** (system security policy).
> Only HTTPS listeners support this parameter.
@NameInMap(value="Tag") public List<CreateListenerRequest.CreateListenerRequestTag> tag
The tags.
@NameInMap(value="XForwardedForConfig") public CreateListenerRequest.CreateListenerRequestXForwardedForConfig XForwardedForConfig
public static CreateListenerRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateListenerRequest setCaCertificates(List<CreateListenerRequest.CreateListenerRequestCaCertificates> caCertificates)
public List<CreateListenerRequest.CreateListenerRequestCaCertificates> getCaCertificates()
public CreateListenerRequest setCaEnabled(Boolean caEnabled)
public Boolean getCaEnabled()
public CreateListenerRequest setCertificates(List<CreateListenerRequest.CreateListenerRequestCertificates> certificates)
public List<CreateListenerRequest.CreateListenerRequestCertificates> getCertificates()
public CreateListenerRequest setClientToken(String clientToken)
public String getClientToken()
public CreateListenerRequest setDefaultActions(List<CreateListenerRequest.CreateListenerRequestDefaultActions> defaultActions)
public List<CreateListenerRequest.CreateListenerRequestDefaultActions> getDefaultActions()
public CreateListenerRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateListenerRequest setGzipEnabled(Boolean gzipEnabled)
public Boolean getGzipEnabled()
public CreateListenerRequest setHttp2Enabled(Boolean http2Enabled)
public Boolean getHttp2Enabled()
public CreateListenerRequest setIdleTimeout(Integer idleTimeout)
public Integer getIdleTimeout()
public CreateListenerRequest setListenerDescription(String listenerDescription)
public String getListenerDescription()
public CreateListenerRequest setListenerPort(Integer listenerPort)
public Integer getListenerPort()
public CreateListenerRequest setListenerProtocol(String listenerProtocol)
public String getListenerProtocol()
public CreateListenerRequest setLoadBalancerId(String loadBalancerId)
public String getLoadBalancerId()
public CreateListenerRequest setQuicConfig(CreateListenerRequest.CreateListenerRequestQuicConfig quicConfig)
public CreateListenerRequest.CreateListenerRequestQuicConfig getQuicConfig()
public CreateListenerRequest setRequestTimeout(Integer requestTimeout)
public Integer getRequestTimeout()
public CreateListenerRequest setSecurityPolicyId(String securityPolicyId)
public String getSecurityPolicyId()
public CreateListenerRequest setTag(List<CreateListenerRequest.CreateListenerRequestTag> tag)
public List<CreateListenerRequest.CreateListenerRequestTag> getTag()
public CreateListenerRequest setXForwardedForConfig(CreateListenerRequest.CreateListenerRequestXForwardedForConfig XForwardedForConfig)
public CreateListenerRequest.CreateListenerRequestXForwardedForConfig getXForwardedForConfig()
Copyright © 2024. All rights reserved.