public abstract static class LoadBalancer.Builder<T extends LoadBalancer.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
LoadBalancer.Builder() |
Modifier and Type | Method and Description |
---|---|
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) |
protected long id
protected String name
protected String description
protected IpPortPair virtualIp
protected Set<IpPortPair> realIpList
protected LoadBalancerType type
protected LoadBalancerPersistenceType persistence
protected LoadBalancerOs os
protected LoadBalancerState state
protected Option datacenter
protected abstract T self()
public T id(long id)
LoadBalancer.getId()
public T name(String name)
LoadBalancer.getName()
public T description(String description)
LoadBalancer.getDescription()
public T virtualIp(IpPortPair virtualIp)
LoadBalancer.getVirtualIp()
public T realIpList(Set<IpPortPair> realIpList)
LoadBalancer.getRealIpList()
public T realIpList(IpPortPair... in)
public T type(LoadBalancerType type)
LoadBalancer.getType()
public T persistence(LoadBalancerPersistenceType persistence)
LoadBalancer.getPersistence()
public T os(LoadBalancerOs os)
LoadBalancer.getOs()
public T state(LoadBalancerState state)
LoadBalancer.getState()
public T datacenter(Option datacenter)
LoadBalancer.getDatacenter()
public LoadBalancer build()
public T fromLoadBalancer(LoadBalancer in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.