Interface SecurityGroupRuleRequest.Builder

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

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

    • ipProtocol

      SecurityGroupRuleRequest.Builder ipProtocol(String ipProtocol)

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

      Use -1 to specify all protocols.

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

      Use -1 to specify all protocols.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 ICMP type or -1 (all ICMP types).

      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 ICMP type or -1 (all ICMP types).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP 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 ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cidrIpv4

      The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

      Parameters:
      cidrIpv4 - The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cidrIpv6

      The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

      Parameters:
      cidrIpv6 - The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prefixListId

      SecurityGroupRuleRequest.Builder prefixListId(String prefixListId)

      The ID of the prefix list.

      Parameters:
      prefixListId - The ID of the prefix list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • referencedGroupId

      SecurityGroupRuleRequest.Builder referencedGroupId(String referencedGroupId)

      The ID of the security group that is referenced in the security group rule.

      Parameters:
      referencedGroupId - The ID of the security group that is referenced in the security group rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      SecurityGroupRuleRequest.Builder description(String description)

      The description of the security group rule.

      Parameters:
      description - The description of the security group rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.