Class Address
-
- All Implemented Interfaces:
public final class Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAddress.BuilderA builder for Address.
public final classAddress.StateTwo-digit state code
public final classAddress.CountryCountry
-
Method Summary
Modifier and Type Method Description final Stringaddress1()Primary address line final Stringcity()City name final StringpostalCode()Postal code final Address.Statestate()Two-digit state code final Optional<String>address2()Secondary address line (optional) final Optional<Address.Country>country()Country final JsonField<String>_address1()Returns the raw JSON value of address1. final JsonField<String>_city()Returns the raw JSON value of city. final JsonField<String>_postalCode()Returns the raw JSON value of postalCode. final JsonField<Address.State>_state()Returns the raw JSON value of state. final JsonField<String>_address2()Returns the raw JSON value of address2. final JsonField<Address.Country>_country()Returns the raw JSON value of country. final Map<String, JsonValue>_additionalProperties()final Address.BuildertoBuilder()final Addressvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Address.Builderbuilder()Returns a mutable builder for constructing an instance of Address. -
-
Method Detail
-
postalCode
final String postalCode()
Postal code
-
state
final Address.State state()
Two-digit state code
-
country
final Optional<Address.Country> country()
Country
-
_address1
final JsonField<String> _address1()
Returns the raw JSON value of address1.
Unlike address1, this method doesn't throw if the JSON field has an unexpected type.
-
_city
final JsonField<String> _city()
Returns the raw JSON value of city.
Unlike city, this method doesn't throw if the JSON field has an unexpected type.
-
_postalCode
final JsonField<String> _postalCode()
Returns the raw JSON value of postalCode.
Unlike postalCode, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<Address.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_address2
final JsonField<String> _address2()
Returns the raw JSON value of address2.
Unlike address2, this method doesn't throw if the JSON field has an unexpected type.
-
_country
final JsonField<Address.Country> _country()
Returns the raw JSON value of country.
Unlike country, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Address.Builder toBuilder()
-
builder
final static Address.Builder builder()
Returns a mutable builder for constructing an instance of Address.
The following fields are required:
.address1() .city() .postalCode() .state()
-
-
-
-