Class NeutronLbPool.LbPoolContreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronLbPool.LbPoolContreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<LbPoolBuilder,LbPool>
,LbPoolBuilder
- Enclosing class:
- NeutronLbPool
public static class NeutronLbPool.LbPoolContreteBuilder extends Object implements LbPoolBuilder
-
-
Constructor Summary
Constructors Constructor Description LbPoolContreteBuilder()
LbPoolContreteBuilder(NeutronLbPool m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LbPoolBuilder
adminStateUp(boolean adminStateUp)
LbPool
build()
Creates and return the Model Entity MLbPoolBuilder
description(String description)
LbPoolBuilder
from(LbPool in)
Creates a Builder using the param M as the default valuesLbPoolBuilder
lbMethod(LbMethod lbMethod)
LbPoolBuilder
name(String name)
LbPoolBuilder
protocol(Protocol protocol)
LbPoolBuilder
provider(String provider)
LbPoolBuilder
subnetId(String subnentId)
LbPoolBuilder
tenantId(String tenantId)
-
-
-
Constructor Detail
-
LbPoolContreteBuilder
public LbPoolContreteBuilder()
-
LbPoolContreteBuilder
public LbPoolContreteBuilder(NeutronLbPool m)
-
-
Method Detail
-
build
public LbPool build()
Description copied from interface:Buildable.Builder
Creates and return the Model Entity M- Specified by:
build
in interfaceBuildable.Builder<LbPoolBuilder,LbPool>
- Returns:
- M instance
-
from
public LbPoolBuilder from(LbPool in)
Description copied from interface:Buildable.Builder
Creates a Builder using the param M as the default values- Specified by:
from
in interfaceBuildable.Builder<LbPoolBuilder,LbPool>
- Returns:
- Builder
-
tenantId
public LbPoolBuilder tenantId(String tenantId)
- Specified by:
tenantId
in interfaceLbPoolBuilder
- Parameters:
tenantId
- Owner of the pool. Only an administrative user can specify a tenant ID other than its own.- Returns:
- LbPoolBuilder
-
name
public LbPoolBuilder name(String name)
- Specified by:
name
in interfaceLbPoolBuilder
- Parameters:
name
- Pool name. Does not have to be unique.- Returns:
- LbPoolBuilder
-
description
public LbPoolBuilder description(String description)
- Specified by:
description
in interfaceLbPoolBuilder
- Parameters:
description
- Description for the pool.- Returns:
- LbPoolBuilder
-
subnetId
public LbPoolBuilder subnetId(String subnentId)
- Specified by:
subnetId
in interfaceLbPoolBuilder
- Parameters:
subnentId
- The ID of the subnet on which to allocate the VIP address.- Returns:
- LbPoolBuilder
-
provider
public LbPoolBuilder provider(String provider)
- Specified by:
provider
in interfaceLbPoolBuilder
- Parameters:
provider
- Loadbalance provider which openstack supports,such as haproxy- Returns:
- LbPoolBuilder
-
lbMethod
public LbPoolBuilder lbMethod(LbMethod lbMethod)
- Specified by:
lbMethod
in interfaceLbPoolBuilder
- Parameters:
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.- Returns:
- LbPoolBuilder
-
adminStateUp
public LbPoolBuilder adminStateUp(boolean adminStateUp)
- Specified by:
adminStateUp
in interfaceLbPoolBuilder
- Parameters:
adminStateUp
- The administrative state of the lb pool, which is up (true) or down (false).- Returns:
- LbPoolBuilder
-
protocol
public LbPoolBuilder protocol(Protocol protocol)
- Specified by:
protocol
in interfaceLbPoolBuilder
- Parameters:
protocol
- The protocol of the VIP address. A valid value is TCP, HTTP, or HTTPS.- Returns:
- LbPoolBuilder
-
-