java.lang.Object
com.vaadin.appsec.backend.model.osv.response.Severity

public class Severity extends Object
DTO for the OSV API severity property.
  • Constructor Details

    • Severity

      public Severity()
      No args constructor for use in serialization.
    • Severity

      public Severity(Severity.Type type, String score)
      Instantiates a new severity.
      Parameters:
      type - the type
      score - the score
  • Method Details

    • getType

      public Severity.Type getType()
      Gets the type.
      Returns:
      the type
    • setType

      public void setType(Severity.Type type)
      Sets the type.
      Parameters:
      type - the new type
    • getScore

      public String getScore()
      Gets the score.
      Returns:
      the score
    • setScore

      public void setScore(String score)
      Sets the score.
      Parameters:
      score - the new score
    • toString

      public String toString()
      Overrides:
      toString in class Object