public class BookingSchedulingPolicy extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
BookingSchedulingPolicy.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
allowStaffSelection |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected Duration |
maximumAdvance |
protected Duration |
minimumLeadTime |
protected String |
odataType |
protected Boolean |
sendConfirmationsToOwner |
protected Duration |
timeSlotInterval |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
BookingSchedulingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
static BookingSchedulingPolicy.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<Boolean> |
getAllowStaffSelection()
“Allow customers to choose a specific person for the booking.”
|
Optional<Duration> |
getMaximumAdvance()
“Maximum number of days in advance that a booking can be made.”
|
Optional<Duration> |
getMinimumLeadTime()
“Minimum lead time for bookings and cancellations.”
|
Optional<Boolean> |
getSendConfirmationsToOwner()
“Notify the business via email when a booking is created or changed.”
|
Optional<Duration> |
getTimeSlotInterval()
“Duration of each time slot.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
BookingSchedulingPolicy |
withAllowStaffSelection(Boolean allowStaffSelection)
Returns an immutable copy of
this with just the allowStaffSelection field changed. |
BookingSchedulingPolicy |
withMaximumAdvance(Duration maximumAdvance)
Returns an immutable copy of
this with just the maximumAdvance
field changed. |
BookingSchedulingPolicy |
withMinimumLeadTime(Duration minimumLeadTime)
Returns an immutable copy of
this with just the minimumLeadTime
field changed. |
BookingSchedulingPolicy |
withSendConfirmationsToOwner(Boolean sendConfirmationsToOwner)
Returns an immutable copy of
this with just the sendConfirmationsToOwner field changed. |
BookingSchedulingPolicy |
withTimeSlotInterval(Duration timeSlotInterval)
Returns an immutable copy of
this with just the timeSlotInterval
field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected Duration timeSlotInterval
protected Duration minimumLeadTime
protected Duration maximumAdvance
protected Boolean sendConfirmationsToOwner
protected Boolean allowStaffSelection
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<Duration> getTimeSlotInterval()
public BookingSchedulingPolicy withTimeSlotInterval(Duration timeSlotInterval)
this with just the timeSlotInterval
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Duration of each time slot.”
timeSlotInterval - new value of timeSlotInterval field (as defined in service metadata)this with just the timeSlotInterval field changedpublic Optional<Duration> getMinimumLeadTime()
public BookingSchedulingPolicy withMinimumLeadTime(Duration minimumLeadTime)
this with just the minimumLeadTime
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Minimum lead time for bookings and cancellations.”
minimumLeadTime - new value of minimumLeadTime field (as defined in service metadata)this with just the minimumLeadTime field changedpublic Optional<Duration> getMaximumAdvance()
public BookingSchedulingPolicy withMaximumAdvance(Duration maximumAdvance)
this with just the maximumAdvance
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Maximum number of days in advance that a booking can be made.”
maximumAdvance - new value of maximumAdvance field (as defined in service metadata)this with just the maximumAdvance field changedpublic Optional<Boolean> getSendConfirmationsToOwner()
public BookingSchedulingPolicy withSendConfirmationsToOwner(Boolean sendConfirmationsToOwner)
this with just the sendConfirmationsToOwner field changed. Field description below. The field name
is also added to an internal map of changed fields in the returned object so
that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Notify the business via email when a booking is created or changed.”
sendConfirmationsToOwner - new value of sendConfirmationsToOwner field (as defined in service metadata)this with just the sendConfirmationsToOwner field changedpublic Optional<Boolean> getAllowStaffSelection()
public BookingSchedulingPolicy withAllowStaffSelection(Boolean allowStaffSelection)
this with just the allowStaffSelection field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.patch() is called (if available)on the returned object only
the changed fields are submitted.
“Allow customers to choose a specific person for the booking.”
allowStaffSelection - new value of allowStaffSelection field (as defined in service metadata)this with just the allowStaffSelection field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static BookingSchedulingPolicy.Builder builder()
Copyright © 2018–2020. All rights reserved.