public class PhysicalAddress extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
PhysicalAddress.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
city |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected String |
countryOrRegion |
protected String |
odataType |
protected String |
postalCode |
protected String |
postOfficeBox |
protected String |
state |
protected String |
street |
protected PhysicalAddressType |
type |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
PhysicalAddress() |
| Modifier and Type | Method and Description |
|---|---|
static PhysicalAddress.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<String> |
getCity() |
Optional<String> |
getCountryOrRegion() |
Optional<String> |
getPostalCode() |
Optional<String> |
getPostOfficeBox() |
Optional<String> |
getState() |
Optional<String> |
getStreet() |
Optional<PhysicalAddressType> |
getType() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
PhysicalAddress |
withCity(String city) |
PhysicalAddress |
withCountryOrRegion(String countryOrRegion) |
PhysicalAddress |
withPostalCode(String postalCode) |
PhysicalAddress |
withPostOfficeBox(String postOfficeBox) |
PhysicalAddress |
withState(String state) |
PhysicalAddress |
withStreet(String street) |
PhysicalAddress |
withType(PhysicalAddressType type) |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected PhysicalAddressType type
protected String postOfficeBox
protected String street
protected String city
protected String state
protected String countryOrRegion
protected String postalCode
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<PhysicalAddressType> getType()
public PhysicalAddress withType(PhysicalAddressType type)
public PhysicalAddress withPostOfficeBox(String postOfficeBox)
public PhysicalAddress withStreet(String street)
public PhysicalAddress withCity(String city)
public PhysicalAddress withState(String state)
public PhysicalAddress withCountryOrRegion(String countryOrRegion)
public PhysicalAddress withPostalCode(String postalCode)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static PhysicalAddress.Builder builder()
Copyright © 2018–2020. All rights reserved.