Package com.boldsign.model
Class Size
- java.lang.Object
-
- com.boldsign.model.Size
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class Size extends Object
Size
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSize.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HEIGHTstatic StringSERIALIZED_NAME_WIDTH
-
Constructor Summary
Constructors Constructor Description Size()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>createFormData()booleanequals(Object o)static SizefromJson(String jsonString)Create an instance of Size given an JSON stringFloatgetHeight()Get height minimum: 0FloatgetWidth()Get width minimum: 0inthashCode()Sizeheight(Float height)voidsetHeight(Float height)voidsetWidth(Float width)StringtoJson()Convert an instance of Size to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundSizewidth(Float width)
-
-
-
Field Detail
-
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
-
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 Size
-
fromJson
public static Size fromJson(String jsonString) throws IOException
Create an instance of Size given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Size
- Throws:
IOException- if the JSON string is invalid with respect to Size
-
toJson
public String toJson()
Convert an instance of Size to an JSON string- Returns:
- JSON string
-
-