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 Details

    • 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

      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 the IcmpTypeCode.Builder avoiding the need to create one manually via IcmpTypeCode.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to icmpTypeCode(IcmpTypeCode).

      Parameters:
      icmpTypeCode - a consumer that will call methods on IcmpTypeCode.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      For TCP or UDP protocols, the range of ports that the rule applies to.

      This is a convenience method that creates an instance of the PortRangeFromTo.Builder avoiding the need to create one manually via PortRangeFromTo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to portRange(PortRangeFromTo).

      Parameters:
      portRange - a consumer that will call methods on PortRangeFromTo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.