public static final class CreateNetworkAclEntryRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNetworkAclEntryRequest |
build() |
CreateNetworkAclEntryRequest.Builder |
cidrBlock(String cidrBlock)
The source CIDR block.
|
CreateNetworkAclEntryRequest.Builder |
description(String description)
The description of the network ACL.
|
CreateNetworkAclEntryRequest.Builder |
direction(String direction)
Specifies whether the ACL rule controls inbound or outbound access requests.
|
CreateNetworkAclEntryRequest.Builder |
networkAclEntryName(String networkAclEntryName)
The name of the rule.
|
CreateNetworkAclEntryRequest.Builder |
networkAclId(String networkAclId)
The ID of the network ACL.
|
CreateNetworkAclEntryRequest.Builder |
policy(String policy)
The action that is performed on network traffic that matches the rule.
|
CreateNetworkAclEntryRequest.Builder |
portRange(String portRange)
The port range.
|
CreateNetworkAclEntryRequest.Builder |
priority(Integer priority)
The priority of the rule.
|
CreateNetworkAclEntryRequest.Builder |
protocol(String protocol)
The protocol.
|
public CreateNetworkAclEntryRequest.Builder cidrBlock(String cidrBlock)
public CreateNetworkAclEntryRequest.Builder description(String description)
The description must be 1 to 256 characters in length and cannot start with http:// or https://.
public CreateNetworkAclEntryRequest.Builder direction(String direction)
* **ingress** * **egress**
public CreateNetworkAclEntryRequest.Builder networkAclEntryName(String networkAclEntryName)
The name must be 1 to 128 characters in length and cannot start with http:// or https://.
public CreateNetworkAclEntryRequest.Builder networkAclId(String networkAclId)
public CreateNetworkAclEntryRequest.Builder policy(String policy)
* **accept**: allows network traffic. * **drop**: blocks network traffic.
public CreateNetworkAclEntryRequest.Builder portRange(String portRange)
* If you set **Protocol** to **all** or **icmp**, set this parameter to -1/-1, which specifies all ports. * If you set **Protocol** to **tcp** or **udp**, the port can be **1 to 65535**. You can set this parameter to **1/200** or **80/80**, which specifies ports 1 to 200 or port 80.
public CreateNetworkAclEntryRequest.Builder priority(Integer priority)
public CreateNetworkAclEntryRequest.Builder protocol(String protocol)
* **icmp**: ICMP * **tcp**: TCP * **udp**: UDP * **all**: all protocols
public CreateNetworkAclEntryRequest build()
Copyright © 2024. All rights reserved.