Package Avalara.SDK.model.EInvoicing.V1
Class WebhooksErrorInfo
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.WebhooksErrorInfo
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class WebhooksErrorInfo extends Object
Information about the error encountered
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhooksErrorInfo.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_TITLE
-
Constructor Summary
Constructors Constructor Description WebhooksErrorInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhooksErrorInfodetail(String detail)booleanequals(Object o)static WebhooksErrorInfofromJson(String jsonString)Create an instance of WebhooksErrorInfo given an JSON stringStringgetDetail()A detailed description of the error type.StringgetInstance()A detailed description of the specific error ocurrance.StringgetStatus()A conanoical error status.StringgetTitle()An identifying name for the error.inthashCode()WebhooksErrorInfoinstance(String instance)voidsetDetail(String detail)voidsetInstance(String instance)voidsetStatus(String status)voidsetTitle(String title)WebhooksErrorInfostatus(String status)WebhooksErrorInfotitle(String title)StringtoJson()Convert an instance of WebhooksErrorInfo to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
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
-
title
public WebhooksErrorInfo title(String title)
-
setTitle
public void setTitle(String title)
-
status
public WebhooksErrorInfo status(String status)
-
setStatus
public void setStatus(String status)
-
detail
public WebhooksErrorInfo detail(String detail)
-
getDetail
@Nullable public String getDetail()
A detailed description of the error type.- Returns:
- detail
-
setDetail
public void setDetail(String detail)
-
instance
public WebhooksErrorInfo instance(String instance)
-
getInstance
@Nullable public String getInstance()
A detailed description of the specific error ocurrance.- Returns:
- instance
-
setInstance
public void setInstance(String instance)
-
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 WebhooksErrorInfo
-
fromJson
public static WebhooksErrorInfo fromJson(String jsonString) throws IOException
Create an instance of WebhooksErrorInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhooksErrorInfo
- Throws:
IOException- if the JSON string is invalid with respect to WebhooksErrorInfo
-
toJson
public String toJson()
Convert an instance of WebhooksErrorInfo to an JSON string- Returns:
- JSON string
-
-