Package odata.msgraph.client.beta.entity
Class BookingBusiness
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.BookingNamedEntity
-
- odata.msgraph.client.beta.entity.BookingBusiness
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BookingBusiness extends BookingNamedEntity implements com.github.davidmoten.odata.client.ODataEntityType
“The bookingBusiness is the top level object which contains business information and related business objects such as appointments, customers, services and staff members.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingBusiness.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PhysicalAddressaddressprotected List<BookingWorkHours>businessHoursprotected StringbusinessHoursNextLinkprotected StringbusinessTypeprotected StringdefaultCurrencyIsoprotected Stringemailprotected BooleanisPublishedprotected Stringphoneprotected StringpublicUrlprotected BookingSchedulingPolicyschedulingPolicyprotected StringwebSiteUrl-
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 protectedBookingBusiness()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingBusiness.BuilderbuilderBookingBusiness()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<PhysicalAddress>getAddress()BookingAppointmentCollectionRequestgetAppointments()“All appointments in this business.”com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours>getBusinessHours()com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours>getBusinessHours(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getBusinessType()BookingAppointmentCollectionRequestgetCalendarView()“A calendar view of appointments in this business.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()BookingCustomerCollectionRequestgetCustomers()“All customers of this business.”Optional<String>getDefaultCurrencyIso()Optional<String>getEmail()Optional<Boolean>getIsPublished()Org.OData.Core.V1.ComputedOptional<String>getPhone()Optional<String>getPublicUrl()Org.OData.Core.V1.ComputedOptional<BookingSchedulingPolicy>getSchedulingPolicy()BookingServiceCollectionRequestgetServices()“All services offered by this business.”BookingStaffMemberCollectionRequestgetStaffMembers()“All staff members that provides services in this business.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getWebSiteUrl()“Example: https://www.contoso.com”StringodataTypeName()BookingBusinesspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.ActionRequestNoReturnpublish()BookingBusinessput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnunpublish()BookingBusinesswithAddress(PhysicalAddress address)BookingBusinesswithBusinessHours(List<BookingWorkHours> businessHours)BookingBusinesswithBusinessType(String businessType)BookingBusinesswithDefaultCurrencyIso(String defaultCurrencyIso)BookingBusinesswithEmail(String email)BookingBusinesswithIsPublished(Boolean isPublished)Returns an immutable copy ofthiswith just theisPublishedfield changed.BookingBusinesswithPhone(String phone)BookingBusinesswithPublicUrl(String publicUrl)Returns an immutable copy ofthiswith just thepublicUrlfield changed.BookingBusinesswithSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy)BookingBusinesswithUnmappedField(String name, String value)BookingBusinesswithWebSiteUrl(String webSiteUrl)Returns an immutable copy ofthiswith just thewebSiteUrlfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.BookingNamedEntity
getDisplayName, withDisplayName
-
-
-
-
Field Detail
-
address
protected PhysicalAddress address
-
businessHours
protected List<BookingWorkHours> businessHours
-
businessHoursNextLink
protected String businessHoursNextLink
-
businessType
protected String businessType
-
defaultCurrencyIso
protected String defaultCurrencyIso
-
email
protected String email
-
isPublished
protected Boolean isPublished
-
phone
protected String phone
-
publicUrl
protected String publicUrl
-
schedulingPolicy
protected BookingSchedulingPolicy schedulingPolicy
-
webSiteUrl
protected String webSiteUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classBookingNamedEntity
-
builderBookingBusiness
public static BookingBusiness.Builder builderBookingBusiness()
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 classBookingNamedEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classBookingNamedEntity
-
getAddress
public Optional<PhysicalAddress> getAddress()
-
withAddress
public BookingBusiness withAddress(PhysicalAddress address)
-
getBusinessHours
public com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> getBusinessHours()
-
withBusinessHours
public BookingBusiness withBusinessHours(List<BookingWorkHours> businessHours)
-
getBusinessHours
public com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> getBusinessHours(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withBusinessType
public BookingBusiness withBusinessType(String businessType)
-
withDefaultCurrencyIso
public BookingBusiness withDefaultCurrencyIso(String defaultCurrencyIso)
-
withEmail
public BookingBusiness withEmail(String email)
-
getIsPublished
public Optional<Boolean> getIsPublished()
Org.OData.Core.V1.Computed
true
- Returns:
- property isPublished
-
withIsPublished
public BookingBusiness withIsPublished(Boolean isPublished)
Returns an immutable copy ofthiswith just theisPublishedfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
isPublished- new value ofisPublishedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisPublishedfield changed
-
withPhone
public BookingBusiness withPhone(String phone)
-
getPublicUrl
public Optional<String> getPublicUrl()
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.IsURL
true
- Returns:
- property publicUrl
-
withPublicUrl
public BookingBusiness withPublicUrl(String publicUrl)
Returns an immutable copy ofthiswith just thepublicUrlfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.IsURL
true
- Parameters:
publicUrl- new value ofpublicUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepublicUrlfield changed
-
getSchedulingPolicy
public Optional<BookingSchedulingPolicy> getSchedulingPolicy()
-
withSchedulingPolicy
public BookingBusiness withSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy)
-
getWebSiteUrl
public Optional<String> getWebSiteUrl()
“Example: https://www.contoso.com”Org.OData.Core.V1.IsURL
true
- Returns:
- property webSiteUrl
-
withWebSiteUrl
public BookingBusiness withWebSiteUrl(String webSiteUrl)
Returns an immutable copy ofthiswith just thewebSiteUrlfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Example: https://www.contoso.com”
Org.OData.Core.V1.IsURL
true
- Parameters:
webSiteUrl- new value ofwebSiteUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewebSiteUrlfield changed
-
withUnmappedField
public BookingBusiness withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classBookingNamedEntity
-
getAppointments
public BookingAppointmentCollectionRequest getAppointments()
“All appointments in this business.”- Returns:
- navigational property appointments
-
getCalendarView
public BookingAppointmentCollectionRequest getCalendarView()
“A calendar view of appointments in this business.”- Returns:
- navigational property calendarView
-
getCustomers
public BookingCustomerCollectionRequest getCustomers()
“All customers of this business.”- Returns:
- navigational property customers
-
getServices
public BookingServiceCollectionRequest getServices()
“All services offered by this business.”- Returns:
- navigational property services
-
getStaffMembers
public BookingStaffMemberCollectionRequest getStaffMembers()
“All staff members that provides services in this business.”- Returns:
- navigational property staffMembers
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classBookingNamedEntity
-
patch
public BookingBusiness patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classBookingNamedEntity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public BookingBusiness put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classBookingNamedEntity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
publish
public com.github.davidmoten.odata.client.ActionRequestNoReturn publish()
-
unpublish
public com.github.davidmoten.odata.client.ActionRequestNoReturn unpublish()
-
toString
public String toString()
- Overrides:
toStringin classBookingNamedEntity
-
-