Class AbstractNeutronTrunk

    • Field Detail

      • adminStateUp

        protected boolean adminStateUp
      • description

        protected String description
      • parentPortId

        protected String parentPortId
      • revisionNumber

        protected int revisionNumber
      • state

        protected State state
      • tenantId

        protected String tenantId
    • Constructor Detail

      • AbstractNeutronTrunk

        public AbstractNeutronTrunk()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface Trunk
        Returns:
        a string containing the description
      • getId

        public String getId()
        Specified by:
        getId in interface IdEntity
        Returns:
        the identifier for this resource
      • setId

        public void setId​(String id)
        Description copied from interface: IdEntity
        Sets 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
        Specified by:
        setId in interface IdEntity
        Parameters:
        id - the identifier
      • setName

        public void setName​(String name)
        Description copied from interface: BasicResource
        Sets the name for this resource
        Specified by:
        setName in interface BasicResource
        Parameters:
        name - the name to set
      • getParentPort

        public String getParentPort()
        Specified by:
        getParentPort in interface Trunk
        Returns:
        the parent port ID of the trunk
      • getRevisionNumber

        public int getRevisionNumber()
      • getState

        public State getState()
        Specified by:
        getState in interface Trunk
        Returns:
        the current state of the trunk
      • getTenantId

        public String getTenantId()
        Specified by:
        getTenantId in interface Resource
        Returns:
        the tenant identifier for this resource
      • setTenantId

        public void setTenantId​(String tenantId)
        Description copied from interface: Resource
        Sets the tenant identifier
        Specified by:
        setTenantId in interface Resource
        Parameters:
        tenantId - the tenant id to set
      • isAdminStateUp

        public boolean isAdminStateUp()
        Specified by:
        isAdminStateUp in interface Trunk
        Returns:
        the administrative state of the trunk
      • setPortId

        public void setPortId​(String parentPortId)