Class CreateLoadBalancer.Builder
- java.lang.Object
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.CreateLoadBalancer.Builder
-
- Enclosing class:
- CreateLoadBalancer
public static class CreateLoadBalancer.Builder extends BaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
-
Field Summary
-
Fields inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Builder
algorithm, connectionLogging, connectionThrottle, halfClosed, healthMonitor, name, nodes, port, protocol, sessionPersistence, timeout
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLoadBalancer.Builder
accessRules(Iterable<AccessRule> accessRules)
The access list management feature allows fine-grained network access controls to be applied to the load balancer's virtual IP address.CreateLoadBalancer.Builder
algorithm(BaseLoadBalancer.Algorithm algorithm)
Algorithm that defines how traffic should be directed between back-end nodes.CreateLoadBalancer
build()
CreateLoadBalancer.Builder
from(CreateLoadBalancer in)
CreateLoadBalancer.Builder
metadata(Map<String,String> metadata)
Information (metadata) that can be associated with each load balancer for the client's personal use.CreateLoadBalancer.Builder
name(String name)
Required.CreateLoadBalancer.Builder
node(AddNode node)
CreateLoadBalancer.Builder
nodes(Iterable<AddNode> addNodes)
Required.CreateLoadBalancer.Builder
port(Integer port)
Required if the protocol being used is not inReportApi#listProtocols()
or the protocol is inReportApi#listProtocols()
but port=0.CreateLoadBalancer.Builder
protocol(String protocol)
Required.CreateLoadBalancer.Builder
virtualIPId(Integer virtualIPId)
CreateLoadBalancer.Builder
virtualIPType(VirtualIP.Type virtualIPType)
-
Methods inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Builder
connectionLogging, connectionThrottle, halfClosed, healthMonitor, sessionPersistenceType, timeout
-
-
-
-
Method Detail
-
virtualIPId
public CreateLoadBalancer.Builder virtualIPId(Integer virtualIPId)
- See Also:
VirtualIP
-
virtualIPType
public CreateLoadBalancer.Builder virtualIPType(VirtualIP.Type virtualIPType)
- See Also:
VirtualIP
-
accessRules
public CreateLoadBalancer.Builder accessRules(Iterable<AccessRule> accessRules)
The access list management feature allows fine-grained network access controls to be applied to the load balancer's virtual IP address.- See Also:
AccessRule
-
metadata
public CreateLoadBalancer.Builder metadata(Map<String,String> metadata)
Information (metadata) that can be associated with each load balancer for the client's personal use.
-
build
public CreateLoadBalancer build()
- Overrides:
build
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
nodes
public CreateLoadBalancer.Builder nodes(Iterable<AddNode> addNodes)
Required. Nodes to be added to the load balancer.- Overrides:
nodes
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
node
public CreateLoadBalancer.Builder node(AddNode node)
- Overrides:
node
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
algorithm
public CreateLoadBalancer.Builder algorithm(BaseLoadBalancer.Algorithm algorithm)
Algorithm that defines how traffic should be directed between back-end nodes.- Overrides:
algorithm
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
- See Also:
BaseLoadBalancer.Algorithm
-
name
public CreateLoadBalancer.Builder name(String name)
Required. Name of the load balancer to create. The name must be 128 characters or less in length, and all UTF-8 characters are valid.- Overrides:
name
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
port
public CreateLoadBalancer.Builder port(Integer port)
Required if the protocol being used is not inReportApi#listProtocols()
or the protocol is inReportApi#listProtocols()
but port=0. Port number for the service you are load balancing.- Overrides:
port
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
protocol
public CreateLoadBalancer.Builder protocol(String protocol)
Required. Protocol of the service which is being load balanced.- Overrides:
protocol
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
- See Also:
ReportApi#listProtocols()
-
from
public CreateLoadBalancer.Builder from(CreateLoadBalancer in)
- Overrides:
from
in classBaseLoadBalancer.Builder<AddNode,CreateLoadBalancer>
-
-