Class AbstractNeutronTrunk
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.AbstractNeutronTrunk
-
- All Implemented Interfaces:
Serializable,Buildable<TrunkBuilder>,BasicResource,IdEntity,Resource,ModelEntity,Trunk
- Direct Known Subclasses:
NeutronTrunk,NeutronTrunkSubportAddRemove
public abstract class AbstractNeutronTrunk extends Object implements Trunk
A Neutron TrunkThis is the parent class for
NeutronTrunkandNeutronTrunkSubportAddRemoveNeutronTrunk has the json root name trunk whereas NeutronTrunkSubportAddRemove doesn't as the API doesn't expect it- Author:
- Kashyap Jha
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractNeutronTrunk.TrunkConcreteBuilderstatic classAbstractNeutronTrunk.Trunks-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanadminStateUpprotected Stringdescriptionprotected Stringidprotected Stringnameprotected StringparentPortIdprotected intrevisionNumberprotected Statestateprotected StringtenantIdprotected List<NeutronTrunkSubport>trunkSubports
-
Constructor Summary
Constructors Constructor Description AbstractNeutronTrunk()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrunkBuilderbuilder()booleanequals(Object obj)StringgetDescription()StringgetId()StringgetName()StringgetParentPort()intgetRevisionNumber()StategetState()StringgetTenantId()List<NeutronTrunkSubport>getTrunkSubports()inthashCode()booleanisAdminStateUp()voidsetId(String id)Sets the identifier for this resource.voidsetName(String name)Sets the name for this resourcevoidsetPortId(String parentPortId)voidsetTenantId(String tenantId)Sets the tenant identifierTrunkBuildertoBuilder()StringtoString()
-
-
-
Field Detail
-
adminStateUp
protected boolean adminStateUp
-
description
protected String description
-
id
protected String id
-
name
protected String name
-
parentPortId
protected String parentPortId
-
revisionNumber
protected int revisionNumber
-
state
protected State state
-
trunkSubports
protected List<NeutronTrunkSubport> trunkSubports
-
tenantId
protected String tenantId
-
-
Method Detail
-
builder
public static TrunkBuilder builder()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceTrunk- Returns:
- a string containing the description
-
getId
public String getId()
-
setId
public void setId(String id)
Description copied from interface:IdEntitySets 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)
Description copied from interface:BasicResourceSets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getParentPort
public String getParentPort()
- Specified by:
getParentPortin interfaceTrunk- Returns:
- the parent port ID of the trunk
-
getRevisionNumber
public int getRevisionNumber()
-
getState
public State getState()
-
getTrunkSubports
public List<NeutronTrunkSubport> getTrunkSubports()
- Specified by:
getTrunkSubportsin interfaceTrunk- Returns:
- a list of subports associated with the trunk
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Description copied from interface:ResourceSets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
isAdminStateUp
public boolean isAdminStateUp()
- Specified by:
isAdminStateUpin interfaceTrunk- Returns:
- the administrative state of the trunk
-
setPortId
public void setPortId(String parentPortId)
-
toBuilder
public TrunkBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<TrunkBuilder>
-
-