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 Details

    • port

      protected Integer port
    • portType

      protected String portType
    • parentType

      protected String parentType
    • parentId

      protected Long parentId
    • refType

      protected String refType
    • regionCode

      protected String regionCode
    • refId

      protected Long refId
  • Constructor Details

  • Method Details

    • getPort

      public Integer getPort()
      Get the port number
      Returns:
      port number
    • setPort

      public void setPort(Integer port)
      Set the port number
      Parameters:
      port - port number
    • getPortType

      public String getPortType()
      Get the type of port
      Returns:
      type of port
    • setPortType

      public void setPortType(String portType)
      Set the type of port. Should be 'vnc' to enable utilization by VNC
      Parameters:
      portType - type of port
    • getParentType

      public String getParentType()
      Get the type of parent
      Returns:
      type of parent
    • setParentType

      public void setParentType(String parentType)
      Set the type of parent. Should be 'ComputeZone' when configured for 'vnc'
      Parameters:
      parentType - type of parent
    • getParentId

      public Long getParentId()
      Get the id of the parent
      Returns:
      id of parent
    • setParentId

      public void setParentId(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 String getRefType()
      Get the type of object this is referenced to
      Returns:
      reference type
    • setRefType

      public void setRefType(String refType)
      Set the type of object this is referenced to. Should be 'ComputeServer' when configured for 'vnc'
      Parameters:
      refType - reference type
    • getRegionCode

      public String getRegionCode()
      Get the region code
      Returns:
      region code
    • setRegionCode

      public void setRegionCode(String regionCode)
      Set the region code. Should be the regionCode for the Cloud when configured for 'vnc'
      Parameters:
      regionCode - region code
    • getRefId

      public Long getRefId()
      Get the id of the referenced object
      Returns:
      reference id
    • setRefId

      public void setRefId(Long refId)
      Set the id of the referenced object. Should be the id of the ComputeServer when configured for 'vnc'
      Parameters:
      refId - reference id