Package com.microsoft.graph.models
Class BookingAppointment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BookingAppointment
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class BookingAppointment
extends Entity
implements com.microsoft.kiota.serialization.Parsable
Represents a booked appointment of a service by a customer in a business.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookingAppointment
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the additionalInformation property value.Gets the anonymousJoinWebUrl property value.Gets the appointmentLabel property value.Gets the createdDateTime property value.Gets the customerEmailAddress property value.Gets the customerName property value.Gets the customerNotes property value.Gets the customerPhone property value.Gets the customers property value.Gets the customerTimeZone property value.com.microsoft.kiota.PeriodAndDuration
Gets the duration property value.Gets the endDateTime property value.The deserialization information for the current modelGets the filledAttendeesCount property value.Gets the isCustomerAllowedToManageBooking property value.Gets the isLocationOnline property value.Gets the joinWebUrl property value.Gets the lastUpdatedDateTime property value.Gets the maximumAttendeesCount property value.Gets the optOutOfCustomerEmail property value.com.microsoft.kiota.PeriodAndDuration
Gets the postBuffer property value.com.microsoft.kiota.PeriodAndDuration
Gets the preBuffer property value.getPrice()
Gets the price property value.Gets the priceType property value.Gets the reminders property value.Gets the selfServiceAppointmentId property value.Gets the serviceId property value.Gets the serviceLocation property value.Gets the serviceName property value.Gets the serviceNotes property value.Gets the smsNotificationsEnabled property value.Gets the staffMemberIds property value.Gets the startDateTime property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAdditionalInformation
(String value) Sets the additionalInformation property value.void
setAnonymousJoinWebUrl
(String value) Sets the anonymousJoinWebUrl property value.void
setAppointmentLabel
(String value) Sets the appointmentLabel property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setCustomerEmailAddress
(String value) Sets the customerEmailAddress property value.void
setCustomerName
(String value) Sets the customerName property value.void
setCustomerNotes
(String value) Sets the customerNotes property value.void
setCustomerPhone
(String value) Sets the customerPhone property value.void
Sets the customers property value.void
setCustomerTimeZone
(String value) Sets the customerTimeZone property value.void
setDuration
(com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value.void
setEndDateTime
(DateTimeTimeZone value) Sets the endDateTime property value.void
setFilledAttendeesCount
(Integer value) Sets the filledAttendeesCount property value.void
Sets the isCustomerAllowedToManageBooking property value.void
setIsLocationOnline
(Boolean value) Sets the isLocationOnline property value.void
setJoinWebUrl
(String value) Sets the joinWebUrl property value.void
Sets the lastUpdatedDateTime property value.void
setMaximumAttendeesCount
(Integer value) Sets the maximumAttendeesCount property value.void
setOptOutOfCustomerEmail
(Boolean value) Sets the optOutOfCustomerEmail property value.void
setPostBuffer
(com.microsoft.kiota.PeriodAndDuration value) Sets the postBuffer property value.void
setPreBuffer
(com.microsoft.kiota.PeriodAndDuration value) Sets the preBuffer property value.void
Sets the price property value.void
setPriceType
(BookingPriceType value) Sets the priceType property value.void
setReminders
(List<BookingReminder> value) Sets the reminders property value.void
Sets the selfServiceAppointmentId property value.void
setServiceId
(String value) Sets the serviceId property value.void
setServiceLocation
(Location value) Sets the serviceLocation property value.void
setServiceName
(String value) Sets the serviceName property value.void
setServiceNotes
(String value) Sets the serviceNotes property value.void
Sets the smsNotificationsEnabled property value.void
setStaffMemberIds
(List<String> value) Sets the staffMemberIds property value.void
setStartDateTime
(DateTimeTimeZone value) Sets the startDateTime property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
BookingAppointment
public BookingAppointment()Instantiates a newBookingAppointment
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static BookingAppointment 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
BookingAppointment
-
getAdditionalInformation
Gets the additionalInformation property value. Additional information that is sent to the customer when an appointment is confirmed.- Returns:
- a
String
-
getAnonymousJoinWebUrl
Gets the anonymousJoinWebUrl property value. The URL of the meeting to join anonymously.- Returns:
- a
String
-
getAppointmentLabel
Gets the appointmentLabel property value. The custom label that can be stamped on this appointment by users.- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. The date, time, and time zone when the appointment 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
-
getCustomerEmailAddress
Gets the customerEmailAddress property value. The SMTP address of the bookingCustomer who books the appointment.- Returns:
- a
String
-
getCustomerName
Gets the customerName property value. The customer's name.- Returns:
- a
String
-
getCustomerNotes
Gets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when you read this bookingAppointment by its ID. You can set this property only when you initially create an appointment with a new customer.- Returns:
- a
String
-
getCustomerPhone
Gets the customerPhone property value. The customer's phone number.- Returns:
- a
String
-
getCustomers
Gets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional.- Returns:
- a
List<BookingCustomerInformationBase>
-
getCustomerTimeZone
Gets the customerTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.- Returns:
- a
String
-
getDuration
@Nullable public com.microsoft.kiota.PeriodAndDuration getDuration()Gets the duration property value. The length of the appointment, denoted in ISO8601 format.- Returns:
- a
PeriodAndDuration
-
getEndDateTime
Gets the endDateTime property value. The endDateTime property- Returns:
- a
DateTimeTimeZone
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFilledAttendeesCount
Gets the filledAttendeesCount property value. The current number of customers in the appointment.- Returns:
- a
Integer
-
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
-
getIsLocationOnline
Gets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false.- Returns:
- a
Boolean
-
getJoinWebUrl
Gets the joinWebUrl property value. The URL of the online meeting for the appointment.- Returns:
- a
String
-
getLastUpdatedDateTime
Gets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business 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
Gets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. 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
-
getOptOutOfCustomerEmail
Gets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment.- Returns:
- a
Boolean
-
getPostBuffer
@Nullable public com.microsoft.kiota.PeriodAndDuration getPostBuffer()Gets the postBuffer property value. The amount of time to reserve after the appointment ends, for cleaning up, as an example. The value is expressed in ISO8601 format.- Returns:
- a
PeriodAndDuration
-
getPreBuffer
@Nullable public com.microsoft.kiota.PeriodAndDuration getPreBuffer()Gets the preBuffer property value. The amount of time to reserve before the appointment begins, for preparation, as an example. The value is expressed in ISO8601 format.- Returns:
- a
PeriodAndDuration
-
getPrice
Gets the price property value. The regular price for an appointment for the specified bookingService.- Returns:
- a
Double
-
getPriceType
Gets the priceType property value. Represents the type of pricing of a booking service.- Returns:
- a
BookingPriceType
-
getReminders
Gets the reminders property value. The collection of customer reminders sent for this appointment. The value of this property is available only when reading this bookingAppointment by its ID.- Returns:
- a
List<BookingReminder>
-
getSelfServiceAppointmentId
Gets the selfServiceAppointmentId property value. Another tracking ID for the appointment, if the appointment was created directly by the customer on the scheduling page, as opposed to by a staff member on behalf of the customer.- Returns:
- a
String
-
getServiceId
Gets the serviceId property value. The ID of the bookingService associated with this appointment.- Returns:
- a
String
-
getServiceLocation
Gets the serviceLocation property value. The location where the service is delivered.- Returns:
- a
Location
-
getServiceName
Gets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it's computed from the service associated with the appointment by the serviceId property.- Returns:
- a
String
-
getServiceNotes
Gets the serviceNotes property value. Notes from a bookingStaffMember. The value of this property is available only when reading this bookingAppointment by its ID.- Returns:
- a
String
-
getSmsNotificationsEnabled
Gets the smsNotificationsEnabled property value. If true, indicates SMS notifications will be sent to the customers for the appointment. Default value is false.- Returns:
- a
Boolean
-
getStaffMemberIds
Gets the staffMemberIds property value. The ID of each bookingStaffMember who is scheduled in this appointment. -
getStartDateTime
Gets the startDateTime property value. The startDateTime property- Returns:
- a
DateTimeTimeZone
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAdditionalInformation
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.
-
setAnonymousJoinWebUrl
Sets the anonymousJoinWebUrl property value. The URL of the meeting to join anonymously.- Parameters:
value
- Value to set for the anonymousJoinWebUrl property.
-
setAppointmentLabel
Sets the appointmentLabel property value. The custom label that can be stamped on this appointment by users.- Parameters:
value
- Value to set for the appointmentLabel property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date, time, and time zone when the appointment 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.
-
setCustomerEmailAddress
Sets the customerEmailAddress property value. The SMTP address of the bookingCustomer who books the appointment.- Parameters:
value
- Value to set for the customerEmailAddress property.
-
setCustomerName
Sets the customerName property value. The customer's name.- Parameters:
value
- Value to set for the customerName property.
-
setCustomerNotes
Sets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when you read this bookingAppointment by its ID. You can set this property only when you initially create an appointment with a new customer.- Parameters:
value
- Value to set for the customerNotes property.
-
setCustomerPhone
Sets the customerPhone property value. The customer's phone number.- Parameters:
value
- Value to set for the customerPhone property.
-
setCustomers
Sets the customers property value. A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional.- Parameters:
value
- Value to set for the customers property.
-
setCustomerTimeZone
Sets the customerTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.- Parameters:
value
- Value to set for the customerTimeZone property.
-
setDuration
public void setDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value. The length of the appointment, denoted in ISO8601 format.- Parameters:
value
- Value to set for the duration property.
-
setEndDateTime
Sets the endDateTime property value. The endDateTime property- Parameters:
value
- Value to set for the endDateTime property.
-
setFilledAttendeesCount
Sets the filledAttendeesCount property value. The current number of customers in the appointment.- Parameters:
value
- Value to set for the filledAttendeesCount property.
-
setIsCustomerAllowedToManageBooking
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.
-
setIsLocationOnline
Sets the isLocationOnline property value. Indicates that the appointment is held online. The default value is false.- Parameters:
value
- Value to set for the isLocationOnline property.
-
setJoinWebUrl
Sets the joinWebUrl property value. The URL of the online meeting for the appointment.- Parameters:
value
- Value to set for the joinWebUrl property.
-
setLastUpdatedDateTime
Sets the lastUpdatedDateTime property value. The date, time, and time zone when the booking business 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
Sets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. 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.
-
setOptOutOfCustomerEmail
Sets the optOutOfCustomerEmail property value. If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment.- Parameters:
value
- Value to set for the optOutOfCustomerEmail property.
-
setPostBuffer
public void setPostBuffer(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the postBuffer property value. The amount of time to reserve after the appointment ends, for cleaning up, as an example. The value is expressed in ISO8601 format.- 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 amount of time to reserve before the appointment begins, for preparation, as an example. The value is expressed in ISO8601 format.- Parameters:
value
- Value to set for the preBuffer property.
-
setPrice
Sets the price property value. The regular price for an appointment for the specified bookingService.- Parameters:
value
- Value to set for the price property.
-
setPriceType
Sets the priceType property value. Represents the type of pricing of a booking service.- Parameters:
value
- Value to set for the priceType property.
-
setReminders
Sets the reminders property value. The collection of customer reminders sent for this appointment. The value of this property is available only when reading this bookingAppointment by its ID.- Parameters:
value
- Value to set for the reminders property.
-
setSelfServiceAppointmentId
Sets the selfServiceAppointmentId property value. Another tracking ID for the appointment, if the appointment was created directly by the customer on the scheduling page, as opposed to by a staff member on behalf of the customer.- Parameters:
value
- Value to set for the selfServiceAppointmentId property.
-
setServiceId
Sets the serviceId property value. The ID of the bookingService associated with this appointment.- Parameters:
value
- Value to set for the serviceId property.
-
setServiceLocation
Sets the serviceLocation property value. The location where the service is delivered.- Parameters:
value
- Value to set for the serviceLocation property.
-
setServiceName
Sets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it's computed from the service associated with the appointment by the serviceId property.- Parameters:
value
- Value to set for the serviceName property.
-
setServiceNotes
Sets the serviceNotes property value. Notes from a bookingStaffMember. The value of this property is available only when reading this bookingAppointment by its ID.- Parameters:
value
- Value to set for the serviceNotes property.
-
setSmsNotificationsEnabled
Sets the smsNotificationsEnabled property value. If true, indicates SMS notifications will be sent to the customers for the appointment. Default value is false.- Parameters:
value
- Value to set for the smsNotificationsEnabled property.
-
setStaffMemberIds
Sets the staffMemberIds property value. The ID of each bookingStaffMember who is scheduled in this appointment.- Parameters:
value
- Value to set for the staffMemberIds property.
-
setStartDateTime
Sets the startDateTime property value. The startDateTime property- Parameters:
value
- Value to set for the startDateTime property.
-