Package Avalara.SDK.model.EInvoicing.V1
Class Identifier
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.Identifier
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Identifier extends Object
Identifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentifier.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISPLAY_NAMEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description Identifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierdisplayName(String displayName)booleanequals(Object o)static IdentifierfromJson(String jsonString)Create an instance of Identifier given an JSON stringStringgetDisplayName()Display name of the identifier.StringgetName()Identifier name (e.g., Peppol Participant ID).StringgetValue()Value of the identifier.inthashCode()Identifiername(String name)voidsetDisplayName(String displayName)voidsetName(String name)voidsetValue(String value)StringtoJson()Convert an instance of Identifier to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundIdentifiervalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public Identifier name(String name)
-
getName
@Nonnull public String getName()
Identifier name (e.g., Peppol Participant ID).- Returns:
- name
-
setName
public void setName(String name)
-
displayName
public Identifier displayName(String displayName)
-
getDisplayName
@Nullable public String getDisplayName()
Display name of the identifier.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
value
public Identifier value(String value)
-
setValue
public void setValue(String value)
-
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 Identifier
-
fromJson
public static Identifier fromJson(String jsonString) throws IOException
Create an instance of Identifier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Identifier
- Throws:
IOException- if the JSON string is invalid with respect to Identifier
-
toJson
public String toJson()
Convert an instance of Identifier to an JSON string- Returns:
- JSON string
-
-