Package com.morpheusdata.model
Class ComputePort
- java.lang.Object
-
- com.morpheusdata.model.MorpheusModel
-
- com.morpheusdata.model.ComputePort
-
public class ComputePort extends MorpheusModel
Represents ports available on ComputeServers within a Cloud. Currently utilized when connecting by VNC
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Long
parentId
protected java.lang.String
parentType
protected java.lang.Integer
port
protected java.lang.String
portType
protected java.lang.Long
refId
protected java.lang.String
refType
protected java.lang.String
regionCode
-
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
-
Constructor Summary
Constructors Constructor Description ComputePort()
ComputePort(java.lang.Long id, java.lang.Integer port, java.lang.String refType, java.lang.Long refId, java.lang.String parentType, java.lang.Long parentId, java.lang.String portType, java.lang.String regionCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getParentId()
Get the id of the parentjava.lang.String
getParentType()
Get the type of parentjava.lang.Integer
getPort()
Get the port numberjava.lang.String
getPortType()
Get the type of portjava.lang.Long
getRefId()
Get the id of the referenced objectjava.lang.String
getRefType()
Get the type of object this is referenced tojava.lang.String
getRegionCode()
Get the region codevoid
setParentId(java.lang.Long parentId)
Set the id of the parent.void
setParentType(java.lang.String parentType)
Set the type of parent.void
setPort(java.lang.Integer port)
Set the port numbervoid
setPortType(java.lang.String portType)
Set the type of port.void
setRefId(java.lang.Long refId)
Set the id of the referenced object.void
setRefType(java.lang.String refType)
Set the type of object this is referenced to.void
setRegionCode(java.lang.String regionCode)
Set the region code.-
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
-
-
-
Field Detail
-
port
protected java.lang.Integer port
-
portType
protected java.lang.String portType
-
parentType
protected java.lang.String parentType
-
parentId
protected java.lang.Long parentId
-
refType
protected java.lang.String refType
-
regionCode
protected java.lang.String regionCode
-
refId
protected java.lang.Long refId
-
-
Method Detail
-
getPort
public java.lang.Integer getPort()
Get the port number- Returns:
- port number
-
setPort
public void setPort(java.lang.Integer port)
Set the port number- Parameters:
port
- port number
-
getPortType
public java.lang.String getPortType()
Get the type of port- Returns:
- type of port
-
setPortType
public void setPortType(java.lang.String portType)
Set the type of port. Should be 'vnc' to enable utilization by VNC- Parameters:
portType
- type of port
-
getParentType
public java.lang.String getParentType()
Get the type of parent- Returns:
- type of parent
-
setParentType
public void setParentType(java.lang.String parentType)
Set the type of parent. Should be 'ComputeZone' when configured for 'vnc'- Parameters:
parentType
- type of parent
-
getParentId
public java.lang.Long getParentId()
Get the id of the parent- Returns:
- id of parent
-
setParentId
public void setParentId(java.lang.Long parentId)
Set the id of the parent. Should be the id of the Cloud when configured for 'vnc'- Parameters:
parentId
- id of parent
-
getRefType
public java.lang.String getRefType()
Get the type of object this is referenced to- Returns:
- reference type
-
setRefType
public void setRefType(java.lang.String refType)
Set the type of object this is referenced to. Should be 'ComputeServer' when configured for 'vnc'- Parameters:
refType
- reference type
-
getRegionCode
public java.lang.String getRegionCode()
Get the region code- Returns:
- region code
-
setRegionCode
public void setRegionCode(java.lang.String regionCode)
Set the region code. Should be the regionCode for the Cloud when configured for 'vnc'- Parameters:
regionCode
- region code
-
getRefId
public java.lang.Long getRefId()
Get the id of the referenced object- Returns:
- reference id
-
setRefId
public void setRefId(java.lang.Long refId)
Set the id of the referenced object. Should be the id of the ComputeServer when configured for 'vnc'- Parameters:
refId
- reference id
-
-