public static class NeutronLbPool.LbPoolContreteBuilder extends Object implements LbPoolBuilder
Constructor and Description |
---|
LbPoolContreteBuilder() |
LbPoolContreteBuilder(NeutronLbPool m) |
Modifier and Type | Method and Description |
---|---|
LbPoolBuilder |
adminStateUp(boolean adminStateUp) |
LbPool |
build()
Creates and return the Model Entity M
|
LbPoolBuilder |
description(String description) |
LbPoolBuilder |
from(LbPool in)
Creates a Builder using the param M as the default values
|
LbPoolBuilder |
lbMethod(LbMethod lbMethod) |
LbPoolBuilder |
name(String name) |
LbPoolBuilder |
protocol(Protocol protocol) |
LbPoolBuilder |
provider(String provider) |
LbPoolBuilder |
subnetId(String subnentId) |
LbPoolBuilder |
tenantId(String tenantId) |
public LbPoolContreteBuilder()
public LbPoolContreteBuilder(NeutronLbPool m)
public LbPool build()
Buildable.Builder
build
in interface Buildable.Builder<LbPoolBuilder,LbPool>
public LbPoolBuilder from(LbPool in)
Buildable.Builder
from
in interface Buildable.Builder<LbPoolBuilder,LbPool>
public LbPoolBuilder tenantId(String tenantId)
tenantId
in interface LbPoolBuilder
tenantId
- Owner of the pool. Only an administrative user can specify a
tenant ID other than its own.public LbPoolBuilder name(String name)
name
in interface LbPoolBuilder
name
- Pool name. Does not have to be unique.public LbPoolBuilder description(String description)
description
in interface LbPoolBuilder
description
- Description for the pool.public LbPoolBuilder subnetId(String subnentId)
subnetId
in interface LbPoolBuilder
subnentId
- The ID of the subnet on which to allocate the VIP address.public LbPoolBuilder provider(String provider)
provider
in interface LbPoolBuilder
provider
- Loadbalance provider which openstack supports,such as haproxypublic LbPoolBuilder lbMethod(LbMethod lbMethod)
lbMethod
in interface LbPoolBuilder
lbMethod
- The load-balancer algorithm, which is round-robin,
least-connections, and so on. This value, which must be
supported, is dependent on the load-balancer provider. Round
robin must be supported.public LbPoolBuilder adminStateUp(boolean adminStateUp)
adminStateUp
in interface LbPoolBuilder
adminStateUp
- The administrative state of the lb pool, which is up (true) or
down (false).public LbPoolBuilder protocol(Protocol protocol)
protocol
in interface LbPoolBuilder
protocol
- The protocol of the VIP address. A valid value is TCP, HTTP,
or HTTPS.Copyright © 2017. All rights reserved.