Package Avalara.SDK.model.EInvoicing.V1
Class Address
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.Address
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Address extends Object
Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_LINE1static StringSERIALIZED_NAME_LINE2static StringSERIALIZED_NAME_POSTAL_CODEstatic StringSERIALIZED_NAME_STATE
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Addresscity(String city)Addresscountry(String country)booleanequals(Object o)static AddressfromJson(String jsonString)Create an instance of Address given an JSON stringStringgetCity()CityStringgetCountry()Country (ISO 3166)StringgetLine1()Address line 1StringgetLine2()Address line 2StringgetPostalCode()Postal codeStringgetState()StateinthashCode()Addressline1(String line1)Addressline2(String line2)AddresspostalCode(String postalCode)voidsetCity(String city)voidsetCountry(String country)voidsetLine1(String line1)voidsetLine2(String line2)voidsetPostalCode(String postalCode)voidsetState(String state)Addressstate(String state)StringtoJson()Convert an instance of Address to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINE1
public static final String SERIALIZED_NAME_LINE1
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE2
public static final String SERIALIZED_NAME_LINE2
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLine1
public void setLine1(String line1)
-
setLine2
public void setLine2(String line2)
-
setCity
public void setCity(String city)
-
setState
public void setState(String state)
-
setCountry
public void setCountry(String country)
-
setPostalCode
public void setPostalCode(String postalCode)
-
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 Address
-
fromJson
public static Address fromJson(String jsonString) throws IOException
Create an instance of Address given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address
- Throws:
IOException- if the JSON string is invalid with respect to Address
-
toJson
public String toJson()
Convert an instance of Address to an JSON string- Returns:
- JSON string
-
-