Package Avalara.SDK.model.EInvoicing.V1
Class OutputDataFormats
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.OutputDataFormats
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class OutputDataFormats extends Object
Format and version used when outputting the data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOutputDataFormats.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FORMATstatic StringSERIALIZED_NAME_VERSIONS
-
Constructor Summary
Constructors Constructor Description OutputDataFormats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputDataFormatsaddVersionsItem(String versionsItem)booleanequals(Object o)OutputDataFormatsformat(String format)static OutputDataFormatsfromJson(String jsonString)Create an instance of OutputDataFormats given an JSON stringStringgetFormat()Document formatList<String>getVersions()Get versionsinthashCode()voidsetFormat(String format)voidsetVersions(List<String> versions)StringtoJson()Convert an instance of OutputDataFormats to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundOutputDataFormatsversions(List<String> versions)
-
-
-
Field Detail
-
SERIALIZED_NAME_FORMAT
public static final String SERIALIZED_NAME_FORMAT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSIONS
public static final String SERIALIZED_NAME_VERSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
format
public OutputDataFormats format(String format)
-
setFormat
public void setFormat(String format)
-
versions
public OutputDataFormats versions(List<String> versions)
-
addVersionsItem
public OutputDataFormats addVersionsItem(String versionsItem)
-
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 OutputDataFormats
-
fromJson
public static OutputDataFormats fromJson(String jsonString) throws IOException
Create an instance of OutputDataFormats given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OutputDataFormats
- Throws:
IOException- if the JSON string is invalid with respect to OutputDataFormats
-
toJson
public String toJson()
Convert an instance of OutputDataFormats to an JSON string- Returns:
- JSON string
-
-