Class Rule

  • Direct Known Subclasses:
    Rule.CreateRule

    public class Rule
    extends Object
    Contains a mapping between a MAC address and an IP address.
    • Method Detail

      • getId

        @Nullable
        public String getId()
        Returns:
        The identifier for this rule.
      • getTenantId

        @Nullable
        public String getTenantId()
        Returns:
        The identifier of the tenant for this rule.
      • getDirection

        @Nullable
        public RuleDirection getDirection()
        Returns:
        The direction in which the security group rule is applied.
      • getSecurityGroupId

        @Nullable
        public String getSecurityGroupId()
        Returns:
        The security group ID to associate with this security group rule.
      • getEthertype

        @Nullable
        public RuleEthertype getEthertype()
        Returns:
        The internet protocol version type of this rule.
      • getPortRangeMin

        @Nullable
        public Integer getPortRangeMin()
        Returns:
        The minimum port number in the range that is matched by the security group rule. If the protocol is TCP or UDP, this value must be less than or equal to the value of the port_range_max attribute. If the protocol is ICMP, this value must be an ICMP type.
      • getPortRangeMax

        @Nullable
        public Integer getPortRangeMax()
        Returns:
        The maximum port number in the range that is matched by the security group rule. The port_range_min attribute constrains the port_range_max attribute. If the protocol is ICMP, this value must be an ICMP type.
      • getProtocol

        @Nullable
        public RuleProtocol getProtocol()
        Returns:
        The protocol that is matched by the security group rule. Valid values are null, tcp, udp, and icmp.
      • getRemoteGroupId

        @Nullable
        public String getRemoteGroupId()
        Returns:
        The remote group ID to be associated with this security group rule.
      • getRemoteIpPrefix

        @Nullable
        public String getRemoteIpPrefix()
        Returns:
        The remote IP prefix to be associated with this security group rule. This attribute matches the specified IP prefix as the source IP address of the IP packet.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object