Package org.jclouds.cloudstack.domain
Class LoadBalancerRule
java.lang.Object
org.jclouds.cloudstack.domain.LoadBalancerRule
Class LoadBalancerRule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
LoadBalancerRule.Builder<T extends LoadBalancerRule.Builder<T>>
static enum
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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) -
Method Summary
-
Constructor Details
-
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)
-
-
Method Details
-
builder
-
toBuilder
-
getId
- Returns:
- the load balancer rule ID
-
getAccount
- Returns:
- the account of the load balancer rule
-
getAlgorithm
- Returns:
- the load balancer algorithm (source, roundrobin, leastconn)
-
getDescription
- Returns:
- the description of the load balancer
-
getDomain
- Returns:
- the domain of the load balancer rule
-
getDomainId
- Returns:
- the domain ID of the load balancer rule
-
getName
- Returns:
- the name of the load balancer
-
getPrivatePort
public int getPrivatePort()- Returns:
- the private port
-
getPublicIP
- Returns:
- the public ip address
-
getPublicIPId
- Returns:
- the public ip address id
-
getPublicPort
public int getPublicPort()- Returns:
- the public port
-
getState
- Returns:
- the state of the rule
-
getCIDRs
- Returns:
- the cidr list to forward traffic from
-
getZoneId
- Returns:
- the id of the zone the rule beStrings to
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-