org.jclouds.cloudstack.domain
Class LoadBalancerRule
java.lang.Object
org.jclouds.cloudstack.domain.LoadBalancerRule
- All Implemented Interfaces:
- Comparable<LoadBalancerRule>
public class LoadBalancerRule
- extends Object
- implements Comparable<LoadBalancerRule>
- Author:
- Adrian Cole
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)
|
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)
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.