Package Avalara.SDK.model.EInvoicing.V1
Class InputDataFormats
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.InputDataFormats
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class InputDataFormats extends Object
Format and version used when inputting the data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputDataFormats.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 InputDataFormats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputDataFormatsaddVersionsItem(String versionsItem)booleanequals(Object o)InputDataFormatsformat(String format)static InputDataFormatsfromJson(String jsonString)Create an instance of InputDataFormats given an JSON stringStringgetFormat()Document formatList<String>getVersions()Get versionsinthashCode()voidsetFormat(String format)voidsetVersions(List<String> versions)StringtoJson()Convert an instance of InputDataFormats to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundInputDataFormatsversions(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 InputDataFormats format(String format)
-
setFormat
public void setFormat(String format)
-
versions
public InputDataFormats versions(List<String> versions)
-
addVersionsItem
public InputDataFormats 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 InputDataFormats
-
fromJson
public static InputDataFormats fromJson(String jsonString) throws IOException
Create an instance of InputDataFormats given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InputDataFormats
- Throws:
IOException- if the JSON string is invalid with respect to InputDataFormats
-
toJson
public String toJson()
Convert an instance of InputDataFormats to an JSON string- Returns:
- JSON string
-
-