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 Details

    • 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

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

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

      Parameters:
      portRange - a consumer that will call methods on PortRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 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:
    • 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 specify 100.68.0.18/18, we modify it to 100.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 specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
      Returns:
      Returns a reference to this object so that method calls can be chained together.