Class FeedbackRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FeedbackRequestBody
Direct Known Subclasses:
CommentRequestBody, RatingRequestBody

public class FeedbackRequestBody extends Object
FeedbackRequestBody provides a base class for passing feedback objects as a request body over a REST API.
  • Constructor Details

    • FeedbackRequestBody

      public FeedbackRequestBody()
      Default constructor
    • FeedbackRequestBody

      public FeedbackRequestBody(FeedbackRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getIsPublic

      public boolean getIsPublic()
      Return whether the feedback is private or not
      Returns:
      boolean
    • setIsPublic

      public void setIsPublic(boolean aPrivate)
      Set up the privacy flag.
      Parameters:
      aPrivate - boolean
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code