Package odata.msgraph.client.complex
Class BookingSchedulingPolicy
- java.lang.Object
-
- odata.msgraph.client.complex.BookingSchedulingPolicy
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class BookingSchedulingPolicy extends Object implements com.github.davidmoten.odata.client.ODataType
“This type represents the set of policies that dictate how bookings can be created in a Booking Calendar.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingSchedulingPolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanallowStaffSelectionprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DurationmaximumAdvanceprotected DurationminimumLeadTimeprotected StringodataTypeprotected BooleansendConfirmationsToOwnerprotected DurationtimeSlotIntervalprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookingSchedulingPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingSchedulingPolicy.Builderbuilder()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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()BookingSchedulingPolicywithAllowStaffSelection(Boolean allowStaffSelection)Returns an immutable copy ofthiswith just theallowStaffSelectionfield changed.BookingSchedulingPolicywithMaximumAdvance(Duration maximumAdvance)Returns an immutable copy ofthiswith just themaximumAdvancefield changed.BookingSchedulingPolicywithMinimumLeadTime(Duration minimumLeadTime)Returns an immutable copy ofthiswith just theminimumLeadTimefield changed.BookingSchedulingPolicywithSendConfirmationsToOwner(Boolean sendConfirmationsToOwner)Returns an immutable copy ofthiswith just thesendConfirmationsToOwnerfield changed.BookingSchedulingPolicywithTimeSlotInterval(Duration timeSlotInterval)Returns an immutable copy ofthiswith just thetimeSlotIntervalfield changed.BookingSchedulingPolicywithUnmappedField(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
-
allowStaffSelection
protected Boolean allowStaffSelection
-
maximumAdvance
protected Duration maximumAdvance
-
minimumLeadTime
protected Duration minimumLeadTime
-
sendConfirmationsToOwner
protected Boolean sendConfirmationsToOwner
-
timeSlotInterval
protected Duration timeSlotInterval
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAllowStaffSelection
public Optional<Boolean> getAllowStaffSelection()
“Allow customers to choose a specific person for the booking.”- Returns:
- property allowStaffSelection
-
withAllowStaffSelection
public BookingSchedulingPolicy withAllowStaffSelection(Boolean allowStaffSelection)
Returns an immutable copy ofthiswith just theallowStaffSelectionfield 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.“Allow customers to choose a specific person for the booking.”
- Parameters:
allowStaffSelection- new value ofallowStaffSelectionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theallowStaffSelectionfield changed
-
getMaximumAdvance
public Optional<Duration> getMaximumAdvance()
“Maximum number of days in advance that a booking can be made.”- Returns:
- property maximumAdvance
-
withMaximumAdvance
public BookingSchedulingPolicy withMaximumAdvance(Duration maximumAdvance)
Returns an immutable copy ofthiswith just themaximumAdvancefield 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.“Maximum number of days in advance that a booking can be made.”
- Parameters:
maximumAdvance- new value ofmaximumAdvancefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumAdvancefield changed
-
getMinimumLeadTime
public Optional<Duration> getMinimumLeadTime()
“Minimum lead time for bookings and cancellations.”- Returns:
- property minimumLeadTime
-
withMinimumLeadTime
public BookingSchedulingPolicy withMinimumLeadTime(Duration minimumLeadTime)
Returns an immutable copy ofthiswith just theminimumLeadTimefield 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.“Minimum lead time for bookings and cancellations.”
- Parameters:
minimumLeadTime- new value ofminimumLeadTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumLeadTimefield changed
-
getSendConfirmationsToOwner
public Optional<Boolean> getSendConfirmationsToOwner()
“Notify the business via email when a booking is created or changed.”- Returns:
- property sendConfirmationsToOwner
-
withSendConfirmationsToOwner
public BookingSchedulingPolicy withSendConfirmationsToOwner(Boolean sendConfirmationsToOwner)
Returns an immutable copy ofthiswith just thesendConfirmationsToOwnerfield 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.“Notify the business via email when a booking is created or changed.”
- Parameters:
sendConfirmationsToOwner- new value ofsendConfirmationsToOwnerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesendConfirmationsToOwnerfield changed
-
getTimeSlotInterval
public Optional<Duration> getTimeSlotInterval()
“Duration of each time slot.”- Returns:
- property timeSlotInterval
-
withTimeSlotInterval
public BookingSchedulingPolicy withTimeSlotInterval(Duration timeSlotInterval)
Returns an immutable copy ofthiswith just thetimeSlotIntervalfield 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.“Duration of each time slot.”
- Parameters:
timeSlotInterval- new value oftimeSlotIntervalfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetimeSlotIntervalfield changed
-
withUnmappedField
public BookingSchedulingPolicy 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 BookingSchedulingPolicy.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
-
-