Class NeutronNetwork
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronNetwork
-
- All Implemented Interfaces:
Serializable,Buildable<NetworkBuilder>,BasicResource,IdEntity,Resource,TimeEntity,ModelEntity,Network
public class NeutronNetwork extends Object implements Network
An OpenStack (Neutron) network- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronNetwork.NetworkConcreteBuilderstatic classNeutronNetwork.Networks-
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 NeutronNetwork()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkBuilderbuilder()booleanequals(Object obj)List<String>getAvailabilityZoneHints()List<String>getAvailabilityZones()DategetCreatedTime()created timeStringgetId()IntegergetMTU()StringgetName()NetworkTypegetNetworkType()List<? extends Subnet>getNeutronSubnets()StringgetProviderPhyNet()StringgetProviderSegID()StategetStatus()List<String>getSubnets()StringgetTenantId()DategetUpdatedTime()updated timeinthashCode()booleanisAdminStateUp()booleanisDefault()BooleanisPortSecurityEnabled()booleanisRouterExternal()booleanisShared()voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetTenantId(String tenantId)Sets the tenant identifierNetworkBuildertoBuilder()Wraps this Network into a BuilderStringtoString()
-
-
-
Method Detail
-
builder
public static NetworkBuilder builder()
-
toBuilder
public NetworkBuilder toBuilder()
Wraps this Network into a Builder- Specified by:
toBuilderin interfaceBuildable<NetworkBuilder>- Returns:
- the network builder
-
getStatus
public State getStatus()
-
getSubnets
public List<String> getSubnets()
- Specified by:
getSubnetsin interfaceNetwork- Returns:
- list of subnet identifiers associated with the network
-
getNeutronSubnets
public List<? extends Subnet> getNeutronSubnets()
- Specified by:
getNeutronSubnetsin interfaceNetwork- Returns:
- the list of Subnets
-
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
-
getProviderPhyNet
public String getProviderPhyNet()
- Specified by:
getProviderPhyNetin interfaceNetwork- Returns:
- the physical network provider or null
-
isAdminStateUp
public boolean isAdminStateUp()
- Specified by:
isAdminStateUpin interfaceNetwork- Returns:
- true if the administrative state is up
-
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
-
getNetworkType
public NetworkType getNetworkType()
- Specified by:
getNetworkTypein interfaceNetwork- Returns:
- the network type
-
isRouterExternal
public boolean isRouterExternal()
- Specified by:
isRouterExternalin interfaceNetwork- Returns:
- true if the router is external
-
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
-
isShared
public boolean isShared()
-
getProviderSegID
public String getProviderSegID()
- Specified by:
getProviderSegIDin interfaceNetwork- Returns:
- the provider segmentation identifier
-
getMTU
public Integer getMTU()
-
getAvailabilityZoneHints
public List<String> getAvailabilityZoneHints()
- Specified by:
getAvailabilityZoneHintsin interfaceNetwork- Returns:
- the list of the availability zone candidate for the network.
-
getAvailabilityZones
public List<String> getAvailabilityZones()
- Specified by:
getAvailabilityZonesin interfaceNetwork- Returns:
- the list of the availability zone for the network.
-
isPortSecurityEnabled
public Boolean isPortSecurityEnabled()
- Specified by:
isPortSecurityEnabledin interfaceNetwork- Returns:
- true if the port security enabled is shared
-
getCreatedTime
public Date getCreatedTime()
created time- Specified by:
getCreatedTimein interfaceTimeEntity- Returns:
- created time
-
getUpdatedTime
public Date getUpdatedTime()
updated time- Specified by:
getUpdatedTimein interfaceTimeEntity- Returns:
- updated time
-
isDefault
public boolean isDefault()
-
-