Package com.microsoft.graph.models
Class Schedule
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Schedule
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Schedule
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Schedule
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the dayNotes property value.Gets the enabled property value.The deserialization information for the current modelGets the isActivitiesIncludedWhenCopyingShiftsEnabled property value.Gets the offerShiftRequests property value.Gets the offerShiftRequestsEnabled property value.Gets the openShiftChangeRequests property value.Gets the openShifts property value.Gets the openShiftsEnabled property value.Gets the provisionStatus property value.Gets the provisionStatusCode property value.Gets the schedulingGroups property value.Gets the shifts property value.Gets the startDayOfWeek property value.Gets the swapShiftsChangeRequests property value.Gets the swapShiftsRequestsEnabled property value.Gets the timeCards property value.Gets the timeClockEnabled property value.Gets the timeClockSettings property value.Gets the timeOffReasons property value.Gets the timeOffRequests property value.Gets the timeOffRequestsEnabled property value.Gets the timesOff property value.Gets the timeZone property value.Gets the workforceIntegrationIds property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDayNotes
(List<DayNote> value) Sets the dayNotes property value.void
setEnabled
(Boolean value) Sets the enabled property value.void
Sets the isActivitiesIncludedWhenCopyingShiftsEnabled property value.void
Sets the offerShiftRequests property value.void
Sets the offerShiftRequestsEnabled property value.void
Sets the openShiftChangeRequests property value.void
setOpenShifts
(List<OpenShift> value) Sets the openShifts property value.void
setOpenShiftsEnabled
(Boolean value) Sets the openShiftsEnabled property value.void
Sets the provisionStatus property value.void
setProvisionStatusCode
(String value) Sets the provisionStatusCode property value.void
setSchedulingGroups
(List<SchedulingGroup> value) Sets the schedulingGroups property value.void
Sets the shifts property value.void
setStartDayOfWeek
(DayOfWeek value) Sets the startDayOfWeek property value.void
Sets the swapShiftsChangeRequests property value.void
Sets the swapShiftsRequestsEnabled property value.void
setTimeCards
(List<TimeCard> value) Sets the timeCards property value.void
setTimeClockEnabled
(Boolean value) Sets the timeClockEnabled property value.void
Sets the timeClockSettings property value.void
setTimeOffReasons
(List<TimeOffReason> value) Sets the timeOffReasons property value.void
setTimeOffRequests
(List<TimeOffRequest> value) Sets the timeOffRequests property value.void
setTimeOffRequestsEnabled
(Boolean value) Sets the timeOffRequestsEnabled property value.void
setTimesOff
(List<TimeOff> value) Sets the timesOff property value.void
setTimeZone
(String value) Sets the timeZone property value.void
setWorkforceIntegrationIds
(List<String> value) Sets the workforceIntegrationIds property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Schedule
public Schedule()Instantiates a newSchedule
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Schedule 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
Schedule
-
getDayNotes
Gets the dayNotes property value. The day notes in the schedule. -
getEnabled
Gets the enabled property value. Indicates whether the schedule is enabled for the team. Required.- Returns:
- a
Boolean
-
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>>
-
getIsActivitiesIncludedWhenCopyingShiftsEnabled
Gets the isActivitiesIncludedWhenCopyingShiftsEnabled property value. Indicates whether copied shifts include activities from the original shift.- Returns:
- a
Boolean
-
getOfferShiftRequests
Gets the offerShiftRequests property value. The offer requests for shifts in the schedule.- Returns:
- a
List<OfferShiftRequest>
-
getOfferShiftRequestsEnabled
Gets the offerShiftRequestsEnabled property value. Indicates whether offer shift requests are enabled for the schedule.- Returns:
- a
Boolean
-
getOpenShiftChangeRequests
Gets the openShiftChangeRequests property value. The open shift requests in the schedule.- Returns:
- a
List<OpenShiftChangeRequest>
-
getOpenShifts
Gets the openShifts property value. The set of open shifts in a scheduling group in the schedule. -
getOpenShiftsEnabled
Gets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.- Returns:
- a
Boolean
-
getProvisionStatus
Gets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed.- Returns:
- a
OperationStatus
-
getProvisionStatusCode
Gets the provisionStatusCode property value. Additional information about why schedule provisioning failed.- Returns:
- a
String
-
getSchedulingGroups
Gets the schedulingGroups property value. The logical grouping of users in the schedule (usually by role).- Returns:
- a
List<SchedulingGroup>
-
getShifts
Gets the shifts property value. The shifts in the schedule. -
getStartDayOfWeek
Gets the startDayOfWeek property value. Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.- Returns:
- a
DayOfWeek
-
getSwapShiftsChangeRequests
Gets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.- Returns:
- a
List<SwapShiftsChangeRequest>
-
getSwapShiftsRequestsEnabled
Gets the swapShiftsRequestsEnabled property value. Indicates whether swap shifts requests are enabled for the schedule.- Returns:
- a
Boolean
-
getTimeCards
Gets the timeCards property value. The time cards in the schedule. -
getTimeClockEnabled
Gets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.- Returns:
- a
Boolean
-
getTimeClockSettings
Gets the timeClockSettings property value. The time clock location settings for this schedule.- Returns:
- a
TimeClockSettings
-
getTimeOffReasons
Gets the timeOffReasons property value. The set of reasons for a time off in the schedule.- Returns:
- a
List<TimeOffReason>
-
getTimeOffRequests
Gets the timeOffRequests property value. The time off requests in the schedule.- Returns:
- a
List<TimeOffRequest>
-
getTimeOffRequestsEnabled
Gets the timeOffRequestsEnabled property value. Indicates whether time off requests are enabled for the schedule.- Returns:
- a
Boolean
-
getTimesOff
Gets the timesOff property value. The instances of times off in the schedule. -
getTimeZone
Gets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required.- Returns:
- a
String
-
getWorkforceIntegrationIds
Gets the workforceIntegrationIds property value. The IDs for the workforce integrations associated with this schedule. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setDayNotes
Sets the dayNotes property value. The day notes in the schedule.- Parameters:
value
- Value to set for the dayNotes property.
-
setEnabled
Sets the enabled property value. Indicates whether the schedule is enabled for the team. Required.- Parameters:
value
- Value to set for the enabled property.
-
setIsActivitiesIncludedWhenCopyingShiftsEnabled
Sets the isActivitiesIncludedWhenCopyingShiftsEnabled property value. Indicates whether copied shifts include activities from the original shift.- Parameters:
value
- Value to set for the isActivitiesIncludedWhenCopyingShiftsEnabled property.
-
setOfferShiftRequests
Sets the offerShiftRequests property value. The offer requests for shifts in the schedule.- Parameters:
value
- Value to set for the offerShiftRequests property.
-
setOfferShiftRequestsEnabled
Sets the offerShiftRequestsEnabled property value. Indicates whether offer shift requests are enabled for the schedule.- Parameters:
value
- Value to set for the offerShiftRequestsEnabled property.
-
setOpenShiftChangeRequests
Sets the openShiftChangeRequests property value. The open shift requests in the schedule.- Parameters:
value
- Value to set for the openShiftChangeRequests property.
-
setOpenShifts
Sets the openShifts property value. The set of open shifts in a scheduling group in the schedule.- Parameters:
value
- Value to set for the openShifts property.
-
setOpenShiftsEnabled
Sets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.- Parameters:
value
- Value to set for the openShiftsEnabled property.
-
setProvisionStatus
Sets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed.- Parameters:
value
- Value to set for the provisionStatus property.
-
setProvisionStatusCode
Sets the provisionStatusCode property value. Additional information about why schedule provisioning failed.- Parameters:
value
- Value to set for the provisionStatusCode property.
-
setSchedulingGroups
Sets the schedulingGroups property value. The logical grouping of users in the schedule (usually by role).- Parameters:
value
- Value to set for the schedulingGroups property.
-
setShifts
Sets the shifts property value. The shifts in the schedule.- Parameters:
value
- Value to set for the shifts property.
-
setStartDayOfWeek
Sets the startDayOfWeek property value. Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.- Parameters:
value
- Value to set for the startDayOfWeek property.
-
setSwapShiftsChangeRequests
Sets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.- Parameters:
value
- Value to set for the swapShiftsChangeRequests property.
-
setSwapShiftsRequestsEnabled
Sets the swapShiftsRequestsEnabled property value. Indicates whether swap shifts requests are enabled for the schedule.- Parameters:
value
- Value to set for the swapShiftsRequestsEnabled property.
-
setTimeCards
Sets the timeCards property value. The time cards in the schedule.- Parameters:
value
- Value to set for the timeCards property.
-
setTimeClockEnabled
Sets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.- Parameters:
value
- Value to set for the timeClockEnabled property.
-
setTimeClockSettings
Sets the timeClockSettings property value. The time clock location settings for this schedule.- Parameters:
value
- Value to set for the timeClockSettings property.
-
setTimeOffReasons
Sets the timeOffReasons property value. The set of reasons for a time off in the schedule.- Parameters:
value
- Value to set for the timeOffReasons property.
-
setTimeOffRequests
Sets the timeOffRequests property value. The time off requests in the schedule.- Parameters:
value
- Value to set for the timeOffRequests property.
-
setTimeOffRequestsEnabled
Sets the timeOffRequestsEnabled property value. Indicates whether time off requests are enabled for the schedule.- Parameters:
value
- Value to set for the timeOffRequestsEnabled property.
-
setTimesOff
Sets the timesOff property value. The instances of times off in the schedule.- Parameters:
value
- Value to set for the timesOff property.
-
setTimeZone
Sets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required.- Parameters:
value
- Value to set for the timeZone property.
-
setWorkforceIntegrationIds
Sets the workforceIntegrationIds property value. The IDs for the workforce integrations associated with this schedule.- Parameters:
value
- Value to set for the workforceIntegrationIds property.
-