public class AssociateAclsWithListenerRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
aclIds
The ACL IDs.
|
String |
aclType
The type of the ACL.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
String |
listenerId
The listener ID.
|
| 构造器和说明 |
|---|
AssociateAclsWithListenerRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AssociateAclsWithListenerRequest |
build(Map<String,?> map) |
List<String> |
getAclIds() |
String |
getAclType() |
String |
getClientToken() |
Boolean |
getDryRun() |
String |
getListenerId() |
AssociateAclsWithListenerRequest |
setAclIds(List<String> aclIds) |
AssociateAclsWithListenerRequest |
setAclType(String aclType) |
AssociateAclsWithListenerRequest |
setClientToken(String clientToken) |
AssociateAclsWithListenerRequest |
setDryRun(Boolean dryRun) |
AssociateAclsWithListenerRequest |
setListenerId(String listenerId) |
@NameInMap(value="AclIds") public List<String> aclIds
The ACL IDs. You can specify up to three IDs in each call.
This parameter is required.
@NameInMap(value="AclType") public String aclType
The type of the ACL. Valid values:
* **White**: a whitelist. Only requests from the IP addresses or CIDR blocks in the ACL are forwarded. The whitelist applies to scenarios in which you want to allow only specific IP addresses to access an application. Your service may be adversely affected if the whitelist is not properly configured. If a whitelist is configured for a listener, only requests from IP addresses that are added to the whitelist are forwarded by the listener. If you enable a whitelist but do not add an IP address to the whitelist, the listener forwards all requests.
* **Black**: a blacklist. All requests from the IP addresses or CIDR blocks in the ACL are blocked. The blacklist applies to scenarios in which you want to block access from specific IP addresses to an application. If a blacklist is configured for a listener but no IP address is added to the blacklist, the listener forwards all requests.
This parameter is required.
@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 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="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="ListenerId") public String listenerId
The listener ID.
This parameter is required.
public static AssociateAclsWithListenerRequest build(Map<String,?> map) throws Exception
Exceptionpublic AssociateAclsWithListenerRequest setAclIds(List<String> aclIds)
public AssociateAclsWithListenerRequest setAclType(String aclType)
public String getAclType()
public AssociateAclsWithListenerRequest setClientToken(String clientToken)
public String getClientToken()
public AssociateAclsWithListenerRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public AssociateAclsWithListenerRequest setListenerId(String listenerId)
public String getListenerId()
Copyright © 2024. All rights reserved.