Package odata.msgraph.client.complex
Class PhysicalAddress
- java.lang.Object
-
- odata.msgraph.client.complex.PhysicalAddress
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class PhysicalAddress extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhysicalAddress.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcityprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringcountryOrRegionprotected StringodataTypeprotected StringpostalCodeprotected Stringstateprotected Stringstreetprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedPhysicalAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhysicalAddress.Builderbuilder()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>getState()Optional<String>getStreet()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()PhysicalAddresswithCity(String city)PhysicalAddresswithCountryOrRegion(String countryOrRegion)PhysicalAddresswithPostalCode(String postalCode)PhysicalAddresswithState(String state)PhysicalAddresswithStreet(String street)PhysicalAddresswithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
city
protected String city
-
countryOrRegion
protected String countryOrRegion
-
postalCode
protected String postalCode
-
state
protected String state
-
street
protected String street
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withCity
public PhysicalAddress withCity(String city)
-
withCountryOrRegion
public PhysicalAddress withCountryOrRegion(String countryOrRegion)
-
withPostalCode
public PhysicalAddress withPostalCode(String postalCode)
-
withState
public PhysicalAddress withState(String state)
-
withStreet
public PhysicalAddress withStreet(String street)
-
withUnmappedField
public PhysicalAddress withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static PhysicalAddress.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-