MicrosoftGraphSchedule Class

public final class MicrosoftGraphSchedule
extends MicrosoftGraphEntity

schedule.

Constructor Summary

Constructor Description
MicrosoftGraphSchedule()

Creates an instance of MicrosoftGraphSchedule class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: schedule.

Boolean enabled()

Get the enabled property: Indicates whether the schedule is enabled for the team.

static MicrosoftGraphSchedule fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSchedule from the JsonReader.

List<MicrosoftGraphOfferShiftRequest> offerShiftRequests()

Get the offerShiftRequests property: The offerShiftRequests property.

Boolean offerShiftRequestsEnabled()

Get the offerShiftRequestsEnabled property: Indicates whether offer shift requests are enabled for the schedule.

List<MicrosoftGraphOpenShiftChangeRequest> openShiftChangeRequests()

Get the openShiftChangeRequests property: The openShiftChangeRequests property.

List<MicrosoftGraphOpenShift> openShifts()

Get the openShifts property: The openShifts property.

Boolean openShiftsEnabled()

Get the openShiftsEnabled property: Indicates whether open shifts are enabled for the schedule.

MicrosoftGraphOperationStatus provisionStatus()

Get the provisionStatus property: operationStatus.

String provisionStatusCode()

Get the provisionStatusCode property: Additional information about why schedule provisioning failed.

List<MicrosoftGraphSchedulingGroup> schedulingGroups()

Get the schedulingGroups property: The logical grouping of users in the schedule (usually by role).

List<MicrosoftGraphShift> shifts()

Get the shifts property: The shifts in the schedule.

List<MicrosoftGraphSwapShiftsChangeRequest> swapShiftsChangeRequests()

Get the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.

Boolean swapShiftsRequestsEnabled()

Get the swapShiftsRequestsEnabled property: Indicates whether swap shifts requests are enabled for the schedule.

Boolean timeClockEnabled()

Get the timeClockEnabled property: Indicates whether time clock is enabled for the schedule.

List<MicrosoftGraphTimeOffReason> timeOffReasons()

Get the timeOffReasons property: The set of reasons for a time off in the schedule.

List<MicrosoftGraphTimeOffRequest> timeOffRequests()

Get the timeOffRequests property: The timeOffRequests property.

Boolean timeOffRequestsEnabled()

Get the timeOffRequestsEnabled property: Indicates whether time off requests are enabled for the schedule.

String timeZone()

Get the timeZone property: Indicates the time zone of the schedule team using tz database format.

List<MicrosoftGraphTimeOff> timesOff()

Get the timesOff property: The instances of times off in the schedule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphSchedule withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: schedule.

MicrosoftGraphSchedule withEnabled(Boolean enabled)

Set the enabled property: Indicates whether the schedule is enabled for the team.

MicrosoftGraphSchedule withId(String id)

Set the id property: Read-only.

MicrosoftGraphSchedule withOfferShiftRequests(List<MicrosoftGraphOfferShiftRequest> offerShiftRequests)

Set the offerShiftRequests property: The offerShiftRequests property.

MicrosoftGraphSchedule withOfferShiftRequestsEnabled(Boolean offerShiftRequestsEnabled)

Set the offerShiftRequestsEnabled property: Indicates whether offer shift requests are enabled for the schedule.

MicrosoftGraphSchedule withOpenShiftChangeRequests(List<MicrosoftGraphOpenShiftChangeRequest> openShiftChangeRequests)

Set the openShiftChangeRequests property: The openShiftChangeRequests property.

MicrosoftGraphSchedule withOpenShifts(List<MicrosoftGraphOpenShift> openShifts)

Set the openShifts property: The openShifts property.

MicrosoftGraphSchedule withOpenShiftsEnabled(Boolean openShiftsEnabled)

Set the openShiftsEnabled property: Indicates whether open shifts are enabled for the schedule.

MicrosoftGraphSchedule withProvisionStatus(MicrosoftGraphOperationStatus provisionStatus)

Set the provisionStatus property: operationStatus.

MicrosoftGraphSchedule withProvisionStatusCode(String provisionStatusCode)

Set the provisionStatusCode property: Additional information about why schedule provisioning failed.

MicrosoftGraphSchedule withSchedulingGroups(List<MicrosoftGraphSchedulingGroup> schedulingGroups)

Set the schedulingGroups property: The logical grouping of users in the schedule (usually by role).

MicrosoftGraphSchedule withShifts(List<MicrosoftGraphShift> shifts)

Set the shifts property: The shifts in the schedule.

MicrosoftGraphSchedule withSwapShiftsChangeRequests(List<MicrosoftGraphSwapShiftsChangeRequest> swapShiftsChangeRequests)

Set the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.

MicrosoftGraphSchedule withSwapShiftsRequestsEnabled(Boolean swapShiftsRequestsEnabled)

Set the swapShiftsRequestsEnabled property: Indicates whether swap shifts requests are enabled for the schedule.

MicrosoftGraphSchedule withTimeClockEnabled(Boolean timeClockEnabled)

Set the timeClockEnabled property: Indicates whether time clock is enabled for the schedule.

MicrosoftGraphSchedule withTimeOffReasons(List<MicrosoftGraphTimeOffReason> timeOffReasons)

Set the timeOffReasons property: The set of reasons for a time off in the schedule.

MicrosoftGraphSchedule withTimeOffRequests(List<MicrosoftGraphTimeOffRequest> timeOffRequests)

Set the timeOffRequests property: The timeOffRequests property.

MicrosoftGraphSchedule withTimeOffRequestsEnabled(Boolean timeOffRequestsEnabled)

Set the timeOffRequestsEnabled property: Indicates whether time off requests are enabled for the schedule.

MicrosoftGraphSchedule withTimeZone(String timeZone)

Set the timeZone property: Indicates the time zone of the schedule team using tz database format.

MicrosoftGraphSchedule withTimesOff(List<MicrosoftGraphTimeOff> timesOff)

Set the timesOff property: The instances of times off in the schedule.

MicrosoftGraphSchedule withWorkforceIntegrationIds(List<String> workforceIntegrationIds)

Set the workforceIntegrationIds property: The workforceIntegrationIds property.

List<String> workforceIntegrationIds()

Get the workforceIntegrationIds property: The workforceIntegrationIds property.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphSchedule

public MicrosoftGraphSchedule()

Creates an instance of MicrosoftGraphSchedule class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: schedule.

Overrides:

MicrosoftGraphSchedule.additionalProperties()

Returns:

the additionalProperties value.

enabled

public Boolean enabled()

Get the enabled property: Indicates whether the schedule is enabled for the team. Required.

Returns:

the enabled value.

fromJson

public static MicrosoftGraphSchedule fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphSchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphSchedule.

offerShiftRequests

public List offerShiftRequests()

Get the offerShiftRequests property: The offerShiftRequests property.

Returns:

the offerShiftRequests value.

offerShiftRequestsEnabled

public Boolean offerShiftRequestsEnabled()

Get the offerShiftRequestsEnabled property: Indicates whether offer shift requests are enabled for the schedule.

Returns:

the offerShiftRequestsEnabled value.

openShiftChangeRequests

public List openShiftChangeRequests()

Get the openShiftChangeRequests property: The openShiftChangeRequests property.

Returns:

the openShiftChangeRequests value.

openShifts

public List openShifts()

Get the openShifts property: The openShifts property.

Returns:

the openShifts value.

openShiftsEnabled

public Boolean openShiftsEnabled()

Get the openShiftsEnabled property: Indicates whether open shifts are enabled for the schedule.

Returns:

the openShiftsEnabled value.

provisionStatus

public MicrosoftGraphOperationStatus provisionStatus()

Get the provisionStatus property: operationStatus.

Returns:

the provisionStatus value.

provisionStatusCode

public String provisionStatusCode()

Get the provisionStatusCode property: Additional information about why schedule provisioning failed.

Returns:

the provisionStatusCode value.

schedulingGroups

public List schedulingGroups()

Get the schedulingGroups property: The logical grouping of users in the schedule (usually by role).

Returns:

the schedulingGroups value.

shifts

public List shifts()

Get the shifts property: The shifts in the schedule.

Returns:

the shifts value.

swapShiftsChangeRequests

public List swapShiftsChangeRequests()

Get the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.

Returns:

the swapShiftsChangeRequests value.

swapShiftsRequestsEnabled

public Boolean swapShiftsRequestsEnabled()

Get the swapShiftsRequestsEnabled property: Indicates whether swap shifts requests are enabled for the schedule.

Returns:

the swapShiftsRequestsEnabled value.

timeClockEnabled

public Boolean timeClockEnabled()

Get the timeClockEnabled property: Indicates whether time clock is enabled for the schedule.

Returns:

the timeClockEnabled value.

timeOffReasons

public List timeOffReasons()

Get the timeOffReasons property: The set of reasons for a time off in the schedule.

Returns:

the timeOffReasons value.

timeOffRequests

public List timeOffRequests()

Get the timeOffRequests property: The timeOffRequests property.

Returns:

the timeOffRequests value.

timeOffRequestsEnabled

public Boolean timeOffRequestsEnabled()

Get the timeOffRequestsEnabled property: Indicates whether time off requests are enabled for the schedule.

Returns:

the timeOffRequestsEnabled value.

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.

timesOff

public List timesOff()

Get the timesOff property: The instances of times off in the schedule.

Returns:

the timesOff value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphSchedule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphSchedule.validate()

withAdditionalProperties

public MicrosoftGraphSchedule withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: schedule.

Overrides:

MicrosoftGraphSchedule.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

withId

public MicrosoftGraphSchedule withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphSchedule.withId(String id)

Parameters:

id

withOfferShiftRequests

public MicrosoftGraphSchedule withOfferShiftRequests(List offerShiftRequests)

Set the offerShiftRequests property: The offerShiftRequests property.

Parameters:

offerShiftRequests - the offerShiftRequests value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

withOpenShiftChangeRequests

public MicrosoftGraphSchedule withOpenShiftChangeRequests(List openShiftChangeRequests)

Set the openShiftChangeRequests property: The openShiftChangeRequests property.

Parameters:

openShiftChangeRequests - the openShiftChangeRequests value to set.

Returns:

the MicrosoftGraphSchedule object itself.

withOpenShifts

public MicrosoftGraphSchedule withOpenShifts(List openShifts)

Set the openShifts property: The openShifts property.

Parameters:

openShifts - the openShifts value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

withProvisionStatus

public MicrosoftGraphSchedule withProvisionStatus(MicrosoftGraphOperationStatus provisionStatus)

Set the provisionStatus property: operationStatus.

Parameters:

provisionStatus - the provisionStatus value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

withSchedulingGroups

public MicrosoftGraphSchedule withSchedulingGroups(List 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.

withShifts

public MicrosoftGraphSchedule withShifts(List shifts)

Set the shifts property: The shifts in the schedule.

Parameters:

shifts - the shifts value to set.

Returns:

the MicrosoftGraphSchedule object itself.

withSwapShiftsChangeRequests

public MicrosoftGraphSchedule withSwapShiftsChangeRequests(List swapShiftsChangeRequests)

Set the swapShiftsChangeRequests property: The swapShiftsChangeRequests property.

Parameters:

swapShiftsChangeRequests - the swapShiftsChangeRequests value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

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.

withTimeOffReasons

public MicrosoftGraphSchedule withTimeOffReasons(List 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.

withTimeOffRequests

public MicrosoftGraphSchedule withTimeOffRequests(List timeOffRequests)

Set the timeOffRequests property: The timeOffRequests property.

Parameters:

timeOffRequests - the timeOffRequests value to set.

Returns:

the MicrosoftGraphSchedule object itself.

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.

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.

withTimesOff

public MicrosoftGraphSchedule withTimesOff(List 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.

withWorkforceIntegrationIds

public MicrosoftGraphSchedule withWorkforceIntegrationIds(List workforceIntegrationIds)

Set the workforceIntegrationIds property: The workforceIntegrationIds property.

Parameters:

workforceIntegrationIds - the workforceIntegrationIds value to set.

Returns:

the MicrosoftGraphSchedule object itself.

workforceIntegrationIds

public List workforceIntegrationIds()

Get the workforceIntegrationIds property: The workforceIntegrationIds property.

Returns:

the workforceIntegrationIds value.

Applies to