Class LoadBalancer.Builder
- java.lang.Object
-
- org.jclouds.rackspace.autoscale.v1.domain.LoadBalancer.Builder
-
- Enclosing class:
- LoadBalancer
public static class LoadBalancer.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancer
build()
LoadBalancer.Builder
fromLoadBalancer(LoadBalancer in)
LoadBalancer.Builder
id(int id)
Required.LoadBalancer.Builder
port(int port)
Required.
-
-
-
Method Detail
-
port
public LoadBalancer.Builder port(int port)
Required. The port number of the service (on the new servers) to use for this particular load balancer. In most cases, this port number is 80. NOTE that when using RackConnectV3, instead of a cloud load balancer, leave this parameter empty.- Parameters:
port
- The port of this LoadBalancer.- Returns:
- The builder object.
- See Also:
LoadBalancer.getPort()
-
id
public LoadBalancer.Builder id(int id)
Required. The ID of the cloud load balancer, or RackConnectV3 load balancer pool, to which new servers are added. For cloud load balancers set the ID as an integer, for RackConnectV3 set the UUID as a string. NOTE that when using RackConnectV3, this value is supplied to you by Rackspace Support after they configure your load balancer pool.- Parameters:
id
- The id of this LoadBalancer.- Returns:
- The builder object.
- See Also:
LoadBalancer.getId()
-
build
public LoadBalancer build()
- Returns:
- A new LoadBalancer object.
-
fromLoadBalancer
public LoadBalancer.Builder fromLoadBalancer(LoadBalancer in)
-
-