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.default NetworkACLEntry.BuildericmpTypeCode(Consumer<IcmpTypeCode.Builder> icmpTypeCode)Defines the ICMP protocol that consists of the ICMP type and code.NetworkACLEntry.BuildericmpTypeCode(IcmpTypeCode icmpTypeCode)Defines the ICMP protocol that consists of the ICMP type and code.default NetworkACLEntry.BuilderportRange(Consumer<PortRange.Builder> portRange)The range of ports the rule applies to.NetworkACLEntry.BuilderportRange(PortRange portRange)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(RuleAction ruleAction)Indicates whether to allow or deny the traffic that matches the rule.NetworkACLEntry.BuilderruleNumber(Integer ruleNumber)The rule number for the entry.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
ruleNumber
NetworkACLEntry.Builder ruleNumber(Integer ruleNumber)
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
- Parameters:
ruleNumber- The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
NetworkACLEntry.Builder protocol(String protocol)
The protocol number. A value of -1 means all the protocols.
- Parameters:
protocol- The protocol number. A value of -1 means all the protocols.- 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:
RuleAction,RuleAction
-
ruleAction
NetworkACLEntry.Builder ruleAction(RuleAction 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:
RuleAction,RuleAction
-
portRange
NetworkACLEntry.Builder portRange(PortRange portRange)
The range of ports the rule applies to.
- Parameters:
portRange- 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<PortRange.Builder> portRange)
The range of ports the rule applies to.
This is a convenience method that creates an instance of thePortRange.Builderavoiding the need to create one manually viaPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(PortRange).- Parameters:
portRange- a consumer that will call methods onPortRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
portRange(PortRange)
-
icmpTypeCode
NetworkACLEntry.Builder icmpTypeCode(IcmpTypeCode icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
- Parameters:
icmpTypeCode- Defines the ICMP protocol that consists of 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<IcmpTypeCode.Builder> icmpTypeCode)
Defines the ICMP protocol that consists of the ICMP type and code.
This is a convenience method that creates an instance of theIcmpTypeCode.Builderavoiding the need to create one manually viaIcmpTypeCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toicmpTypeCode(IcmpTypeCode).- Parameters:
icmpTypeCode- a consumer that will call methods onIcmpTypeCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
icmpTypeCode(IcmpTypeCode)
-
cidrBlock
NetworkACLEntry.Builder cidrBlock(String cidrBlock)
The IPv4 network range to allow or deny, in CIDR notation. For example,
172.16.0.0/24. We modify the specified CIDR block to its canonical form. For example, if you specify100.68.0.18/18, we modify it to100.68.0.0/18.- Parameters:
cidrBlock- The IPv4 network range to allow or deny, in CIDR notation. For example,172.16.0.0/24. We modify the specified CIDR block to its canonical form. For example, if you specify100.68.0.18/18, we modify it to100.68.0.0/18.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-