Package Avalara.SDK.model.A1099.V2
Class Data
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.Data
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Data extends Object
Data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ATTRIBUTESstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Data()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Dataattributes(Attribute attributes)booleanequals(Object o)static DatafromJson(String jsonString)Create an instance of Data given an JSON stringAttributegetAttributes()Get attributesStringgetId()Get idLinkgetLinks()Get linksStringgetType()Get typeinthashCode()Dataid(String id)Datalinks(Link links)voidsetAttributes(Attribute attributes)voidsetId(String id)voidsetLinks(Link links)voidsetType(String type)StringtoJson()Convert an instance of Data to an JSON stringStringtoString()Datatype(String type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTRIBUTES
public static final String SERIALIZED_NAME_ATTRIBUTES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
setType
public void setType(String type)
-
setAttributes
public void setAttributes(Attribute attributes)
-
setLinks
public void setLinks(Link links)
-
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 Data
-
fromJson
public static Data fromJson(String jsonString) throws IOException
Create an instance of Data given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Data
- Throws:
IOException- if the JSON string is invalid with respect to Data
-
toJson
public String toJson()
Convert an instance of Data to an JSON string- Returns:
- JSON string
-
-