Class BookingService

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BookingService
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class BookingService extends Entity implements com.microsoft.kiota.serialization.Parsable
Represents a particular service offered by a booking business.
  • Constructor Details

    • BookingService

      public BookingService()
      Instantiates a new BookingService and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static BookingService 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 BookingService
    • getAdditionalInformation

      @Nullable public String getAdditionalInformation()
      Gets the additionalInformation property value. Additional information that is sent to the customer when an appointment is confirmed.
      Returns:
      a String
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date, time, and time zone when the service was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getCustomQuestions

      @Nullable public List<BookingQuestionAssignment> getCustomQuestions()
      Gets the customQuestions property value. Contains the set of custom questions associated with a particular service.
      Returns:
      a List<BookingQuestionAssignment>
    • getDefaultDuration

      @Nullable public com.microsoft.kiota.PeriodAndDuration getDefaultDuration()
      Gets the defaultDuration property value. The default length of the service, represented in numbers of days, hours, minutes, and seconds. For example, P11D23H59M59.999999999999S.
      Returns:
      a PeriodAndDuration
    • getDefaultLocation

      @Nullable public Location getDefaultLocation()
      Gets the defaultLocation property value. The default physical location for the service.
      Returns:
      a Location
    • getDefaultPrice

      @Nullable public Double getDefaultPrice()
      Gets the defaultPrice property value. The default monetary price for the service.
      Returns:
      a Double
    • getDefaultPriceType

      @Nullable public BookingPriceType getDefaultPriceType()
      Gets the defaultPriceType property value. Represents the type of pricing of a booking service.
      Returns:
      a BookingPriceType
    • getDefaultReminders

      @Nullable public List<BookingReminder> getDefaultReminders()
      Gets the defaultReminders property value. The default set of reminders for an appointment of this service. The value of this property is available only when reading this bookingService by its ID.
      Returns:
      a List<BookingReminder>
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. A text description for the service.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. A service name.
      Returns:
      a String
    • 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
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsAnonymousJoinEnabled

      @Nullable public Boolean getIsAnonymousJoinEnabled()
      Gets the isAnonymousJoinEnabled property value. Indicates if an anonymousJoinWebUrl(webrtcUrl) is generated for the appointment booked for this service. The default value is false.
      Returns:
      a Boolean
    • getIsCustomerAllowedToManageBooking

      @Nullable public Boolean getIsCustomerAllowedToManageBooking()
      Gets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false.
      Returns:
      a Boolean
    • getIsHiddenFromCustomers

      @Nullable public Boolean getIsHiddenFromCustomers()
      Gets the isHiddenFromCustomers property value. True indicates that this service isn't available to customers for booking.
      Returns:
      a Boolean
    • getIsLocationOnline

      @Nullable public Boolean getIsLocationOnline()
      Gets the isLocationOnline property value. Indicates that the appointments for the service are held online. The default value is false.
      Returns:
      a Boolean
    • getLanguageTag

      @Nullable public String getLanguageTag()
      Gets the languageTag property value. The language of the self-service booking page.
      Returns:
      a String
    • getLastUpdatedDateTime

      @Nullable public OffsetDateTime getLastUpdatedDateTime()
      Gets the lastUpdatedDateTime property value. The date, time, and time zone when the service was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getMaximumAttendeesCount

      @Nullable public Integer getMaximumAttendeesCount()
      Gets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation.
      Returns:
      a Integer
    • getNotes

      @Nullable public String getNotes()
      Gets the notes property value. Additional information about this service.
      Returns:
      a String
    • getPostBuffer

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPostBuffer()
      Gets the postBuffer property value. The time to buffer after an appointment for this service ends, and before the next customer appointment can be booked.
      Returns:
      a PeriodAndDuration
    • getPreBuffer

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPreBuffer()
      Gets the preBuffer property value. The time to buffer before an appointment for this service can start.
      Returns:
      a PeriodAndDuration
    • getSchedulingPolicy

      @Nullable public BookingSchedulingPolicy getSchedulingPolicy()
      Gets the schedulingPolicy property value. The set of policies that determine how appointments for this type of service should be created and managed.
      Returns:
      a BookingSchedulingPolicy
    • getSmsNotificationsEnabled

      @Nullable public Boolean getSmsNotificationsEnabled()
      Gets the smsNotificationsEnabled property value. True indicates SMS notifications can be sent to the customers for the appointment of the service. Default value is false.
      Returns:
      a Boolean
    • getStaffMemberIds

      @Nullable public List<String> getStaffMemberIds()
      Gets the staffMemberIds property value. Represents those staff members who provide this service.
      Returns:
      a List<String>
    • getWebUrl

      @Nullable public String getWebUrl()
      Gets the webUrl property value. The URL a customer uses to access the service.
      Returns:
      a String
    • 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
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalInformation

      public void setAdditionalInformation(@Nullable String value)
      Sets the additionalInformation property value. Additional information that is sent to the customer when an appointment is confirmed.
      Parameters:
      value - Value to set for the additionalInformation property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date, time, and time zone when the service was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setCustomQuestions

      public void setCustomQuestions(@Nullable List<BookingQuestionAssignment> value)
      Sets the customQuestions property value. Contains the set of custom questions associated with a particular service.
      Parameters:
      value - Value to set for the customQuestions property.
    • setDefaultDuration

      public void setDefaultDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the defaultDuration property value. The default length of the service, represented in numbers of days, hours, minutes, and seconds. For example, P11D23H59M59.999999999999S.
      Parameters:
      value - Value to set for the defaultDuration property.
    • setDefaultLocation

      public void setDefaultLocation(@Nullable Location value)
      Sets the defaultLocation property value. The default physical location for the service.
      Parameters:
      value - Value to set for the defaultLocation property.
    • setDefaultPrice

      public void setDefaultPrice(@Nullable Double value)
      Sets the defaultPrice property value. The default monetary price for the service.
      Parameters:
      value - Value to set for the defaultPrice property.
    • setDefaultPriceType

      public void setDefaultPriceType(@Nullable BookingPriceType value)
      Sets the defaultPriceType property value. Represents the type of pricing of a booking service.
      Parameters:
      value - Value to set for the defaultPriceType property.
    • setDefaultReminders

      public void setDefaultReminders(@Nullable List<BookingReminder> value)
      Sets the defaultReminders property value. The default set of reminders for an appointment of this service. The value of this property is available only when reading this bookingService by its ID.
      Parameters:
      value - Value to set for the defaultReminders property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. A text description for the service.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. A service name.
      Parameters:
      value - Value to set for the displayName property.
    • setIsAnonymousJoinEnabled

      public void setIsAnonymousJoinEnabled(@Nullable Boolean value)
      Sets the isAnonymousJoinEnabled property value. Indicates if an anonymousJoinWebUrl(webrtcUrl) is generated for the appointment booked for this service. The default value is false.
      Parameters:
      value - Value to set for the isAnonymousJoinEnabled property.
    • setIsCustomerAllowedToManageBooking

      public void setIsCustomerAllowedToManageBooking(@Nullable Boolean value)
      Sets the isCustomerAllowedToManageBooking property value. Indicates that the customer can manage bookings created by the staff. The default value is false.
      Parameters:
      value - Value to set for the isCustomerAllowedToManageBooking property.
    • setIsHiddenFromCustomers

      public void setIsHiddenFromCustomers(@Nullable Boolean value)
      Sets the isHiddenFromCustomers property value. True indicates that this service isn't available to customers for booking.
      Parameters:
      value - Value to set for the isHiddenFromCustomers property.
    • setIsLocationOnline

      public void setIsLocationOnline(@Nullable Boolean value)
      Sets the isLocationOnline property value. Indicates that the appointments for the service are held online. The default value is false.
      Parameters:
      value - Value to set for the isLocationOnline property.
    • setLanguageTag

      public void setLanguageTag(@Nullable String value)
      Sets the languageTag property value. The language of the self-service booking page.
      Parameters:
      value - Value to set for the languageTag property.
    • setLastUpdatedDateTime

      public void setLastUpdatedDateTime(@Nullable OffsetDateTime value)
      Sets the lastUpdatedDateTime property value. The date, time, and time zone when the service was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the lastUpdatedDateTime property.
    • setMaximumAttendeesCount

      public void setMaximumAttendeesCount(@Nullable Integer value)
      Sets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation.
      Parameters:
      value - Value to set for the maximumAttendeesCount property.
    • setNotes

      public void setNotes(@Nullable String value)
      Sets the notes property value. Additional information about this service.
      Parameters:
      value - Value to set for the notes property.
    • setPostBuffer

      public void setPostBuffer(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the postBuffer property value. The time to buffer after an appointment for this service ends, and before the next customer appointment can be booked.
      Parameters:
      value - Value to set for the postBuffer property.
    • setPreBuffer

      public void setPreBuffer(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the preBuffer property value. The time to buffer before an appointment for this service can start.
      Parameters:
      value - Value to set for the preBuffer property.
    • setSchedulingPolicy

      public void setSchedulingPolicy(@Nullable BookingSchedulingPolicy value)
      Sets the schedulingPolicy property value. The set of policies that determine how appointments for this type of service should be created and managed.
      Parameters:
      value - Value to set for the schedulingPolicy property.
    • setSmsNotificationsEnabled

      public void setSmsNotificationsEnabled(@Nullable Boolean value)
      Sets the smsNotificationsEnabled property value. True indicates SMS notifications can be sent to the customers for the appointment of the service. Default value is false.
      Parameters:
      value - Value to set for the smsNotificationsEnabled property.
    • setStaffMemberIds

      public void setStaffMemberIds(@Nullable List<String> value)
      Sets the staffMemberIds property value. Represents those staff members who provide this service.
      Parameters:
      value - Value to set for the staffMemberIds property.
    • setWebUrl

      public void setWebUrl(@Nullable String value)
      Sets the webUrl property value. The URL a customer uses to access the service.
      Parameters:
      value - Value to set for the webUrl property.