Class PostalAddressType
- java.lang.Object
-
- odata.msgraph.client.beta.complex.PostalAddressType
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class PostalAddressType extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostalAddressType.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcityprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringcountryLetterCodeprotected StringodataTypeprotected StringpostalCodeprotected Stringstateprotected Stringstreetprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedPostalAddressType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PostalAddressType.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>getCountryLetterCode()Optional<String>getPostalCode()Optional<String>getState()Optional<String>getStreet()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()PostalAddressTypewithCity(String city)PostalAddressTypewithCountryLetterCode(String countryLetterCode)PostalAddressTypewithPostalCode(String postalCode)PostalAddressTypewithState(String state)PostalAddressTypewithStreet(String street)PostalAddressTypewithUnmappedField(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
-
countryLetterCode
protected String countryLetterCode
-
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 PostalAddressType withCity(String city)
-
withCountryLetterCode
public PostalAddressType withCountryLetterCode(String countryLetterCode)
-
withPostalCode
public PostalAddressType withPostalCode(String postalCode)
-
withState
public PostalAddressType withState(String state)
-
withStreet
public PostalAddressType withStreet(String street)
-
withUnmappedField
public PostalAddressType 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 PostalAddressType.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
-
-