Package Avalara.SDK.model.EInvoicing.V1
Class Extension
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.Extension
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Extension extends Object
Extension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtension.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_KEYstatic StringSERIALIZED_NAME_VALUES
-
Constructor Summary
Constructors Constructor Description Extension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionaddValuesItem(String valuesItem)booleanequals(Object o)static ExtensionfromJson(String jsonString)Create an instance of Extension given an JSON stringStringgetKey()Name of the custom attribute.List<String>getValues()Array of string values associated with the custom attribute.inthashCode()Extensionkey(String key)voidsetKey(String key)voidsetValues(List<String> values)StringtoJson()Convert an instance of Extension to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundExtensionvalues(List<String> values)
-
-
-
Field Detail
-
SERIALIZED_NAME_KEY
public static final String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUES
public static final String SERIALIZED_NAME_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
setKey
public void setKey(String key)
-
getValues
@Nonnull public List<String> getValues()
Array of string values associated with the custom attribute.- Returns:
- values
-
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 Extension
-
fromJson
public static Extension fromJson(String jsonString) throws IOException
Create an instance of Extension given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Extension
- Throws:
IOException- if the JSON string is invalid with respect to Extension
-
toJson
public String toJson()
Convert an instance of Extension to an JSON string- Returns:
- JSON string
-
-