Package odata.msgraph.client.beta.entity
Class BookingService
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.BookingNamedEntity
-
- odata.msgraph.client.beta.entity.BookingService
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BookingService extends BookingNamedEntity implements com.github.davidmoten.odata.client.ODataEntityType
“Represents a particular service offered by a booking business.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingService.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringadditionalInformationprotected List<BookingQuestionAssignment>customQuestionsprotected StringcustomQuestionsNextLinkprotected DurationdefaultDurationprotected LocationdefaultLocationprotected DoubledefaultPriceprotected BookingPriceTypedefaultPriceTypeprotected List<BookingReminder>defaultRemindersprotected StringdefaultRemindersNextLinkprotected Stringdescriptionprotected BooleanisHiddenFromCustomersprotected BooleanisLocationOnlineprotected IntegermaximumAttendeesCountprotected Stringnotesprotected DurationpostBufferprotected DurationpreBufferprotected BookingSchedulingPolicyschedulingPolicyprotected BooleansmsNotificationsEnabledprotected List<String>staffMemberIdsprotected StringstaffMemberIdsNextLinkprotected StringwebUrl-
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 protectedBookingService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingService.BuilderbuilderBookingService()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAdditionalInformation()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment>getCustomQuestions()com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment>getCustomQuestions(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<Duration>getDefaultDuration()Optional<Location>getDefaultLocation()Optional<Double>getDefaultPrice()Optional<BookingPriceType>getDefaultPriceType()com.github.davidmoten.odata.client.CollectionPage<BookingReminder>getDefaultReminders()“The value of this property is only available when reading an individual booking service by id.”com.github.davidmoten.odata.client.CollectionPage<BookingReminder>getDefaultReminders(com.github.davidmoten.odata.client.HttpRequestOptions options)“The value of this property is only available when reading an individual booking service by id.”Optional<String>getDescription()Optional<Boolean>getIsHiddenFromCustomers()Optional<Boolean>getIsLocationOnline()Optional<Integer>getMaximumAttendeesCount()Optional<String>getNotes()Optional<Duration>getPostBuffer()Optional<Duration>getPreBuffer()Optional<BookingSchedulingPolicy>getSchedulingPolicy()Optional<Boolean>getSmsNotificationsEnabled()com.github.davidmoten.odata.client.CollectionPage<String>getStaffMemberIds()com.github.davidmoten.odata.client.CollectionPage<String>getStaffMemberIds(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getWebUrl()“The URL of the booking service.”StringodataTypeName()BookingServicepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)BookingServiceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()BookingServicewithAdditionalInformation(String additionalInformation)BookingServicewithCustomQuestions(List<BookingQuestionAssignment> customQuestions)BookingServicewithDefaultDuration(Duration defaultDuration)BookingServicewithDefaultLocation(Location defaultLocation)BookingServicewithDefaultPrice(Double defaultPrice)BookingServicewithDefaultPriceType(BookingPriceType defaultPriceType)BookingServicewithDefaultReminders(List<BookingReminder> defaultReminders)Returns an immutable copy ofthiswith just thedefaultRemindersfield changed.BookingServicewithDescription(String description)BookingServicewithIsHiddenFromCustomers(Boolean isHiddenFromCustomers)BookingServicewithIsLocationOnline(Boolean isLocationOnline)BookingServicewithMaximumAttendeesCount(Integer maximumAttendeesCount)BookingServicewithNotes(String notes)BookingServicewithPostBuffer(Duration postBuffer)BookingServicewithPreBuffer(Duration preBuffer)BookingServicewithSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy)BookingServicewithSmsNotificationsEnabled(Boolean smsNotificationsEnabled)BookingServicewithStaffMemberIds(List<String> staffMemberIds)BookingServicewithUnmappedField(String name, String value)BookingServicewithWebUrl(String webUrl)Returns an immutable copy ofthiswith just thewebUrlfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.BookingNamedEntity
getDisplayName, withDisplayName
-
-
-
-
Field Detail
-
additionalInformation
protected String additionalInformation
-
customQuestions
protected List<BookingQuestionAssignment> customQuestions
-
customQuestionsNextLink
protected String customQuestionsNextLink
-
defaultDuration
protected Duration defaultDuration
-
defaultLocation
protected Location defaultLocation
-
defaultPrice
protected Double defaultPrice
-
defaultPriceType
protected BookingPriceType defaultPriceType
-
defaultReminders
protected List<BookingReminder> defaultReminders
-
defaultRemindersNextLink
protected String defaultRemindersNextLink
-
description
protected String description
-
isHiddenFromCustomers
protected Boolean isHiddenFromCustomers
-
isLocationOnline
protected Boolean isLocationOnline
-
maximumAttendeesCount
protected Integer maximumAttendeesCount
-
notes
protected String notes
-
postBuffer
protected Duration postBuffer
-
preBuffer
protected Duration preBuffer
-
schedulingPolicy
protected BookingSchedulingPolicy schedulingPolicy
-
smsNotificationsEnabled
protected Boolean smsNotificationsEnabled
-
staffMemberIdsNextLink
protected String staffMemberIdsNextLink
-
webUrl
protected String webUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classBookingNamedEntity
-
builderBookingService
public static BookingService.Builder builderBookingService()
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
-
withAdditionalInformation
public BookingService withAdditionalInformation(String additionalInformation)
-
getCustomQuestions
public com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment> getCustomQuestions()
-
withCustomQuestions
public BookingService withCustomQuestions(List<BookingQuestionAssignment> customQuestions)
-
getCustomQuestions
public com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment> getCustomQuestions(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withDefaultDuration
public BookingService withDefaultDuration(Duration defaultDuration)
-
withDefaultLocation
public BookingService withDefaultLocation(Location defaultLocation)
-
withDefaultPrice
public BookingService withDefaultPrice(Double defaultPrice)
-
getDefaultPriceType
public Optional<BookingPriceType> getDefaultPriceType()
-
withDefaultPriceType
public BookingService withDefaultPriceType(BookingPriceType defaultPriceType)
-
getDefaultReminders
public com.github.davidmoten.odata.client.CollectionPage<BookingReminder> getDefaultReminders()
“The value of this property is only available when reading an individual booking service by id.”- Returns:
- property defaultReminders
-
withDefaultReminders
public BookingService withDefaultReminders(List<BookingReminder> defaultReminders)
Returns an immutable copy ofthiswith just thedefaultRemindersfield 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.“The value of this property is only available when reading an individual booking service by id.”
- Parameters:
defaultReminders- new value ofdefaultRemindersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultRemindersfield changed
-
getDefaultReminders
public com.github.davidmoten.odata.client.CollectionPage<BookingReminder> getDefaultReminders(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The value of this property is only available when reading an individual booking service by id.”- Parameters:
options- specify connect and read timeouts- Returns:
- property defaultReminders
-
withDescription
public BookingService withDescription(String description)
-
withIsHiddenFromCustomers
public BookingService withIsHiddenFromCustomers(Boolean isHiddenFromCustomers)
-
withIsLocationOnline
public BookingService withIsLocationOnline(Boolean isLocationOnline)
-
withMaximumAttendeesCount
public BookingService withMaximumAttendeesCount(Integer maximumAttendeesCount)
-
withNotes
public BookingService withNotes(String notes)
-
withPostBuffer
public BookingService withPostBuffer(Duration postBuffer)
-
withPreBuffer
public BookingService withPreBuffer(Duration preBuffer)
-
getSchedulingPolicy
public Optional<BookingSchedulingPolicy> getSchedulingPolicy()
-
withSchedulingPolicy
public BookingService withSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy)
-
withSmsNotificationsEnabled
public BookingService withSmsNotificationsEnabled(Boolean smsNotificationsEnabled)
-
getStaffMemberIds
public com.github.davidmoten.odata.client.CollectionPage<String> getStaffMemberIds()
-
withStaffMemberIds
public BookingService withStaffMemberIds(List<String> staffMemberIds)
-
getStaffMemberIds
public com.github.davidmoten.odata.client.CollectionPage<String> getStaffMemberIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getWebUrl
public Optional<String> getWebUrl()
“The URL of the booking service.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.IsURL
true
- Returns:
- property webUrl
-
withWebUrl
public BookingService withWebUrl(String webUrl)
Returns an immutable copy ofthiswith just thewebUrlfield 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.“The URL of the booking service.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.IsURL
true
- Parameters:
webUrl- new value ofwebUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewebUrlfield changed
-
withUnmappedField
public BookingService withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classBookingNamedEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classBookingNamedEntity
-
patch
public BookingService 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 BookingService 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
-
toString
public String toString()
- Overrides:
toStringin classBookingNamedEntity
-
-