Package odata.msgraph.client.beta.entity
Class BookingCustomer
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.BookingNamedEntity
-
- odata.msgraph.client.beta.entity.BookingPerson
-
- odata.msgraph.client.beta.entity.BookingCustomer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BookingCustomer extends BookingPerson implements com.github.davidmoten.odata.client.ODataEntityType
“Represents a customer of the business.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingCustomer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<PhysicalAddress>addressesprotected StringaddressesNextLinkprotected List<Phone>phonesprotected StringphonesNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.BookingPerson
emailAddress
-
Fields inherited from class odata.msgraph.client.beta.entity.BookingNamedEntity
displayName
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookingCustomer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingCustomer.BuilderbuilderBookingCustomer()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress>getAddresses()com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress>getAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<Phone>getPhones()com.github.davidmoten.odata.client.CollectionPage<Phone>getPhones(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()BookingCustomerpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)BookingCustomerput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()BookingCustomerwithAddresses(List<PhysicalAddress> addresses)BookingCustomerwithPhones(List<Phone> phones)BookingCustomerwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.BookingPerson
builderBookingPerson, getEmailAddress, withEmailAddress
-
Methods inherited from class odata.msgraph.client.beta.entity.BookingNamedEntity
getDisplayName, withDisplayName
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classBookingPerson
-
builderBookingCustomer
public static BookingCustomer.Builder builderBookingCustomer()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classBookingPerson
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classBookingPerson
-
getAddresses
public com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress> getAddresses()
-
withAddresses
public BookingCustomer withAddresses(List<PhysicalAddress> addresses)
-
getAddresses
public com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress> getAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getPhones
public com.github.davidmoten.odata.client.CollectionPage<Phone> getPhones()
-
withPhones
public BookingCustomer withPhones(List<Phone> phones)
-
getPhones
public com.github.davidmoten.odata.client.CollectionPage<Phone> getPhones(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public BookingCustomer withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classBookingPerson
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classBookingPerson
-
patch
public BookingCustomer patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classBookingPerson- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public BookingCustomer put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classBookingPerson- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classBookingPerson
-
-