Class MicrosoftGraphSchedule

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphSchedule

public final class MicrosoftGraphSchedule extends MicrosoftGraphEntity
schedule.
  • Constructor Details

    • MicrosoftGraphSchedule

      public MicrosoftGraphSchedule()
      Creates an instance of MicrosoftGraphSchedule class.
  • Method Details

    • enabled

      public Boolean enabled()
      Get the enabled property: Indicates whether the schedule is enabled for the team. Required.
      Returns:
      the enabled value.
    • withEnabled

      public MicrosoftGraphSchedule withEnabled(Boolean enabled)
      Set the enabled property: Indicates whether the schedule is enabled for the team. Required.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • offerShiftRequestsEnabled

      public Boolean offerShiftRequestsEnabled()
      Get the offerShiftRequestsEnabled property: Indicates whether offer shift requests are enabled for the schedule.
      Returns:
      the offerShiftRequestsEnabled value.
    • withOfferShiftRequestsEnabled

      public MicrosoftGraphSchedule withOfferShiftRequestsEnabled(Boolean offerShiftRequestsEnabled)
      Set the offerShiftRequestsEnabled property: Indicates whether offer shift requests are enabled for the schedule.
      Parameters:
      offerShiftRequestsEnabled - the offerShiftRequestsEnabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • openShiftsEnabled

      public Boolean openShiftsEnabled()
      Get the openShiftsEnabled property: Indicates whether open shifts are enabled for the schedule.
      Returns:
      the openShiftsEnabled value.
    • withOpenShiftsEnabled

      public MicrosoftGraphSchedule withOpenShiftsEnabled(Boolean openShiftsEnabled)
      Set the openShiftsEnabled property: Indicates whether open shifts are enabled for the schedule.
      Parameters:
      openShiftsEnabled - the openShiftsEnabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • provisionStatus

      public MicrosoftGraphOperationStatus provisionStatus()
      Get the provisionStatus property: operationStatus.
      Returns:
      the provisionStatus value.
    • withProvisionStatus

      public MicrosoftGraphSchedule withProvisionStatus(MicrosoftGraphOperationStatus provisionStatus)
      Set the provisionStatus property: operationStatus.
      Parameters:
      provisionStatus - the provisionStatus value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • provisionStatusCode

      public String provisionStatusCode()
      Get the provisionStatusCode property: Additional information about why schedule provisioning failed.
      Returns:
      the provisionStatusCode value.
    • withProvisionStatusCode

      public MicrosoftGraphSchedule withProvisionStatusCode(String provisionStatusCode)
      Set the provisionStatusCode property: Additional information about why schedule provisioning failed.
      Parameters:
      provisionStatusCode - the provisionStatusCode value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • swapShiftsRequestsEnabled

      public Boolean swapShiftsRequestsEnabled()
      Get the swapShiftsRequestsEnabled property: Indicates whether swap shifts requests are enabled for the schedule.
      Returns:
      the swapShiftsRequestsEnabled value.
    • withSwapShiftsRequestsEnabled

      public MicrosoftGraphSchedule withSwapShiftsRequestsEnabled(Boolean swapShiftsRequestsEnabled)
      Set the swapShiftsRequestsEnabled property: Indicates whether swap shifts requests are enabled for the schedule.
      Parameters:
      swapShiftsRequestsEnabled - the swapShiftsRequestsEnabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timeClockEnabled

      public Boolean timeClockEnabled()
      Get the timeClockEnabled property: Indicates whether time clock is enabled for the schedule.
      Returns:
      the timeClockEnabled value.
    • withTimeClockEnabled

      public MicrosoftGraphSchedule withTimeClockEnabled(Boolean timeClockEnabled)
      Set the timeClockEnabled property: Indicates whether time clock is enabled for the schedule.
      Parameters:
      timeClockEnabled - the timeClockEnabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timeOffRequestsEnabled

      public Boolean timeOffRequestsEnabled()
      Get the timeOffRequestsEnabled property: Indicates whether time off requests are enabled for the schedule.
      Returns:
      the timeOffRequestsEnabled value.
    • withTimeOffRequestsEnabled

      public MicrosoftGraphSchedule withTimeOffRequestsEnabled(Boolean timeOffRequestsEnabled)
      Set the timeOffRequestsEnabled property: Indicates whether time off requests are enabled for the schedule.
      Parameters:
      timeOffRequestsEnabled - the timeOffRequestsEnabled value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timeZone

      public String timeZone()
      Get the timeZone property: Indicates the time zone of the schedule team using tz database format. Required.
      Returns:
      the timeZone value.
    • withTimeZone

      public MicrosoftGraphSchedule withTimeZone(String timeZone)
      Set the timeZone property: Indicates the time zone of the schedule team using tz database format. Required.
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • workforceIntegrationIds

      public List<String> workforceIntegrationIds()
      Get the workforceIntegrationIds property: The workforceIntegrationIds property.
      Returns:
      the workforceIntegrationIds value.
    • withWorkforceIntegrationIds

      public MicrosoftGraphSchedule withWorkforceIntegrationIds(List<String> workforceIntegrationIds)
      Set the workforceIntegrationIds property: The workforceIntegrationIds property.
      Parameters:
      workforceIntegrationIds - the workforceIntegrationIds value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • offerShiftRequests

      public List<MicrosoftGraphOfferShiftRequest> offerShiftRequests()
      Get the offerShiftRequests property: The offerShiftRequests property.
      Returns:
      the offerShiftRequests value.
    • withOfferShiftRequests

      public MicrosoftGraphSchedule withOfferShiftRequests(List<MicrosoftGraphOfferShiftRequest> offerShiftRequests)
      Set the offerShiftRequests property: The offerShiftRequests property.
      Parameters:
      offerShiftRequests - the offerShiftRequests value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • openShiftChangeRequests

      public List<MicrosoftGraphOpenShiftChangeRequest> openShiftChangeRequests()
      Get the openShiftChangeRequests property: The openShiftChangeRequests property.
      Returns:
      the openShiftChangeRequests value.
    • withOpenShiftChangeRequests

      public MicrosoftGraphSchedule withOpenShiftChangeRequests(List<MicrosoftGraphOpenShiftChangeRequest> openShiftChangeRequests)
      Set the openShiftChangeRequests property: The openShiftChangeRequests property.
      Parameters:
      openShiftChangeRequests - the openShiftChangeRequests value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • openShifts

      public List<MicrosoftGraphOpenShift> openShifts()
      Get the openShifts property: The openShifts property.
      Returns:
      the openShifts value.
    • withOpenShifts

      public MicrosoftGraphSchedule withOpenShifts(List<MicrosoftGraphOpenShift> openShifts)
      Set the openShifts property: The openShifts property.
      Parameters:
      openShifts - the openShifts value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • schedulingGroups

      public List<MicrosoftGraphSchedulingGroup> schedulingGroups()
      Get the schedulingGroups property: The logical grouping of users in the schedule (usually by role).
      Returns:
      the schedulingGroups value.
    • withSchedulingGroups

      public MicrosoftGraphSchedule withSchedulingGroups(List<MicrosoftGraphSchedulingGroup> schedulingGroups)
      Set the schedulingGroups property: The logical grouping of users in the schedule (usually by role).
      Parameters:
      schedulingGroups - the schedulingGroups value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • shifts

      public List<MicrosoftGraphShift> shifts()
      Get the shifts property: The shifts in the schedule.
      Returns:
      the shifts value.
    • withShifts

      public MicrosoftGraphSchedule withShifts(List<MicrosoftGraphShift> shifts)
      Set the shifts property: The shifts in the schedule.
      Parameters:
      shifts - the shifts value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • swapShiftsChangeRequests

      public List<MicrosoftGraphSwapShiftsChangeRequest> swapShiftsChangeRequests()
      Get the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.
      Returns:
      the swapShiftsChangeRequests value.
    • withSwapShiftsChangeRequests

      public MicrosoftGraphSchedule withSwapShiftsChangeRequests(List<MicrosoftGraphSwapShiftsChangeRequest> swapShiftsChangeRequests)
      Set the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.
      Parameters:
      swapShiftsChangeRequests - the swapShiftsChangeRequests value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timeOffReasons

      public List<MicrosoftGraphTimeOffReason> timeOffReasons()
      Get the timeOffReasons property: The set of reasons for a time off in the schedule.
      Returns:
      the timeOffReasons value.
    • withTimeOffReasons

      public MicrosoftGraphSchedule withTimeOffReasons(List<MicrosoftGraphTimeOffReason> timeOffReasons)
      Set the timeOffReasons property: The set of reasons for a time off in the schedule.
      Parameters:
      timeOffReasons - the timeOffReasons value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timeOffRequests

      public List<MicrosoftGraphTimeOffRequest> timeOffRequests()
      Get the timeOffRequests property: The timeOffRequests property.
      Returns:
      the timeOffRequests value.
    • withTimeOffRequests

      public MicrosoftGraphSchedule withTimeOffRequests(List<MicrosoftGraphTimeOffRequest> timeOffRequests)
      Set the timeOffRequests property: The timeOffRequests property.
      Parameters:
      timeOffRequests - the timeOffRequests value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • timesOff

      public List<MicrosoftGraphTimeOff> timesOff()
      Get the timesOff property: The instances of times off in the schedule.
      Returns:
      the timesOff value.
    • withTimesOff

      public MicrosoftGraphSchedule withTimesOff(List<MicrosoftGraphTimeOff> timesOff)
      Set the timesOff property: The instances of times off in the schedule.
      Parameters:
      timesOff - the timesOff value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: schedule.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphSchedule withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: schedule.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphSchedule object itself.
    • withId

      public MicrosoftGraphSchedule withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.