Package Avalara.SDK.model.EInvoicing.V1
Class DocumentSubmissionError
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.DocumentSubmissionError
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class DocumentSubmissionError extends Object
Returns an HTTP status code and message for an 'exception'
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentSubmissionError.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_STATUS_CODE
-
Constructor Summary
Constructors Constructor Description DocumentSubmissionError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DocumentSubmissionErrorfromJson(String jsonString)Create an instance of DocumentSubmissionError given an JSON stringStringgetMessage()A message explaining the exceptionStringgetStatusCode()The three-digit HTTP status code for the exceptioninthashCode()DocumentSubmissionErrormessage(String message)voidsetMessage(String message)voidsetStatusCode(String statusCode)DocumentSubmissionErrorstatusCode(String statusCode)StringtoJson()Convert an instance of DocumentSubmissionError 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_STATUS_CODE
public static final String SERIALIZED_NAME_STATUS_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
statusCode
public DocumentSubmissionError statusCode(String statusCode)
-
getStatusCode
@Nullable public String getStatusCode()
The three-digit HTTP status code for the exception- Returns:
- statusCode
-
setStatusCode
public void setStatusCode(String statusCode)
-
message
public DocumentSubmissionError message(String message)
-
setMessage
public void setMessage(String message)
-
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 DocumentSubmissionError
-
fromJson
public static DocumentSubmissionError fromJson(String jsonString) throws IOException
Create an instance of DocumentSubmissionError given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentSubmissionError
- Throws:
IOException- if the JSON string is invalid with respect to DocumentSubmissionError
-
toJson
public String toJson()
Convert an instance of DocumentSubmissionError to an JSON string- Returns:
- JSON string
-
-