Class IPForwardingRule

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

public class IPForwardingRule extends Object implements Comparable<IPForwardingRule>
Class IPForwardingRule
  • Constructor Details

  • Method Details

    • builder

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

      public IPForwardingRule.Builder<?> toBuilder()
    • getId

      public String getId()
      Returns:
      the ID of the ip forwarding rule
    • getIPAddress

      @Nullable public String getIPAddress()
      Returns:
      the public ip address for the ip forwarding rule
    • getIPAddressId

      @Nullable public String getIPAddressId()
      Returns:
      the public ip address id for the ip forwarding rule
    • getStartPort

      public int getStartPort()
      Returns:
      the private port for the ip forwarding rule
    • getProtocol

      @Nullable public String getProtocol()
      Returns:
      the protocol of the ip forwarding rule
    • getEndPort

      public int getEndPort()
      Returns:
      the public port for the ip forwarding rule
    • getState

      @Nullable public String getState()
      Returns:
      the state of the rule
    • getVirtualMachineDisplayName

      @Nullable public String getVirtualMachineDisplayName()
      Returns:
      the VM display name for the ip forwarding rule
    • getVirtualMachineId

      @Nullable public String getVirtualMachineId()
      Returns:
      the VM ID for the ip forwarding rule
    • getVirtualMachineName

      @Nullable public String getVirtualMachineName()
      Returns:
      the VM name for the ip forwarding rule
    • getPublicPort

      public int getPublicPort()
      Returns:
      the starting port of port forwarding rule's public port range
    • getCIDRs

      public Set<String> getCIDRs()
      Returns:
      the cidr list to forward traffic from
    • getPrivateEndPort

      public int getPrivateEndPort()
      Returns:
      the ending port of port forwarding rule's private port range
    • getPublicEndPort

      public int getPublicEndPort()
      Returns:
      the ending port of port forwarding rule's private port range
    • 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(IPForwardingRule o)
      Specified by:
      compareTo in interface Comparable<IPForwardingRule>