java.lang.Object
cz.fidentis.analyst.engines.face.facemasksapi.model.FaceMask

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.10.0") public class FaceMask extends Object
Detected face mask part. Contains the name of the detected face mask part and the 2D points that define the mask. Attributes: name: The name of the detected face mask part. points: The 2D points that define the mask
  • Field Details

  • Constructor Details

    • FaceMask

      public FaceMask()
  • Method Details

    • name

      public FaceMask name(@Nonnull FaceMaskVariant name)
    • getName

      @Nonnull public FaceMaskVariant getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nonnull FaceMaskVariant name)
    • points

      public FaceMask points(@Nonnull List<List<BigDecimal>> points)
    • addPointsItem

      public FaceMask addPointsItem(List<BigDecimal> pointsItem)
    • getPoints

      @Nonnull public List<List<BigDecimal>> getPoints()
      Get points
      Returns:
      points
    • setPoints

      public void setPoints(@Nonnull List<List<BigDecimal>> points)
    • 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 FaceMask
    • fromJson

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

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