Class WireAddress
-
- All Implemented Interfaces:
public final class WireAddress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWireAddress.BuilderA builder for WireAddress.
-
Method Summary
Modifier and Type Method Description final Stringcity()City final StringcountryCode()ISO 3166-1 alpha-2 country code final Stringstreet1()Street address line 1 final Optional<String>postalCode()Postal code final Optional<String>state()State or province final Optional<String>street2()Street address line 2 final JsonField<String>_city()Returns the raw JSON value of city. final JsonField<String>_countryCode()Returns the raw JSON value of countryCode. final JsonField<String>_street1()Returns the raw JSON value of street1. final JsonField<String>_postalCode()Returns the raw JSON value of postalCode. final JsonField<String>_state()Returns the raw JSON value of state. final JsonField<String>_street2()Returns the raw JSON value of street2. final Map<String, JsonValue>_additionalProperties()final WireAddress.BuildertoBuilder()final WireAddressvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WireAddress.Builderbuilder()Returns a mutable builder for constructing an instance of WireAddress. -
-
Method Detail
-
countryCode
final String countryCode()
ISO 3166-1 alpha-2 country code
-
postalCode
final Optional<String> postalCode()
Postal code
-
_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.
-
_countryCode
final JsonField<String> _countryCode()
Returns the raw JSON value of countryCode.
Unlike countryCode, this method doesn't throw if the JSON field has an unexpected type.
-
_street1
final JsonField<String> _street1()
Returns the raw JSON value of street1.
Unlike street1, 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<String> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_street2
final JsonField<String> _street2()
Returns the raw JSON value of street2.
Unlike street2, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WireAddress.Builder toBuilder()
-
validate
final WireAddress validate()
-
builder
final static WireAddress.Builder builder()
Returns a mutable builder for constructing an instance of WireAddress.
The following fields are required:
.city() .countryCode() .street1()
-
-
-
-