Interface NetworkAclEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkAclEntry.Builder,NetworkAclEntry>,SdkBuilder<NetworkAclEntry.Builder,NetworkAclEntry>,SdkPojo
- Enclosing class:
- NetworkAclEntry
public static interface NetworkAclEntry.Builder extends SdkPojo, CopyableBuilder<NetworkAclEntry.Builder,NetworkAclEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NetworkAclEntry.BuildercidrBlock(String cidrBlock)The IPv4 network range to allow or deny, in CIDR notation.NetworkAclEntry.Builderegress(Boolean egress)Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet).default NetworkAclEntry.BuildericmpTypeCode(Consumer<NetworkAclIcmpTypeCode.Builder> icmpTypeCode)ICMP protocol: The ICMP type and code.NetworkAclEntry.BuildericmpTypeCode(NetworkAclIcmpTypeCode icmpTypeCode)ICMP protocol: The ICMP type and code.NetworkAclEntry.Builderipv6CidrBlock(String ipv6CidrBlock)The IPv6 network range to allow or deny, in CIDR notation.default NetworkAclEntry.BuilderportRange(Consumer<NetworkAclPortRange.Builder> portRange)TCP or UDP protocols: The range of ports the rule applies to.NetworkAclEntry.BuilderportRange(NetworkAclPortRange portRange)TCP or UDP protocols: The range of ports the rule applies to.NetworkAclEntry.Builderprotocol(String protocol)The protocol number.NetworkAclEntry.BuilderruleAction(String ruleAction)Indicates whether to allow or deny the traffic that matches the rule.NetworkAclEntry.BuilderruleAction(NetworkAclRuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
icmpTypeCode
NetworkAclEntry.Builder icmpTypeCode(NetworkAclIcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.
- Parameters:
icmpTypeCode- ICMP protocol: The ICMP type and code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
default NetworkAclEntry.Builder icmpTypeCode(Consumer<NetworkAclIcmpTypeCode.Builder> icmpTypeCode)
ICMP protocol: The ICMP type and code.
This is a convenience method that creates an instance of theNetworkAclIcmpTypeCode.Builderavoiding the need to create one manually viaNetworkAclIcmpTypeCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toicmpTypeCode(NetworkAclIcmpTypeCode).- Parameters:
icmpTypeCode- a consumer that will call methods onNetworkAclIcmpTypeCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
icmpTypeCode(NetworkAclIcmpTypeCode)
-
protocol
NetworkAclEntry.Builder protocol(String protocol)
The protocol number. A value of "-1" means all protocols.
- Parameters:
protocol- The protocol number. A value of "-1" means all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
NetworkAclEntry.Builder portRange(NetworkAclPortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.
- Parameters:
portRange- TCP or UDP protocols: The range of ports the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
default NetworkAclEntry.Builder portRange(Consumer<NetworkAclPortRange.Builder> portRange)
TCP or UDP protocols: The range of ports the rule applies to.
This is a convenience method that creates an instance of theNetworkAclPortRange.Builderavoiding the need to create one manually viaNetworkAclPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(NetworkAclPortRange).- Parameters:
portRange- a consumer that will call methods onNetworkAclPortRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
portRange(NetworkAclPortRange)
-
cidrBlock
NetworkAclEntry.Builder cidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock- The IPv4 network range to allow or deny, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlock
NetworkAclEntry.Builder ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 network range to allow or deny, in CIDR notation.
- Parameters:
ipv6CidrBlock- The IPv6 network range to allow or deny, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
NetworkAclEntry.Builder ruleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkAclRuleAction,NetworkAclRuleAction
-
ruleAction
NetworkAclEntry.Builder ruleAction(NetworkAclRuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkAclRuleAction,NetworkAclRuleAction
-
egress
NetworkAclEntry.Builder egress(Boolean egress)
Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule.
- Parameters:
egress- Indicates whether the rule is an egress, or outbound, rule (applied to traffic leaving the subnet). If it's not an egress rule, then it's an ingress, or inbound, rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-