Class Port
- java.lang.Object
-
- com.woorea.openstack.quantum.model.Port
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PortForCreate
public class Port extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPort.Bindingstatic classPort.Ip
-
Constructor Summary
Constructors Constructor Description Port()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAdminStateUp()Port.BindinggetBinding()StringgetDeviceId()StringgetDeviceOwner()StringgetId()List<Port.Ip>getList()StringgetMacAddress()StringgetName()StringgetNetworkId()List<String>getSecurityGroups()StringgetStatus()StringgetTenantId()voidsetAdminStateUp(Boolean adminStateUp)voidsetBinding(Port.Binding binding)voidsetDeviceId(String deviceId)voidsetDeviceOwner(String deviceOwner)voidsetId(String id)voidsetList(List<Port.Ip> list)voidsetMacAddress(String macAddress)voidsetName(String name)voidsetNetworkId(String networkId)voidsetSecurityGroups(List<String> securityGroups)voidsetStatus(String status)voidsetTenantId(String tenantId)StringtoString()
-
-
-
Method Detail
-
getAdminStateUp
public Boolean getAdminStateUp()
- Returns:
- the adminStateUp
-
setAdminStateUp
public void setAdminStateUp(Boolean adminStateUp)
- Parameters:
adminStateUp- the adminStateUp to set
-
getDeviceId
public String getDeviceId()
- Returns:
- the deviceId
-
setDeviceId
public void setDeviceId(String deviceId)
- Parameters:
deviceId- the deviceId to set
-
getDeviceOwner
public String getDeviceOwner()
- Returns:
- the deviceOwner
-
setDeviceOwner
public void setDeviceOwner(String deviceOwner)
- Parameters:
deviceOwner- the deviceOwner to set
-
getId
public String getId()
- Returns:
- the id
-
setId
public void setId(String id)
- Parameters:
id- the id to set
-
getMacAddress
public String getMacAddress()
- Returns:
- the macAddress
-
setMacAddress
public void setMacAddress(String macAddress)
- Parameters:
macAddress- the macAddress to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getNetworkId
public String getNetworkId()
- Returns:
- the networkId
-
setNetworkId
public void setNetworkId(String networkId)
- Parameters:
networkId- the networkId to set
-
getStatus
public String getStatus()
- Returns:
- the status
-
setStatus
public void setStatus(String status)
- Parameters:
status- the status to set
-
getTenantId
public String getTenantId()
- Returns:
- the tenantId
-
setTenantId
public void setTenantId(String tenantId)
- Parameters:
tenantId- the tenantId to set
-
getSecurityGroups
public List<String> getSecurityGroups()
- Returns:
- the associated security group IDs
-
setSecurityGroups
public void setSecurityGroups(List<String> securityGroups)
- Parameters:
securityGroups- IDs of security groups to associate to the port
-
getBinding
public Port.Binding getBinding()
- Returns:
- the binding of the port
-
setBinding
public void setBinding(Port.Binding binding)
- Parameters:
binding- The port bindings by which the port is bind to network on host
-
-