Class BooleanRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.BooleanRequestBody

public class BooleanRequestBody extends Object
BooleanRequestBody is the request body structure used on OMAG REST API calls that passed a boolean flag.
  • Constructor Details

    • BooleanRequestBody

      public BooleanRequestBody()
      Default constructor
    • BooleanRequestBody

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

    • isFlag

      public boolean isFlag()
      Return the boolean result.
      Returns:
      boolean
    • setFlag

      public void setFlag(boolean flag)
      Set up the boolean result.
      Parameters:
      flag - boolean
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code