@Stability(value=Stable) public static final class AclTrafficConfig.Builder extends Object implements software.amazon.jsii.Builder<AclTrafficConfig>
AclTrafficConfig| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AclTrafficConfig |
build()
Builds the configured instance.
|
AclTrafficConfig.Builder |
icmp(AclIcmp icmp)
Sets the value of
AclTrafficConfig.getIcmp() |
AclTrafficConfig.Builder |
portRange(AclPortRange portRange)
Sets the value of
AclTrafficConfig.getPortRange() |
AclTrafficConfig.Builder |
protocol(Number protocol)
Sets the value of
AclTrafficConfig.getProtocol() |
@Stability(value=Stable) public AclTrafficConfig.Builder protocol(Number protocol)
AclTrafficConfig.getProtocol()protocol - The protocol number. This parameter is required.
A value of "-1" means all protocols.
If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify.
If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.
this@Stability(value=Stable) public AclTrafficConfig.Builder icmp(AclIcmp icmp)
AclTrafficConfig.getIcmp()icmp - The Internet Control Message Protocol (ICMP) code and type.this@Stability(value=Stable) public AclTrafficConfig.Builder portRange(AclPortRange portRange)
AclTrafficConfig.getPortRange()portRange - The range of port numbers for the UDP/TCP protocol.this@Stability(value=Stable) public AclTrafficConfig build()
build in interface software.amazon.jsii.Builder<AclTrafficConfig>AclTrafficConfigNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.