Class SeverityLevel

    • Constructor Detail

      • SeverityLevel

        public SeverityLevel()
    • Method Detail

      • setCode

        public void setCode​(String code)

        One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.

        Parameters:
        code - One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.
      • getCode

        public String getCode()

        One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.

        Returns:
        One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.
      • withCode

        public SeverityLevel withCode​(String code)

        One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.

        Parameters:
        code - One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in SeverityLevel.name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName​(String name)

        The name of the severity level that corresponds to the severity level code.

        Parameters:
        name - The name of the severity level that corresponds to the severity level code.
      • getName

        public String getName()

        The name of the severity level that corresponds to the severity level code.

        Returns:
        The name of the severity level that corresponds to the severity level code.
      • withName

        public SeverityLevel withName​(String name)

        The name of the severity level that corresponds to the severity level code.

        Parameters:
        name - The name of the severity level that corresponds to the severity level code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object