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 class
LoadBalancerRule.Algorithm
static class
LoadBalancerRule.Builder<T extends LoadBalancerRule.Builder<T>>
static class
LoadBalancerRule.State
-
Constructor Summary
Constructors Modifier Constructor Description 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerRule.Builder<?>
builder()
boolean
equals(Object obj)
String
getAccount()
LoadBalancerRule.Algorithm
getAlgorithm()
Set<String>
getCIDRs()
String
getDescription()
String
getDomain()
String
getDomainId()
String
getId()
String
getName()
int
getPrivatePort()
String
getPublicIP()
String
getPublicIPId()
int
getPublicPort()
LoadBalancerRule.State
getState()
String
getZoneId()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
LoadBalancerRule.Builder<?>
toBuilder()
String
toString()
-
-
-
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()
-
-