Class NeutronTrunkSubport
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronTrunkSubport
-
- All Implemented Interfaces:
Serializable,Buildable<TrunkSubportBuilder>,BasicResource,IdEntity,Resource,ModelEntity,TrunkSubport
public class NeutronTrunkSubport extends Object implements TrunkSubport, ModelEntity
A Subport ONLY used for adding to trunks- Author:
- Kashyap Jha
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronTrunkSubport.NeutronTrunkSubportsstatic classNeutronTrunkSubport.TrunkSubportConcreteBuilderstatic classNeutronTrunkSubport.TrunkSubports-
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 NeutronTrunkSubport()NeutronTrunkSubport(String portId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TrunkSubportBuilderbuilder()booleanequals(Object obj)static NeutronTrunkSubportfromTrunkSubport(TrunkSubport trunkSubport)StringgetId()Deprecated.StringgetName()Deprecated.StringgetPortId()intgetSegmentationId()StringgetSegmentationType()StringgetTenantId()Deprecated.inthashCode()voidsetId(String id)Deprecated.voidsetName(String name)Deprecated.voidsetTenantId(String tenantId)Deprecated.TrunkSubportBuildertoBuilder()StringtoString()
-
-
-
Constructor Detail
-
NeutronTrunkSubport
public NeutronTrunkSubport()
-
NeutronTrunkSubport
public NeutronTrunkSubport(String portId)
-
-
Method Detail
-
builder
public static TrunkSubportBuilder builder()
-
fromTrunkSubport
public static NeutronTrunkSubport fromTrunkSubport(TrunkSubport trunkSubport)
-
getId
@Deprecated public String getId()
Deprecated.Subports don't have the ID attribute. Use {@link this.getPortId} instead
-
setId
@Deprecated public void setId(String id)
Deprecated.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
@Deprecated public String getName()
Deprecated.Subports don't have the name attribute- Specified by:
getNamein interfaceBasicResource- Returns:
- the name for this resource
-
setName
@Deprecated public void setName(String name)
Deprecated.Description copied from interface:BasicResourceSets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getPortId
public String getPortId()
- Specified by:
getPortIdin interfaceTrunkSubport- Returns:
- the port ID
-
getSegmentationId
public int getSegmentationId()
- Specified by:
getSegmentationIdin interfaceTrunkSubport- Returns:
- the segmentation ID
-
getSegmentationType
public String getSegmentationType()
- Specified by:
getSegmentationTypein interfaceTrunkSubport- Returns:
- the segmentation type
-
getTenantId
@Deprecated public String getTenantId()
Deprecated.Subports don't have the tenantId attrbute- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
@Deprecated public void setTenantId(String tenantId)
Deprecated.Description copied from interface:ResourceSets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
toBuilder
public TrunkSubportBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<TrunkSubportBuilder>
-
-