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 LbPoolBuilderadminStateUp(boolean adminStateUp)LbPoolbuild()Creates and return the Model Entity MLbPoolBuilderdescription(String description)LbPoolBuilderfrom(LbPool in)Creates a Builder using the param M as the default valuesLbPoolBuilderlbMethod(LbMethod lbMethod)LbPoolBuildername(String name)LbPoolBuilderprotocol(Protocol protocol)LbPoolBuilderprovider(String provider)LbPoolBuildersubnetId(String subnentId)LbPoolBuildertenantId(String tenantId)
-
-
-
Constructor Detail
-
LbPoolContreteBuilder
public LbPoolContreteBuilder()
-
LbPoolContreteBuilder
public LbPoolContreteBuilder(NeutronLbPool m)
-
-
Method Detail
-
build
public LbPool build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<LbPoolBuilder,LbPool>- Returns:
- M instance
-
from
public LbPoolBuilder from(LbPool in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<LbPoolBuilder,LbPool>- Returns:
- Builder
-
tenantId
public LbPoolBuilder tenantId(String tenantId)
- Specified by:
tenantIdin 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:
namein interfaceLbPoolBuilder- Parameters:
name- Pool name. Does not have to be unique.- Returns:
- LbPoolBuilder
-
description
public LbPoolBuilder description(String description)
- Specified by:
descriptionin interfaceLbPoolBuilder- Parameters:
description- Description for the pool.- Returns:
- LbPoolBuilder
-
subnetId
public LbPoolBuilder subnetId(String subnentId)
- Specified by:
subnetIdin 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:
providerin interfaceLbPoolBuilder- Parameters:
provider- Loadbalance provider which openstack supports,such as haproxy- Returns:
- LbPoolBuilder
-
lbMethod
public LbPoolBuilder lbMethod(LbMethod lbMethod)
- Specified by:
lbMethodin 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:
adminStateUpin 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:
protocolin interfaceLbPoolBuilder- Parameters:
protocol- The protocol of the VIP address. A valid value is TCP, HTTP, or HTTPS.- Returns:
- LbPoolBuilder
-
-