Package com.microsoft.graph.models
Class BookingSchedulingPolicy
java.lang.Object
com.microsoft.graph.models.BookingSchedulingPolicy
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class BookingSchedulingPolicy
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
This type represents the set of policies that dictate how bookings can be created in a Booking Calendar.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookingSchedulingPolicycreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the allowStaffSelection property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the customAvailabilities property value.The deserialization information for the current modelGets the generalAvailability property value.Gets the isMeetingInviteToCustomersEnabled property value.com.microsoft.kiota.PeriodAndDurationGets the maximumAdvance property value.com.microsoft.kiota.PeriodAndDurationGets the minimumLeadTime property value.Gets the @odata.type property value.Gets the sendConfirmationsToOwner property value.com.microsoft.kiota.PeriodAndDurationGets the timeSlotInterval property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetAllowStaffSelection(Boolean value) Sets the allowStaffSelection property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidSets the customAvailabilities property value.voidSets the generalAvailability property value.voidSets the isMeetingInviteToCustomersEnabled property value.voidsetMaximumAdvance(com.microsoft.kiota.PeriodAndDuration value) Sets the maximumAdvance property value.voidsetMinimumLeadTime(com.microsoft.kiota.PeriodAndDuration value) Sets the minimumLeadTime property value.voidsetOdataType(String value) Sets the @odata.type property value.voidSets the sendConfirmationsToOwner property value.voidsetTimeSlotInterval(com.microsoft.kiota.PeriodAndDuration value) Sets the timeSlotInterval property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
BookingSchedulingPolicy
public BookingSchedulingPolicy()Instantiates a newBookingSchedulingPolicyand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static BookingSchedulingPolicy createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
BookingSchedulingPolicy
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getAllowStaffSelection
Gets the allowStaffSelection property value. True to allow customers to choose a specific person for the booking.- Returns:
- a
Boolean
-
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getCustomAvailabilities
Gets the customAvailabilities property value. Custom availability of the service in a given time frame.- Returns:
- a
List<BookingsAvailabilityWindow>
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getGeneralAvailability
Gets the generalAvailability property value. General availability of the service defined by the scheduling policy.- Returns:
- a
BookingsAvailability
-
getIsMeetingInviteToCustomersEnabled
Gets the isMeetingInviteToCustomersEnabled property value. Indicates whether the meeting invite is sent to the customers. The default value is false.- Returns:
- a
Boolean
-
getMaximumAdvance
@Nullable public com.microsoft.kiota.PeriodAndDuration getMaximumAdvance()Gets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format.- Returns:
- a
PeriodAndDuration
-
getMinimumLeadTime
@Nullable public com.microsoft.kiota.PeriodAndDuration getMinimumLeadTime()Gets the minimumLeadTime property value. The minimum amount of time before which bookings and cancellations must be made. It follows the ISO 8601 format.- Returns:
- a
PeriodAndDuration
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getSendConfirmationsToOwner
Gets the sendConfirmationsToOwner property value. True to notify the business via email when a booking is created or changed. Use the email address specified in the email property of the bookingBusiness entity for the business.- Returns:
- a
Boolean
-
getTimeSlotInterval
@Nullable public com.microsoft.kiota.PeriodAndDuration getTimeSlotInterval()Gets the timeSlotInterval property value. Duration of each time slot, denoted in ISO 8601 format.- Returns:
- a
PeriodAndDuration
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setAllowStaffSelection
Sets the allowStaffSelection property value. True to allow customers to choose a specific person for the booking.- Parameters:
value- Value to set for the allowStaffSelection property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setCustomAvailabilities
Sets the customAvailabilities property value. Custom availability of the service in a given time frame.- Parameters:
value- Value to set for the customAvailabilities property.
-
setGeneralAvailability
Sets the generalAvailability property value. General availability of the service defined by the scheduling policy.- Parameters:
value- Value to set for the generalAvailability property.
-
setIsMeetingInviteToCustomersEnabled
Sets the isMeetingInviteToCustomersEnabled property value. Indicates whether the meeting invite is sent to the customers. The default value is false.- Parameters:
value- Value to set for the isMeetingInviteToCustomersEnabled property.
-
setMaximumAdvance
public void setMaximumAdvance(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format.- Parameters:
value- Value to set for the maximumAdvance property.
-
setMinimumLeadTime
public void setMinimumLeadTime(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the minimumLeadTime property value. The minimum amount of time before which bookings and cancellations must be made. It follows the ISO 8601 format.- Parameters:
value- Value to set for the minimumLeadTime property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setSendConfirmationsToOwner
Sets the sendConfirmationsToOwner property value. True to notify the business via email when a booking is created or changed. Use the email address specified in the email property of the bookingBusiness entity for the business.- Parameters:
value- Value to set for the sendConfirmationsToOwner property.
-
setTimeSlotInterval
public void setTimeSlotInterval(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the timeSlotInterval property value. Duration of each time slot, denoted in ISO 8601 format.- Parameters:
value- Value to set for the timeSlotInterval property.
-