Class NeutronRouter
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronRouter
-
- All Implemented Interfaces:
Serializable,Buildable<RouterBuilder>,BasicResource,IdEntity,Resource,ModelEntity,Router
public class NeutronRouter extends Object implements Router
A router is used to interconnect subnets and forward traffic among them. Another feature of the router is to NAT internal traffic to external networks.- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronRouter.RouterConcreteBuilderstatic classNeutronRouter.Routers-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description NeutronRouter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouterBuilderbuilder()booleanequals(Object obj)BooleangetDistributed()true indicates a distributed router.ExternalGatewaygetExternalGatewayInfo()Information on external gateway for the routerStringgetId()StringgetName()List<? extends HostRoute>getRoutes()Host Routing entries for the routerStategetStatus()Indicates whether a router is currently operational or notStringgetTenantId()inthashCode()booleanisAdminStateUp()Administrative state of the routervoidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierRouterBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static RouterBuilder builder()
-
toBuilder
public RouterBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<RouterBuilder>
-
getId
public String getId()
-
setId
public void setId(String id)
Sets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
-
getName
public String getName()
- Specified by:
getNamein interfaceBasicResource- Returns:
- the name for this resource
-
setName
public void setName(String name)
Sets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Sets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
isAdminStateUp
public boolean isAdminStateUp()
Administrative state of the router- Specified by:
isAdminStateUpin interfaceRouter- Returns:
- true, if the administrative state is up
-
getStatus
public State getStatus()
Indicates whether a router is currently operational or not
-
getExternalGatewayInfo
public ExternalGateway getExternalGatewayInfo()
Information on external gateway for the router- Specified by:
getExternalGatewayInfoin interfaceRouter- Returns:
- the external gateway info
-
getDistributed
public Boolean getDistributed()
Description copied from interface:Routertrue indicates a distributed router. It is available when dvr extension is enabled.- Specified by:
getDistributedin interfaceRouter
-
-