Package com.boldsign.model
Class Date
- java.lang.Object
-
- com.boldsign.model.Date
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class Date extends Object
Date
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDate.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DAYstatic StringSERIALIZED_NAME_MONTHstatic StringSERIALIZED_NAME_YEAR
-
Constructor Summary
Constructors Constructor Description Date()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>createFormData()Dateday(Long day)booleanequals(Object o)static DatefromJson(String jsonString)Create an instance of Date given an JSON stringLonggetDay()Get dayLonggetMonth()Get monthLonggetYear()Get yearinthashCode()Datemonth(Long month)voidsetDay(Long day)voidsetMonth(Long month)voidsetYear(Long year)StringtoJson()Convert an instance of Date to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundDateyear(Long year)
-
-
-
Field Detail
-
SERIALIZED_NAME_DAY
public static final String SERIALIZED_NAME_DAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MONTH
public static final String SERIALIZED_NAME_MONTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_YEAR
public static final String SERIALIZED_NAME_YEAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDay
public void setDay(Long day)
-
setMonth
public void setMonth(Long month)
-
setYear
public void setYear(Long year)
-
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 Date
-
fromJson
public static Date fromJson(String jsonString) throws IOException
Create an instance of Date given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Date
- Throws:
IOException- if the JSON string is invalid with respect to Date
-
toJson
public String toJson()
Convert an instance of Date to an JSON string- Returns:
- JSON string
-
-