Package com.boldsign.model
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRectangle.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HEIGHTstatic StringSERIALIZED_NAME_WIDTHstatic StringSERIALIZED_NAME_Xstatic StringSERIALIZED_NAME_Y
-
Constructor Summary
Constructors Constructor Description Rectangle()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>createFormData()booleanequals(Object o)static RectanglefromJson(String jsonString)Create an instance of Rectangle given an JSON stringFloatgetHeight()Get height minimum: 1FloatgetWidth()Get width minimum: 1FloatgetX()Get x minimum: 0FloatgetY()Get y minimum: 0inthashCode()Rectangleheight(Float height)voidsetHeight(Float height)voidsetWidth(Float width)voidsetX(Float x)voidsetY(Float y)StringtoJson()Convert an instance of Rectangle to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundRectanglewidth(Float width)Rectanglex(Float x)Rectangley(Float y)
-
-
-
Field Detail
-
SERIALIZED_NAME_X
public static final String SERIALIZED_NAME_X
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_Y
public static final String SERIALIZED_NAME_Y
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WIDTH
public static final String SERIALIZED_NAME_WIDTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HEIGHT
public static final String SERIALIZED_NAME_HEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setX
public void setX(Float x)
-
setY
public void setY(Float y)
-
setWidth
public void setWidth(Float width)
-
setHeight
public void setHeight(Float height)
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-