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 Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • BookingSchedulingPolicy

      public BookingSchedulingPolicy()
      Instantiates a new BookingSchedulingPolicy and 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

      @Nonnull public Map<String,Object> 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.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getAllowStaffSelection

      @Nullable public Boolean 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:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getCustomAvailabilities

      @Nullable public List<BookingsAvailabilityWindow> 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
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGeneralAvailability

      @Nullable public BookingsAvailability getGeneralAvailability()
      Gets the generalAvailability property value. General availability of the service defined by the scheduling policy.
      Returns:
      a BookingsAvailability
    • getIsMeetingInviteToCustomersEnabled

      @Nullable public Boolean 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

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getSendConfirmationsToOwner

      @Nullable public Boolean 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      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

      public void setAllowStaffSelection(@Nullable Boolean value)
      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

      public void setCustomAvailabilities(@Nullable List<BookingsAvailabilityWindow> value)
      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

      public void setGeneralAvailability(@Nullable BookingsAvailability value)
      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

      public void setIsMeetingInviteToCustomersEnabled(@Nullable Boolean value)
      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

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setSendConfirmationsToOwner

      public void setSendConfirmationsToOwner(@Nullable Boolean value)
      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.