Class Rectangle

java.lang.Object
com.boldsign.model.Rectangle

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

  • Constructor Details

    • Rectangle

      public Rectangle()
  • Method Details

    • x

      public Rectangle x(Float x)
    • getX

      @Nullable public Float getX()
      Get x minimum: 0
      Returns:
      x
    • setX

      public void setX(Float x)
    • y

      public Rectangle y(Float y)
    • getY

      @Nullable public Float getY()
      Get y minimum: 0
      Returns:
      y
    • setY

      public void setY(Float y)
    • width

      public Rectangle width(Float width)
    • getWidth

      @Nullable public Float getWidth()
      Get width minimum: 1
      Returns:
      width
    • setWidth

      public void setWidth(Float width)
    • height

      public Rectangle height(Float height)
    • getHeight

      @Nullable public Float getHeight()
      Get height minimum: 1
      Returns:
      height
    • setHeight

      public void setHeight(Float height)
    • 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
    • createFormData

      public Map<String,Object> createFormData() throws ApiException
      Throws:
      ApiException
    • 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 Rectangle
    • fromJson

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

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