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
  • Constructor Details

    • Schedule

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

      @Nullable public List<DayNote> getDayNotes()
      Gets the dayNotes property value. The day notes in the schedule.
      Returns:
      a List<DayNote>
    • getEnabled

      @Nullable public Boolean 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsActivitiesIncludedWhenCopyingShiftsEnabled

      @Nullable public Boolean getIsActivitiesIncludedWhenCopyingShiftsEnabled()
      Gets the isActivitiesIncludedWhenCopyingShiftsEnabled property value. Indicates whether copied shifts include activities from the original shift.
      Returns:
      a Boolean
    • getOfferShiftRequests

      @Nullable public List<OfferShiftRequest> getOfferShiftRequests()
      Gets the offerShiftRequests property value. The offer requests for shifts in the schedule.
      Returns:
      a List<OfferShiftRequest>
    • getOfferShiftRequestsEnabled

      @Nullable public Boolean getOfferShiftRequestsEnabled()
      Gets the offerShiftRequestsEnabled property value. Indicates whether offer shift requests are enabled for the schedule.
      Returns:
      a Boolean
    • getOpenShiftChangeRequests

      @Nullable public List<OpenShiftChangeRequest> getOpenShiftChangeRequests()
      Gets the openShiftChangeRequests property value. The open shift requests in the schedule.
      Returns:
      a List<OpenShiftChangeRequest>
    • getOpenShifts

      @Nullable public List<OpenShift> getOpenShifts()
      Gets the openShifts property value. The set of open shifts in a scheduling group in the schedule.
      Returns:
      a List<OpenShift>
    • getOpenShiftsEnabled

      @Nullable public Boolean getOpenShiftsEnabled()
      Gets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.
      Returns:
      a Boolean
    • getProvisionStatus

      @Nullable public OperationStatus getProvisionStatus()
      Gets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed.
      Returns:
      a OperationStatus
    • getProvisionStatusCode

      @Nullable public String getProvisionStatusCode()
      Gets the provisionStatusCode property value. Additional information about why schedule provisioning failed.
      Returns:
      a String
    • getSchedulingGroups

      @Nullable public List<SchedulingGroup> getSchedulingGroups()
      Gets the schedulingGroups property value. The logical grouping of users in the schedule (usually by role).
      Returns:
      a List<SchedulingGroup>
    • getShifts

      @Nullable public List<Shift> getShifts()
      Gets the shifts property value. The shifts in the schedule.
      Returns:
      a List<Shift>
    • getStartDayOfWeek

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

      @Nullable public List<SwapShiftsChangeRequest> getSwapShiftsChangeRequests()
      Gets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.
      Returns:
      a List<SwapShiftsChangeRequest>
    • getSwapShiftsRequestsEnabled

      @Nullable public Boolean getSwapShiftsRequestsEnabled()
      Gets the swapShiftsRequestsEnabled property value. Indicates whether swap shifts requests are enabled for the schedule.
      Returns:
      a Boolean
    • getTimeCards

      @Nullable public List<TimeCard> getTimeCards()
      Gets the timeCards property value. The time cards in the schedule.
      Returns:
      a List<TimeCard>
    • getTimeClockEnabled

      @Nullable public Boolean getTimeClockEnabled()
      Gets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.
      Returns:
      a Boolean
    • getTimeClockSettings

      @Nullable public TimeClockSettings getTimeClockSettings()
      Gets the timeClockSettings property value. The time clock location settings for this schedule.
      Returns:
      a TimeClockSettings
    • getTimeOffReasons

      @Nullable public List<TimeOffReason> getTimeOffReasons()
      Gets the timeOffReasons property value. The set of reasons for a time off in the schedule.
      Returns:
      a List<TimeOffReason>
    • getTimeOffRequests

      @Nullable public List<TimeOffRequest> getTimeOffRequests()
      Gets the timeOffRequests property value. The time off requests in the schedule.
      Returns:
      a List<TimeOffRequest>
    • getTimeOffRequestsEnabled

      @Nullable public Boolean getTimeOffRequestsEnabled()
      Gets the timeOffRequestsEnabled property value. Indicates whether time off requests are enabled for the schedule.
      Returns:
      a Boolean
    • getTimesOff

      @Nullable public List<TimeOff> getTimesOff()
      Gets the timesOff property value. The instances of times off in the schedule.
      Returns:
      a List<TimeOff>
    • getTimeZone

      @Nullable public String getTimeZone()
      Gets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required.
      Returns:
      a String
    • getWorkforceIntegrationIds

      @Nullable public List<String> getWorkforceIntegrationIds()
      Gets the workforceIntegrationIds property value. The IDs for the workforce integrations associated with this schedule.
      Returns:
      a List<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
    • setDayNotes

      public void setDayNotes(@Nullable List<DayNote> value)
      Sets the dayNotes property value. The day notes in the schedule.
      Parameters:
      value - Value to set for the dayNotes property.
    • setEnabled

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

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

      public void setOfferShiftRequests(@Nullable List<OfferShiftRequest> value)
      Sets the offerShiftRequests property value. The offer requests for shifts in the schedule.
      Parameters:
      value - Value to set for the offerShiftRequests property.
    • setOfferShiftRequestsEnabled

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

      public void setOpenShiftChangeRequests(@Nullable List<OpenShiftChangeRequest> value)
      Sets the openShiftChangeRequests property value. The open shift requests in the schedule.
      Parameters:
      value - Value to set for the openShiftChangeRequests property.
    • setOpenShifts

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

      public void setOpenShiftsEnabled(@Nullable Boolean value)
      Sets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.
      Parameters:
      value - Value to set for the openShiftsEnabled property.
    • setProvisionStatus

      public void setProvisionStatus(@Nullable OperationStatus value)
      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

      public void setProvisionStatusCode(@Nullable String value)
      Sets the provisionStatusCode property value. Additional information about why schedule provisioning failed.
      Parameters:
      value - Value to set for the provisionStatusCode property.
    • setSchedulingGroups

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

      public void setShifts(@Nullable List<Shift> value)
      Sets the shifts property value. The shifts in the schedule.
      Parameters:
      value - Value to set for the shifts property.
    • setStartDayOfWeek

      public void setStartDayOfWeek(@Nullable DayOfWeek value)
      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

      public void setSwapShiftsChangeRequests(@Nullable List<SwapShiftsChangeRequest> value)
      Sets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.
      Parameters:
      value - Value to set for the swapShiftsChangeRequests property.
    • setSwapShiftsRequestsEnabled

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

      public void setTimeCards(@Nullable List<TimeCard> value)
      Sets the timeCards property value. The time cards in the schedule.
      Parameters:
      value - Value to set for the timeCards property.
    • setTimeClockEnabled

      public void setTimeClockEnabled(@Nullable Boolean value)
      Sets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.
      Parameters:
      value - Value to set for the timeClockEnabled property.
    • setTimeClockSettings

      public void setTimeClockSettings(@Nullable TimeClockSettings value)
      Sets the timeClockSettings property value. The time clock location settings for this schedule.
      Parameters:
      value - Value to set for the timeClockSettings property.
    • setTimeOffReasons

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

      public void setTimeOffRequests(@Nullable List<TimeOffRequest> value)
      Sets the timeOffRequests property value. The time off requests in the schedule.
      Parameters:
      value - Value to set for the timeOffRequests property.
    • setTimeOffRequestsEnabled

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

      public void setTimesOff(@Nullable List<TimeOff> value)
      Sets the timesOff property value. The instances of times off in the schedule.
      Parameters:
      value - Value to set for the timesOff property.
    • setTimeZone

      public void setTimeZone(@Nullable String value)
      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

      public void setWorkforceIntegrationIds(@Nullable List<String> value)
      Sets the workforceIntegrationIds property value. The IDs for the workforce integrations associated with this schedule.
      Parameters:
      value - Value to set for the workforceIntegrationIds property.