Interface RouterBuilder
-
- All Superinterfaces:
Buildable.Builder<RouterBuilder,Router>
- All Known Implementing Classes:
NeutronRouter.RouterConcreteBuilder
public interface RouterBuilder extends Buildable.Builder<RouterBuilder,Router>
A Builder that creates a Router- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouterBuilderadminStateUp(boolean isAdminStateUp)RouterBuilderclearExternalGateway()Removes the external gateway from the router during an update operationRouterBuilderdistributed(Boolean distributed)RouterBuilderexternalGateway(String networkId)RouterBuilderexternalGateway(String networkId, Boolean enableSNAT)RouterBuilderexternalGateway(ExternalGateway externalGateway)RouterBuilderid(String id)RouterBuildername(String name)RouterBuildernoRoutes()Removes the static routes from the router during an update operationRouterBuilderroute(String destination, String nexthop)RouterBuildertenant(Tenant tenant)RouterBuildertenantId(String tenantId)-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
id
RouterBuilder id(String id)
- See Also:
IdEntity.getId()
-
name
RouterBuilder name(String name)
- See Also:
BasicResource.getName()
-
tenantId
RouterBuilder tenantId(String tenantId)
- See Also:
Resource.getTenantId()
-
tenant
RouterBuilder tenant(Tenant tenant)
- See Also:
Resource.getTenantId()
-
adminStateUp
RouterBuilder adminStateUp(boolean isAdminStateUp)
-
externalGateway
RouterBuilder externalGateway(String networkId)
- See Also:
Router.getExternalGatewayInfo()
-
externalGateway
RouterBuilder externalGateway(String networkId, Boolean enableSNAT)
- See Also:
Router.getExternalGatewayInfo()
-
externalGateway
RouterBuilder externalGateway(ExternalGateway externalGateway)
- See Also:
Router.getExternalGatewayInfo()
-
clearExternalGateway
RouterBuilder clearExternalGateway()
Removes the external gateway from the router during an update operation
-
route
RouterBuilder route(String destination, String nexthop)
- See Also:
Router.getRoutes()
-
noRoutes
RouterBuilder noRoutes()
Removes the static routes from the router during an update operation
-
distributed
RouterBuilder distributed(Boolean distributed)
- Parameters:
distributed- :true indicates a distributed router. It is available when dvr extension is enabled.
-
-