Package org.jclouds.cloudstack.domain
Class LoadBalancerRule
- java.lang.Object
-
- org.jclouds.cloudstack.domain.LoadBalancerRule
-
public class LoadBalancerRule extends Object
Class LoadBalancerRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadBalancerRule.Algorithmstatic classLoadBalancerRule.Builder<T extends LoadBalancerRule.Builder<T>>static classLoadBalancerRule.State
-
Constructor Summary
Constructors Modifier Constructor Description protectedLoadBalancerRule(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerRule.Builder<?>builder()booleanequals(Object obj)StringgetAccount()LoadBalancerRule.AlgorithmgetAlgorithm()Set<String>getCIDRs()StringgetDescription()StringgetDomain()StringgetDomainId()StringgetId()StringgetName()intgetPrivatePort()StringgetPublicIP()StringgetPublicIPId()intgetPublicPort()LoadBalancerRule.StategetState()StringgetZoneId()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()LoadBalancerRule.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
builder
public static LoadBalancerRule.Builder<?> builder()
-
toBuilder
public LoadBalancerRule.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the load balancer rule ID
-
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
-
getPrivatePort
public int getPrivatePort()
- Returns:
- the private port
-
getPublicPort
public int getPublicPort()
- Returns:
- the public port
-
getState
@Nullable public LoadBalancerRule.State getState()
- Returns:
- the state of the rule
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-