public class CreateListenerRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateListenerRequest.CreateListenerRequestTag |
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
alpnEnabled
Specifies whether to enable Application-Layer Protocol Negotiation (ALPN).
|
String |
alpnPolicy
The ALPN policy.
|
List<String> |
caCertificateIds
The certificate authority (CA) certificates.
|
Boolean |
caEnabled
Specifies whether to enable mutual authentication.
|
List<String> |
certificateIds
The server certificates.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Integer |
cps
The maximum number of connections that can be created per second on the NLB instance.
|
Boolean |
dryRun
Specifies whether to perform only a dry run without performing the actual request.
|
Integer |
endPort
The last port in the listener port range.
|
Integer |
idleTimeout
The timeout period of idle connections.
|
String |
listenerDescription
The name of the listener.
|
Integer |
listenerPort
The listener port.
|
String |
listenerProtocol
The listener protocol.
|
String |
loadBalancerId
The ID of the Network Load Balancer (NLB) instance.
|
Integer |
mss
The maximum size of a TCP segment.
|
Boolean |
proxyProtocolEnabled
Specifies whether to use the Proxy protocol to pass client IP addresses to backend servers.
|
String |
regionId
The region ID of the NLB instance.
|
Boolean |
secSensorEnabled
Specifies whether to enable fine-grained monitoring.
|
String |
securityPolicyId
The security policy ID.
|
String |
serverGroupId
The server group ID.
|
Integer |
startPort
The first port in the listener port range.
|
List<CreateListenerRequest.CreateListenerRequestTag> |
tag |
| 构造器和说明 |
|---|
CreateListenerRequest() |
@NameInMap(value="AlpnEnabled") public Boolean alpnEnabled
Specifies whether to enable Application-Layer Protocol Negotiation (ALPN). Valid values:
* **true**
* **false** (default)
@NameInMap(value="AlpnPolicy") public String alpnPolicy
The ALPN policy.
Valid values:
* HTTP1Only
* HTTP2Only
* HTTP2Preferred
* HTTP2Optional
@NameInMap(value="CaCertificateIds") public List<String> caCertificateIds
The certificate authority (CA) certificates. This parameter takes effect only for listeners that use SSL over TCP.
> You can specify only one CA certificate.
@NameInMap(value="CaEnabled") public Boolean caEnabled
Specifies whether to enable mutual authentication. Valid values:
* **true**
* **false** (default)
@NameInMap(value="CertificateIds") public List<String> certificateIds
The server certificates. This parameter takes effect only for listeners that use SSL over TCP.
> You can specify only one server certificate.
@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 token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="Cps") public Integer cps
The maximum number of connections that can be created per second on the NLB instance. Valid values: **0** to **1000000**. **0** specifies that the number of connections is unlimited.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run without performing the actual request. Valid values:
* **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false**(default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
@NameInMap(value="EndPort") public Integer endPort
The last port in the listener port range. Valid values: **0** to **65535**. The number of the last port must be greater than the number of the first port.
> This parameter is required when **ListenerPort** is set to **0**.
@NameInMap(value="IdleTimeout") public Integer idleTimeout
The timeout period of idle connections. Unit: seconds. Valid values: **1** to **900**. Default value: **900**.
@NameInMap(value="ListenerDescription") public String listenerDescription
The name of the listener.
The name must be 2 to 256 characters in length, and can contain letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (\_), and hyphens (-).
@NameInMap(value="ListenerPort") public Integer listenerPort
The listener port. Valid values: **0** to **65535**.
If you set the value to **0**, the listener listens by port range. If you set the value to **0**, you must specify **StartPort** and **EndPort**.
@NameInMap(value="ListenerProtocol") public String listenerProtocol
The listener protocol. Valid values: **TCP**, **UDP**, and **TCPSSL**.
@NameInMap(value="LoadBalancerId") public String loadBalancerId
The ID of the Network Load Balancer (NLB) instance.
@NameInMap(value="Mss") public Integer mss
The maximum size of a TCP segment. Unit: bytes. Valid values: **0** to **1500**. **0** specifies that the maximum segment size remains unchanged.
> This parameter is supported only by TCP listeners and listeners that use SSL over TCP.
@NameInMap(value="ProxyProtocolEnabled") public Boolean proxyProtocolEnabled
Specifies whether to use the Proxy protocol to pass client IP addresses to backend servers. Valid values:
* **true**
* **false** (default)
@NameInMap(value="RegionId") public String regionId
The region ID of the NLB instance.
You can call the [DescribeRegions](~~443657~~) operation to query the most recent region list.
@NameInMap(value="SecSensorEnabled") public Boolean secSensorEnabled
Specifies whether to enable fine-grained monitoring. Valid values:
* **true**
* **false** (default)
@NameInMap(value="SecurityPolicyId") public String securityPolicyId
The security policy ID. System security policies and custom security policies are supported.
Valid values: **tls_cipher_policy\_1\_0** (default), **tls_cipher_policy\_1\_1**, **tls_cipher_policy\_1\_2**, **tls_cipher_policy\_1\_2\_strict**, and **tls_cipher_policy\_1\_2\_strict_with\_1\_3**.
> This parameter takes effect only for listeners that use SSL over TCP.
@NameInMap(value="ServerGroupId") public String serverGroupId
The server group ID.
@NameInMap(value="StartPort") public Integer startPort
The first port in the listener port range. Valid values: **0** to **65535**.
> This parameter is required when **ListenerPort** is set to **0**.
@NameInMap(value="Tag") public List<CreateListenerRequest.CreateListenerRequestTag> tag
public static CreateListenerRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateListenerRequest setAlpnEnabled(Boolean alpnEnabled)
public Boolean getAlpnEnabled()
public CreateListenerRequest setAlpnPolicy(String alpnPolicy)
public String getAlpnPolicy()
public CreateListenerRequest setCaCertificateIds(List<String> caCertificateIds)
public CreateListenerRequest setCaEnabled(Boolean caEnabled)
public Boolean getCaEnabled()
public CreateListenerRequest setCertificateIds(List<String> certificateIds)
public CreateListenerRequest setClientToken(String clientToken)
public String getClientToken()
public CreateListenerRequest setCps(Integer cps)
public Integer getCps()
public CreateListenerRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateListenerRequest setEndPort(Integer endPort)
public Integer getEndPort()
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 setMss(Integer mss)
public Integer getMss()
public CreateListenerRequest setProxyProtocolEnabled(Boolean proxyProtocolEnabled)
public Boolean getProxyProtocolEnabled()
public CreateListenerRequest setRegionId(String regionId)
public String getRegionId()
public CreateListenerRequest setSecSensorEnabled(Boolean secSensorEnabled)
public Boolean getSecSensorEnabled()
public CreateListenerRequest setSecurityPolicyId(String securityPolicyId)
public String getSecurityPolicyId()
public CreateListenerRequest setServerGroupId(String serverGroupId)
public String getServerGroupId()
public CreateListenerRequest setStartPort(Integer startPort)
public Integer getStartPort()
public CreateListenerRequest setTag(List<CreateListenerRequest.CreateListenerRequestTag> tag)
public List<CreateListenerRequest.CreateListenerRequestTag> getTag()
Copyright © 2023. All rights reserved.