org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class Node.Builder

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseNode.Builder<Node>
      extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.Node.Builder
Enclosing class:
Node

public static class Node.Builder
extends BaseNode.Builder<Node>


Field Summary
 
Fields inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseNode.Builder
address, condition, port, type, weight
 
Constructor Summary
Node.Builder()
           
 
Method Summary
 Node.Builder address(String address)
          Required.
 Node build()
           
 Node.Builder condition(BaseNode.Condition condition)
          Required.
 Node.Builder from(Node in)
           
 Node.Builder id(int id)
           
 Node.Builder metadata(Metadata metadata)
           
 Node.Builder port(int port)
          Required.
 Node.Builder status(Node.Status status)
           
 Node.Builder type(BaseNode.Type type)
          Type of node to add.
 Node.Builder weight(Integer weight)
          Weight of node to add.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node.Builder

public Node.Builder()
Method Detail

id

public Node.Builder id(int id)

status

public Node.Builder status(Node.Status status)
See Also:
Node.Status

metadata

public Node.Builder metadata(Metadata metadata)

build

public Node build()
Overrides:
build in class BaseNode.Builder<Node>

address

public Node.Builder address(String address)
Required. IP address or domain name for the node.

Overrides:
address in class BaseNode.Builder<Node>

condition

public Node.Builder condition(BaseNode.Condition condition)
Required. Condition for the node, which determines its role within the load balancer.

Overrides:
condition in class BaseNode.Builder<Node>
See Also:
BaseNode.Condition

type

public Node.Builder type(BaseNode.Type type)
Type of node to add.

Overrides:
type in class BaseNode.Builder<Node>
See Also:
BaseNode.Type

port

public Node.Builder port(int port)
Required. Port number for the service you are load balancing.

Overrides:
port in class BaseNode.Builder<Node>

weight

public Node.Builder weight(Integer weight)
Weight of node to add. If the Algorithm#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 class BaseNode.Builder<Node>

from

public Node.Builder from(Node in)
Overrides:
from in class BaseNode.Builder<Node>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.