Class IngressRule

java.lang.Object
org.jclouds.cloudstack.domain.IngressRule
All Implemented Interfaces:
Comparable<IngressRule>

public class IngressRule extends Object implements Comparable<IngressRule>
  • Constructor Details

  • Method Details

    • builder

      public static IngressRule.Builder<?> builder()
    • toBuilder

      public IngressRule.Builder<?> toBuilder()
    • getAccount

      @Nullable public String getAccount()
      Returns:
      account owning the ingress rule
    • getCIDR

      @Nullable public String getCIDR()
      Returns:
      the CIDR notation for the base IP address of the ingress rule
    • getEndPort

      public int getEndPort()
      Returns:
      the ending IP of the ingress rule
    • getICMPCode

      public int getICMPCode()
      Returns:
      the code for the ICMP message response
    • getICMPType

      public int getICMPType()
      Returns:
      the type of the ICMP message response
    • getProtocol

      @Nullable public String getProtocol()
      Returns:
      the protocol of the ingress rule
    • getId

      public String getId()
      Returns:
      the id of the ingress rule
    • getSecurityGroupName

      @Nullable public String getSecurityGroupName()
      Returns:
      security group name
    • getStartPort

      public int getStartPort()
      Returns:
      the starting IP of the ingress rule
    • getTags

      @Nullable public Set<Tag> getTags()
      Returns:
      Tags on this rule
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(IngressRule o)
      Specified by:
      compareTo in interface Comparable<IngressRule>