Package Avalara.SDK.model.A1099.V2
Class IrsResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.IrsResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class IrsResponse extends Object
IrsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIrsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_DESCRIPTION
-
Constructor Summary
Constructors Constructor Description IrsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IrsResponsecode(String code)IrsResponsedescription(String description)booleanequals(Object o)static IrsResponsefromJson(String jsonString)Create an instance of IrsResponse given an JSON stringStringgetCode()The IRS response code.StringgetDescription()The description for the IRS response.inthashCode()voidsetCode(String code)voidsetDescription(String description)StringtoJson()Convert an instance of IrsResponse 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_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public IrsResponse code(String code)
-
setCode
public void setCode(String code)
-
description
public IrsResponse description(String description)
-
getDescription
@Nullable public String getDescription()
The description for the IRS response.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
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 IrsResponse
-
fromJson
public static IrsResponse fromJson(String jsonString) throws IOException
Create an instance of IrsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IrsResponse
- Throws:
IOException- if the JSON string is invalid with respect to IrsResponse
-
toJson
public String toJson()
Convert an instance of IrsResponse to an JSON string- Returns:
- JSON string
-
-