Class AddNode.Builder
- java.lang.Object
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseNode.Builder<AddNode>
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.AddNode.Builder
-
- Enclosing class:
- AddNode
public static class AddNode.Builder extends BaseNode.Builder<AddNode>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddNode.Builder
address(String address)
Required.AddNode
build()
AddNode.Builder
condition(BaseNode.Condition condition)
Required.AddNode.Builder
from(AddNode in)
AddNode.Builder
port(int port)
Required.AddNode.Builder
type(BaseNode.Type type)
Type of node to add.AddNode.Builder
weight(Integer weight)
Weight of node to add.
-
-
-
Method Detail
-
address
public AddNode.Builder address(String address)
Required. IP address or domain name for the node.- Overrides:
address
in classBaseNode.Builder<AddNode>
-
condition
public AddNode.Builder condition(BaseNode.Condition condition)
Required. Condition for the node, which determines its role within the load balancer.- Overrides:
condition
in classBaseNode.Builder<AddNode>
- See Also:
BaseNode.Condition
-
type
public AddNode.Builder type(BaseNode.Type type)
Type of node to add.- Overrides:
type
in classBaseNode.Builder<AddNode>
- See Also:
BaseNode.Type
-
port
public AddNode.Builder port(int port)
Required. Port number for the service you are load balancing.- Overrides:
port
in classBaseNode.Builder<AddNode>
-
weight
public AddNode.Builder weight(Integer weight)
Weight of node to add. If theAlgorithm#WEIGHTED_ROUND_ROBIN
load balancer algorithm mode is selected, then the user should assign the relevant weight to the node using the weight attribute for the node. Must be an integer from 1 to 100.- Overrides:
weight
in classBaseNode.Builder<AddNode>
-
build
public AddNode build()
- Overrides:
build
in classBaseNode.Builder<AddNode>
-
from
public AddNode.Builder from(AddNode in)
- Overrides:
from
in classBaseNode.Builder<AddNode>
-
-