Class SubmitFeedbackRequest

java.lang.Object
org.hihn.listenbrainz.SubmitFeedbackRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SubmitFeedbackRequest extends Object
SubmitFeedbackRequest
  • Field Details

  • Constructor Details

    • SubmitFeedbackRequest

      public SubmitFeedbackRequest()
  • Method Details

    • recordingMbid

      public SubmitFeedbackRequest recordingMbid(UUID recordingMbid)
    • getRecordingMbid

      @Nullable public UUID getRecordingMbid()
      Get recordingMbid
      Returns:
      recordingMbid
    • setRecordingMbid

      public void setRecordingMbid(UUID recordingMbid)
    • rating

      public SubmitFeedbackRequest rating(AllowedRatings rating)
    • getRating

      @Nullable public AllowedRatings getRating()
      Get rating
      Returns:
      rating
    • setRating

      public void setRating(AllowedRatings rating)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to SubmitFeedbackRequest
    • fromJson

      public static SubmitFeedbackRequest fromJson(String jsonString) throws IOException
      Create an instance of SubmitFeedbackRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SubmitFeedbackRequest
      Throws:
      IOException - if the JSON string is invalid with respect to SubmitFeedbackRequest
    • toJson

      public String toJson()
      Convert an instance of SubmitFeedbackRequest to an JSON string
      Returns:
      JSON string