org.jclouds.gogrid.domain
Class LoadBalancer.Builder<T extends LoadBalancer.Builder<T>>

java.lang.Object
  extended by org.jclouds.gogrid.domain.LoadBalancer.Builder<T>
Enclosing class:
LoadBalancer

public abstract static class LoadBalancer.Builder<T extends LoadBalancer.Builder<T>>
extends Object


Field Summary
protected  Option datacenter
           
protected  String description
           
protected  long id
           
protected  String name
           
protected  LoadBalancerOs os
           
protected  LoadBalancerPersistenceType persistence
           
protected  Set<IpPortPair> realIpList
           
protected  LoadBalancerState state
           
protected  LoadBalancerType type
           
protected  IpPortPair virtualIp
           
 
Constructor Summary
LoadBalancer.Builder()
           
 
Method Summary
 LoadBalancer build()
           
 T datacenter(Option datacenter)
           
 T description(String description)
           
 T fromLoadBalancer(LoadBalancer in)
           
 T id(long id)
           
 T name(String name)
           
 T os(LoadBalancerOs os)
           
 T persistence(LoadBalancerPersistenceType persistence)
           
 T realIpList(IpPortPair... in)
           
 T realIpList(Set<IpPortPair> realIpList)
           
protected abstract  T self()
           
 T state(LoadBalancerState state)
           
 T type(LoadBalancerType type)
           
 T virtualIp(IpPortPair virtualIp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

name

protected String name

description

protected String description

virtualIp

protected IpPortPair virtualIp

realIpList

protected Set<IpPortPair> realIpList

type

protected LoadBalancerType type

persistence

protected LoadBalancerPersistenceType persistence

os

protected LoadBalancerOs os

state

protected LoadBalancerState state

datacenter

protected Option datacenter
Constructor Detail

LoadBalancer.Builder

public LoadBalancer.Builder()
Method Detail

self

protected abstract T self()

id

public T id(long id)
See Also:
LoadBalancer.getId()

name

public T name(String name)
See Also:
LoadBalancer.getName()

description

public T description(String description)
See Also:
LoadBalancer.getDescription()

virtualIp

public T virtualIp(IpPortPair virtualIp)
See Also:
LoadBalancer.getVirtualIp()

realIpList

public T realIpList(Set<IpPortPair> realIpList)
See Also:
LoadBalancer.getRealIpList()

realIpList

public T realIpList(IpPortPair... in)

type

public T type(LoadBalancerType type)
See Also:
LoadBalancer.getType()

persistence

public T persistence(LoadBalancerPersistenceType persistence)
See Also:
LoadBalancer.getPersistence()

os

public T os(LoadBalancerOs os)
See Also:
LoadBalancer.getOs()

state

public T state(LoadBalancerState state)
See Also:
LoadBalancer.getState()

datacenter

public T datacenter(Option datacenter)
See Also:
LoadBalancer.getDatacenter()

build

public LoadBalancer build()

fromLoadBalancer

public T fromLoadBalancer(LoadBalancer in)


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