Interface AwsEc2NetworkAclEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2NetworkAclEntry.Builder,AwsEc2NetworkAclEntry>,SdkBuilder<AwsEc2NetworkAclEntry.Builder,AwsEc2NetworkAclEntry>,SdkPojo
- Enclosing class:
- AwsEc2NetworkAclEntry
public static interface AwsEc2NetworkAclEntry.Builder extends SdkPojo, CopyableBuilder<AwsEc2NetworkAclEntry.Builder,AwsEc2NetworkAclEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsEc2NetworkAclEntry.BuildercidrBlock(String cidrBlock)The IPV4 network range for which to deny or allow access.AwsEc2NetworkAclEntry.Builderegress(Boolean egress)Whether the rule is an egress rule.default AwsEc2NetworkAclEntry.BuildericmpTypeCode(Consumer<IcmpTypeCode.Builder> icmpTypeCode)The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.AwsEc2NetworkAclEntry.BuildericmpTypeCode(IcmpTypeCode icmpTypeCode)The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.AwsEc2NetworkAclEntry.Builderipv6CidrBlock(String ipv6CidrBlock)The IPV6 network range for which to deny or allow access.default AwsEc2NetworkAclEntry.BuilderportRange(Consumer<PortRangeFromTo.Builder> portRange)For TCP or UDP protocols, the range of ports that the rule applies to.AwsEc2NetworkAclEntry.BuilderportRange(PortRangeFromTo portRange)For TCP or UDP protocols, the range of ports that the rule applies to.AwsEc2NetworkAclEntry.Builderprotocol(String protocol)The protocol that the rule applies to.AwsEc2NetworkAclEntry.BuilderruleAction(String ruleAction)Whether the rule is used to allow access or deny access.AwsEc2NetworkAclEntry.BuilderruleNumber(Integer ruleNumber)The rule number.-
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
-
cidrBlock
AwsEc2NetworkAclEntry.Builder cidrBlock(String cidrBlock)
The IPV4 network range for which to deny or allow access.
- Parameters:
cidrBlock- The IPV4 network range for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egress
AwsEc2NetworkAclEntry.Builder egress(Boolean egress)
Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
- Parameters:
egress- Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
AwsEc2NetworkAclEntry.Builder icmpTypeCode(IcmpTypeCode icmpTypeCode)
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
- Parameters:
icmpTypeCode- The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
icmpTypeCode
default AwsEc2NetworkAclEntry.Builder icmpTypeCode(Consumer<IcmpTypeCode.Builder> icmpTypeCode)
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
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)
-
ipv6CidrBlock
AwsEc2NetworkAclEntry.Builder ipv6CidrBlock(String ipv6CidrBlock)
The IPV6 network range for which to deny or allow access.
- Parameters:
ipv6CidrBlock- The IPV6 network range for which to deny or allow access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
AwsEc2NetworkAclEntry.Builder portRange(PortRangeFromTo portRange)
For TCP or UDP protocols, the range of ports that the rule applies to.
- Parameters:
portRange- For TCP or UDP protocols, the range of ports that the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRange
default AwsEc2NetworkAclEntry.Builder portRange(Consumer<PortRangeFromTo.Builder> portRange)
For TCP or UDP protocols, the range of ports that the rule applies to.
This is a convenience method that creates an instance of thePortRangeFromTo.Builderavoiding the need to create one manually viaPortRangeFromTo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportRange(PortRangeFromTo).- Parameters:
portRange- a consumer that will call methods onPortRangeFromTo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
portRange(PortRangeFromTo)
-
protocol
AwsEc2NetworkAclEntry.Builder protocol(String protocol)
The protocol that the rule applies to. To deny or allow access to all protocols, use the value
-1.- Parameters:
protocol- The protocol that the rule applies to. To deny or allow access to all protocols, use the value-1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
AwsEc2NetworkAclEntry.Builder ruleAction(String ruleAction)
Whether the rule is used to allow access or deny access.
- Parameters:
ruleAction- Whether the rule is used to allow access or deny access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleNumber
AwsEc2NetworkAclEntry.Builder ruleNumber(Integer ruleNumber)
The rule number. The rules are processed in order by their number.
- Parameters:
ruleNumber- The rule number. The rules are processed in order by their number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-