org.jclouds.cloudstack.domain
Class LoadBalancerRule

java.lang.Object
  extended by org.jclouds.cloudstack.domain.LoadBalancerRule
All Implemented Interfaces:
Comparable<LoadBalancerRule>

public class LoadBalancerRule
extends Object
implements Comparable<LoadBalancerRule>

Author:
Adrian Cole

Nested Class Summary
static class LoadBalancerRule.Algorithm
           
static class LoadBalancerRule.Builder
           
static class LoadBalancerRule.State
           
 
Constructor Summary
LoadBalancerRule(long id, String account, LoadBalancerRule.Algorithm algorithm, String description, String domain, long domainId, String name, int privatePort, String publicIP, long publicIPId, int publicPort, LoadBalancerRule.State state, long zoneId, Set<String> CIDRs)
           
 
Method Summary
static LoadBalancerRule.Builder builder()
           
 int compareTo(LoadBalancerRule arg0)
           
 boolean equals(Object obj)
           
 String getAccount()
           
 LoadBalancerRule.Algorithm getAlgorithm()
           
 Set<String> getCIDRs()
           
 String getDescription()
           
 String getDomain()
           
 long getDomainId()
           
 long getId()
           
 String getName()
           
 int getPrivatePort()
           
 String getPublicIP()
           
 long getPublicIPId()
           
 int getPublicPort()
           
 LoadBalancerRule.State getState()
           
 long getZoneId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoadBalancerRule

public LoadBalancerRule(long id,
                        String account,
                        LoadBalancerRule.Algorithm algorithm,
                        String description,
                        String domain,
                        long domainId,
                        String name,
                        int privatePort,
                        String publicIP,
                        long publicIPId,
                        int publicPort,
                        LoadBalancerRule.State state,
                        long zoneId,
                        Set<String> CIDRs)
Method Detail

builder

public static LoadBalancerRule.Builder builder()

getId

public long getId()
Returns:
the load balancer rule ID

getAccount

public String getAccount()
Returns:
the account of the load balancer rule

getAlgorithm

public LoadBalancerRule.Algorithm getAlgorithm()
Returns:
the load balancer algorithm (source, roundrobin, leastconn)

getDescription

public String getDescription()
Returns:
the description of the load balancer

getDomain

public String getDomain()
Returns:
the domain of the load balancer rule

getDomainId

public long getDomainId()
Returns:
the domain ID of the load balancer rule

getName

public String getName()
Returns:
the name of the load balancer

getPrivatePort

public int getPrivatePort()
Returns:
the private port

getPublicIP

public String getPublicIP()
Returns:
the public ip address

getPublicIPId

public long getPublicIPId()
Returns:
the public ip address id

getPublicPort

public int getPublicPort()
Returns:
the public port

getState

public LoadBalancerRule.State getState()
Returns:
the state of the rule

getCIDRs

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

getZoneId

public long getZoneId()
Returns:
the id of the zone the rule belongs to

compareTo

public int compareTo(LoadBalancerRule arg0)
Specified by:
compareTo in interface Comparable<LoadBalancerRule>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.