Package com.microsoft.graph.models
Class BookingStaffMember
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BookingStaffMemberBase
com.microsoft.graph.models.BookingStaffMember
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class BookingStaffMember
extends BookingStaffMemberBase
implements com.microsoft.kiota.serialization.Parsable
Represents a staff member who provides services in a business.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookingStaffMembercreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the availabilityIsAffectedByPersonalCalendar property value.Gets the createdDateTime property value.Gets the displayName property value.Gets the emailAddress property value.The deserialization information for the current modelGets the isEmailNotificationEnabled property value.Gets the lastUpdatedDateTime property value.Gets the membershipStatus property value.getRole()Gets the role property value.Gets the timeZone property value.Gets the useBusinessHours property value.Gets the workingHours property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the availabilityIsAffectedByPersonalCalendar property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetEmailAddress(String value) Sets the emailAddress property value.voidSets the isEmailNotificationEnabled property value.voidSets the lastUpdatedDateTime property value.voidSets the membershipStatus property value.voidsetRole(BookingStaffRole value) Sets the role property value.voidsetTimeZone(String value) Sets the timeZone property value.voidsetUseBusinessHours(Boolean value) Sets the useBusinessHours property value.voidsetWorkingHours(List<BookingWorkHours> value) Sets the workingHours property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
BookingStaffMember
public BookingStaffMember()Instantiates a newBookingStaffMemberand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static BookingStaffMember 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
BookingStaffMember
-
getAvailabilityIsAffectedByPersonalCalendar
Gets the availabilityIsAffectedByPersonalCalendar property value. True means that if the staff member is a Microsoft 365 user, the Bookings API would verify the staff member's availability in their personal calendar in Microsoft 365, before making a booking.- Returns:
- a
Boolean
-
getCreatedDateTime
Gets the createdDateTime property value. The date, time, and time zone when the staff member 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
-
getDisplayName
Gets the displayName property value. The name of the staff member, as displayed to customers. Required.- Returns:
- a
String
-
getEmailAddress
Gets the emailAddress property value. The email address of the staff member. This email address can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classBookingStaffMemberBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsEmailNotificationEnabled
Gets the isEmailNotificationEnabled property value. Indicates that a staff member is notified via email when a booking assigned to them is created or changed. The default value is true.- Returns:
- a
Boolean
-
getLastUpdatedDateTime
Gets the lastUpdatedDateTime property value. The date, time, and time zone when the staff member 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
-
getMembershipStatus
Gets the membershipStatus property value. The membershipStatus property- Returns:
- a
BookingStaffMembershipStatus
-
getRole
Gets the role property value. The role property- Returns:
- a
BookingStaffRole
-
getTimeZone
Gets the timeZone property value. The time zone of the staff member. For a list of possible values, see dateTimeTimeZone.- Returns:
- a
String
-
getUseBusinessHours
Gets the useBusinessHours property value. True means the staff member's availability is as specified in the businessHours property of the business. False means the availability is determined by the staff member's workingHours property setting.- Returns:
- a
Boolean
-
getWorkingHours
Gets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they're initialized to be the same as the businessHours property of the business.- Returns:
- a
List<BookingWorkHours>
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classBookingStaffMemberBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setAvailabilityIsAffectedByPersonalCalendar
Sets the availabilityIsAffectedByPersonalCalendar property value. True means that if the staff member is a Microsoft 365 user, the Bookings API would verify the staff member's availability in their personal calendar in Microsoft 365, before making a booking.- Parameters:
value- Value to set for the availabilityIsAffectedByPersonalCalendar property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date, time, and time zone when the staff member 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.
-
setDisplayName
Sets the displayName property value. The name of the staff member, as displayed to customers. Required.- Parameters:
value- Value to set for the displayName property.
-
setEmailAddress
Sets the emailAddress property value. The email address of the staff member. This email address can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required.- Parameters:
value- Value to set for the emailAddress property.
-
setIsEmailNotificationEnabled
Sets the isEmailNotificationEnabled property value. Indicates that a staff member is notified via email when a booking assigned to them is created or changed. The default value is true.- Parameters:
value- Value to set for the isEmailNotificationEnabled property.
-
setLastUpdatedDateTime
Sets the lastUpdatedDateTime property value. The date, time, and time zone when the staff member 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.
-
setMembershipStatus
Sets the membershipStatus property value. The membershipStatus property- Parameters:
value- Value to set for the membershipStatus property.
-
setRole
Sets the role property value. The role property- Parameters:
value- Value to set for the role property.
-
setTimeZone
Sets the timeZone property value. The time zone of the staff member. For a list of possible values, see dateTimeTimeZone.- Parameters:
value- Value to set for the timeZone property.
-
setUseBusinessHours
Sets the useBusinessHours property value. True means the staff member's availability is as specified in the businessHours property of the business. False means the availability is determined by the staff member's workingHours property setting.- Parameters:
value- Value to set for the useBusinessHours property.
-
setWorkingHours
Sets the workingHours property value. The range of hours each day of the week that the staff member is available for booking. By default, they're initialized to be the same as the businessHours property of the business.- Parameters:
value- Value to set for the workingHours property.
-