Package Avalara.SDK.model.A1099.V2
Class ProblemDetails
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.ProblemDetails
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ProblemDetails extends Object
ProblemDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProblemDetails.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DETAILstatic StringSERIALIZED_NAME_INSTANCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ProblemDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProblemDetailsdetail(String detail)booleanequals(Object o)static ProblemDetailsfromJson(String jsonString)Create an instance of ProblemDetails given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDetail()Get detailStringgetInstance()Get instanceIntegergetStatus()Get statusStringgetTitle()Get titleStringgetType()Get typeinthashCode()ProblemDetailsinstance(String instance)ProblemDetailsputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDetail(String detail)voidsetInstance(String instance)voidsetStatus(Integer status)voidsetTitle(String title)voidsetType(String type)ProblemDetailsstatus(Integer status)ProblemDetailstitle(String title)StringtoJson()Convert an instance of ProblemDetails to an JSON stringStringtoString()ProblemDetailstype(String type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DETAIL
public static final String SERIALIZED_NAME_DETAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTANCE
public static final String SERIALIZED_NAME_INSTANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public ProblemDetails type(String type)
-
setType
public void setType(String type)
-
title
public ProblemDetails title(String title)
-
setTitle
public void setTitle(String title)
-
status
public ProblemDetails status(Integer status)
-
setStatus
public void setStatus(Integer status)
-
detail
public ProblemDetails detail(String detail)
-
setDetail
public void setDetail(String detail)
-
instance
public ProblemDetails instance(String instance)
-
setInstance
public void setInstance(String instance)
-
putAdditionalProperty
public ProblemDetails putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ProblemDetails instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 ProblemDetails
-
fromJson
public static ProblemDetails fromJson(String jsonString) throws IOException
Create an instance of ProblemDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProblemDetails
- Throws:
IOException- if the JSON string is invalid with respect to ProblemDetails
-
toJson
public String toJson()
Convert an instance of ProblemDetails to an JSON string- Returns:
- JSON string
-
-