Class Trunk
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.network.component.network.vlan.Trunk
-
@ApiType("SoftLayer_Network_Component_Network_Vlan_Trunk") public class Trunk extends Entity
Represents the association between a Network_Component and Network_Vlan in the manner of a 'trunk'. Trunking a VLAN to a port allows that ports to receive and send packets tagged with the corresponding VLAN number.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trunk.Mask
-
Field Summary
Fields Modifier and Type Field Description protected Component
networkComponent
The network component that the VLAN is being trunked to.protected Long
networkComponentId
The network component's identifier.protected boolean
networkComponentIdSpecified
protected Vlan
networkVlan
The VLAN that is being trunked to the network component.protected Long
networkVlanId
The identifier of the network VLAN that is a trunk on the network component.protected boolean
networkVlanIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Trunk()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getNetworkComponent()
Long
getNetworkComponentId()
Vlan
getNetworkVlan()
Long
getNetworkVlanId()
boolean
isNetworkComponentIdSpecified()
boolean
isNetworkVlanIdSpecified()
void
setNetworkComponent(Component networkComponent)
void
setNetworkComponentId(Long networkComponentId)
void
setNetworkVlan(Vlan networkVlan)
void
setNetworkVlanId(Long networkVlanId)
void
unsetNetworkComponentId()
void
unsetNetworkVlanId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
networkComponent
@ApiProperty protected Component networkComponent
The network component that the VLAN is being trunked to.
-
networkVlan
@ApiProperty protected Vlan networkVlan
The VLAN that is being trunked to the network component.
-
networkComponentId
@ApiProperty(canBeNullOrNotSet=true) protected Long networkComponentId
The network component's identifier.
-
networkComponentIdSpecified
protected boolean networkComponentIdSpecified
-
networkVlanId
@ApiProperty(canBeNullOrNotSet=true) protected Long networkVlanId
The identifier of the network VLAN that is a trunk on the network component.
-
networkVlanIdSpecified
protected boolean networkVlanIdSpecified
-
-
Method Detail
-
getNetworkComponent
public Component getNetworkComponent()
-
setNetworkComponent
public void setNetworkComponent(Component networkComponent)
-
getNetworkVlan
public Vlan getNetworkVlan()
-
setNetworkVlan
public void setNetworkVlan(Vlan networkVlan)
-
getNetworkComponentId
public Long getNetworkComponentId()
-
setNetworkComponentId
public void setNetworkComponentId(Long networkComponentId)
-
isNetworkComponentIdSpecified
public boolean isNetworkComponentIdSpecified()
-
unsetNetworkComponentId
public void unsetNetworkComponentId()
-
getNetworkVlanId
public Long getNetworkVlanId()
-
setNetworkVlanId
public void setNetworkVlanId(Long networkVlanId)
-
isNetworkVlanIdSpecified
public boolean isNetworkVlanIdSpecified()
-
unsetNetworkVlanId
public void unsetNetworkVlanId()
-
-