org.jclouds.cloudstack.domain
Class LoadBalancerRule
java.lang.Object
org.jclouds.cloudstack.domain.LoadBalancerRule
public class LoadBalancerRule
- extends Object
Class LoadBalancerRule
- Author:
- Adrian Cole
|
Constructor Summary |
protected |
LoadBalancerRule(String id,
String account,
LoadBalancerRule.Algorithm algorithm,
String description,
String domain,
String domainId,
String name,
int privatePort,
String publicIP,
String publicIPId,
int publicPort,
LoadBalancerRule.State state,
Iterable<String> CIDRs,
String zoneId)
|
LoadBalancerRule
protected LoadBalancerRule(String id,
@Nullable
String account,
@Nullable
LoadBalancerRule.Algorithm algorithm,
@Nullable
String description,
@Nullable
String domain,
@Nullable
String domainId,
@Nullable
String name,
int privatePort,
@Nullable
String publicIP,
@Nullable
String publicIPId,
int publicPort,
@Nullable
LoadBalancerRule.State state,
@Nullable
Iterable<String> CIDRs,
@Nullable
String zoneId)
builder
public static LoadBalancerRule.Builder<?> builder()
toBuilder
public LoadBalancerRule.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- the load balancer rule ID
getAccount
@Nullable
public String getAccount()
- Returns:
- the account of the load balancer rule
getAlgorithm
@Nullable
public LoadBalancerRule.Algorithm getAlgorithm()
- Returns:
- the load balancer algorithm (source, roundrobin, leastconn)
getDescription
@Nullable
public String getDescription()
- Returns:
- the description of the load balancer
getDomain
@Nullable
public String getDomain()
- Returns:
- the domain of the load balancer rule
getDomainId
@Nullable
public String getDomainId()
- Returns:
- the domain ID of the load balancer rule
getName
@Nullable
public String getName()
- Returns:
- the name of the load balancer
getPrivatePort
public int getPrivatePort()
- Returns:
- the private port
getPublicIP
@Nullable
public String getPublicIP()
- Returns:
- the public ip address
getPublicIPId
@Nullable
public String getPublicIPId()
- Returns:
- the public ip address id
getPublicPort
public int getPublicPort()
- Returns:
- the public port
getState
@Nullable
public LoadBalancerRule.State getState()
- Returns:
- the state of the rule
getCIDRs
public Set<String> getCIDRs()
- Returns:
- the cidr list to forward traffic from
getZoneId
@Nullable
public String getZoneId()
- Returns:
- the id of the zone the rule beStrings to
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.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.