Interface IpPermission.Builder

All Superinterfaces:
Buildable, CopyableBuilder<IpPermission.Builder,IpPermission>, SdkBuilder<IpPermission.Builder,IpPermission>, SdkPojo
Enclosing class:
IpPermission

public static interface IpPermission.Builder extends SdkPojo, CopyableBuilder<IpPermission.Builder,IpPermission>
  • Method Details

    • fromPort

      IpPermission.Builder fromPort(Integer fromPort)

      If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.

      Parameters:
      fromPort - If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipProtocol

      IpPermission.Builder ipProtocol(String ipProtocol)

      The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

      Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

      Parameters:
      ipProtocol - The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

      Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipRanges

      The IPv4 ranges.

      Parameters:
      ipRanges - The IPv4 ranges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipRanges

      IpPermission.Builder ipRanges(IpRange... ipRanges)

      The IPv4 ranges.

      Parameters:
      ipRanges - The IPv4 ranges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipRanges

      The IPv4 ranges.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ipRanges(List<IpRange>).

      Parameters:
      ipRanges - a consumer that will call methods on IpRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipv6Ranges

      IpPermission.Builder ipv6Ranges(Collection<Ipv6Range> ipv6Ranges)

      The IPv6 ranges.

      Parameters:
      ipv6Ranges - The IPv6 ranges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipv6Ranges

      IpPermission.Builder ipv6Ranges(Ipv6Range... ipv6Ranges)

      The IPv6 ranges.

      Parameters:
      ipv6Ranges - The IPv6 ranges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipv6Ranges

      IpPermission.Builder ipv6Ranges(Consumer<Ipv6Range.Builder>... ipv6Ranges)

      The IPv6 ranges.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ipv6Ranges(List<Ipv6Range>).

      Parameters:
      ipv6Ranges - a consumer that will call methods on Ipv6Range.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • prefixListIds

      IpPermission.Builder prefixListIds(Collection<PrefixListId> prefixListIds)

      The prefix list IDs.

      Parameters:
      prefixListIds - The prefix list IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prefixListIds

      IpPermission.Builder prefixListIds(PrefixListId... prefixListIds)

      The prefix list IDs.

      Parameters:
      prefixListIds - The prefix list IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prefixListIds

      IpPermission.Builder prefixListIds(Consumer<PrefixListId.Builder>... prefixListIds)

      The prefix list IDs.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to prefixListIds(List<PrefixListId>).

      Parameters:
      prefixListIds - a consumer that will call methods on PrefixListId.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • toPort

      IpPermission.Builder toPort(Integer toPort)

      If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.

      Parameters:
      toPort - If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userIdGroupPairs

      IpPermission.Builder userIdGroupPairs(Collection<UserIdGroupPair> userIdGroupPairs)

      The security group and Amazon Web Services account ID pairs.

      Parameters:
      userIdGroupPairs - The security group and Amazon Web Services account ID pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userIdGroupPairs

      IpPermission.Builder userIdGroupPairs(UserIdGroupPair... userIdGroupPairs)

      The security group and Amazon Web Services account ID pairs.

      Parameters:
      userIdGroupPairs - The security group and Amazon Web Services account ID pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userIdGroupPairs

      IpPermission.Builder userIdGroupPairs(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)

      The security group and Amazon Web Services account ID pairs.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to userIdGroupPairs(List<UserIdGroupPair>).

      Parameters:
      userIdGroupPairs - a consumer that will call methods on UserIdGroupPair.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: