public class Address extends Object
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
String |
address1()
Get first line of an Address.
|
String |
address2()
Get the second line of the Address.
|
String |
city()
Get the city for the address.
|
String |
country()
Get the country for the address.
|
String |
postalCode()
Get the postal code for the address.
|
String |
state()
Get the state or province for the address.
|
Address |
withAddress1(String address1)
Set first line of an Address.
|
Address |
withAddress2(String address2)
Set the second line of the Address.
|
Address |
withCity(String city)
Set the city for the address.
|
Address |
withCountry(String country)
Set the country for the address.
|
Address |
withPostalCode(String postalCode)
Set the postal code for the address.
|
Address |
withState(String state)
Set the state or province for the address.
|
public String address1()
public Address withAddress1(String address1)
address1
- the address1 value to setpublic String address2()
public Address withAddress2(String address2)
address2
- the address2 value to setpublic String city()
public Address withCity(String city)
city
- the city value to setpublic String country()
public Address withCountry(String country)
country
- the country value to setpublic String postalCode()
public Address withPostalCode(String postalCode)
postalCode
- the postalCode value to setpublic String state()
Copyright © 2019. All rights reserved.