Package odata.msgraph.client.beta.entity
Class Schedule
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Schedule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Schedule extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchedule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Booleanenabledprotected BooleanofferShiftRequestsEnabledprotected BooleanopenShiftsEnabledprotected OperationStatusprovisionStatusprotected StringprovisionStatusCodeprotected BooleanswapShiftsRequestsEnabledprotected BooleantimeClockEnabledprotected TimeClockSettingstimeClockSettingsprotected BooleantimeOffRequestsEnabledprotected StringtimeZoneprotected List<String>workforceIntegrationIdsprotected StringworkforceIntegrationIdsNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSchedule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Schedule.BuilderbuilderSchedule()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getEnabled()OfferShiftRequestCollectionRequestgetOfferShiftRequests()Optional<Boolean>getOfferShiftRequestsEnabled()OpenShiftChangeRequestCollectionRequestgetOpenShiftChangeRequests()OpenShiftCollectionRequestgetOpenShifts()Optional<Boolean>getOpenShiftsEnabled()Optional<OperationStatus>getProvisionStatus()Org.OData.Core.V1.ComputedOptional<String>getProvisionStatusCode()Org.OData.Core.V1.ComputedSchedulingGroupCollectionRequestgetSchedulingGroups()Org.OData.Capabilities.V1.ExpandRestrictionsShiftCollectionRequestgetShifts()Org.OData.Capabilities.V1.ExpandRestrictionsSwapShiftsChangeRequestCollectionRequestgetSwapShiftsChangeRequests()Optional<Boolean>getSwapShiftsRequestsEnabled()TimeCardCollectionRequestgetTimeCards()Optional<Boolean>getTimeClockEnabled()Optional<TimeClockSettings>getTimeClockSettings()TimeOffReasonCollectionRequestgetTimeOffReasons()Org.OData.Capabilities.V1.ExpandRestrictionsTimeOffRequestCollectionRequestgetTimeOffRequests()Org.OData.Capabilities.V1.ExpandRestrictionsOptional<Boolean>getTimeOffRequestsEnabled()TimeOffCollectionRequestgetTimesOff()Org.OData.Capabilities.V1.ExpandRestrictionsOptional<String>getTimeZone()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()com.github.davidmoten.odata.client.CollectionPage<String>getWorkforceIntegrationIds()com.github.davidmoten.odata.client.CollectionPage<String>getWorkforceIntegrationIds(com.github.davidmoten.odata.client.HttpRequestOptions options)StringodataTypeName()Schedulepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Scheduleput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnshare(Boolean notifyTeam, OffsetDateTime startDateTime, OffsetDateTime endDateTime)StringtoString()SchedulewithEnabled(Boolean enabled)SchedulewithOfferShiftRequestsEnabled(Boolean offerShiftRequestsEnabled)SchedulewithOpenShiftsEnabled(Boolean openShiftsEnabled)SchedulewithProvisionStatus(OperationStatus provisionStatus)Returns an immutable copy ofthiswith just theprovisionStatusfield changed.SchedulewithProvisionStatusCode(String provisionStatusCode)Returns an immutable copy ofthiswith just theprovisionStatusCodefield changed.SchedulewithSwapShiftsRequestsEnabled(Boolean swapShiftsRequestsEnabled)SchedulewithTimeClockEnabled(Boolean timeClockEnabled)SchedulewithTimeClockSettings(TimeClockSettings timeClockSettings)SchedulewithTimeOffRequestsEnabled(Boolean timeOffRequestsEnabled)SchedulewithTimeZone(String timeZone)SchedulewithUnmappedField(String name, String value)SchedulewithWorkforceIntegrationIds(List<String> workforceIntegrationIds)
-
-
-
Field Detail
-
enabled
protected Boolean enabled
-
offerShiftRequestsEnabled
protected Boolean offerShiftRequestsEnabled
-
openShiftsEnabled
protected Boolean openShiftsEnabled
-
provisionStatus
protected OperationStatus provisionStatus
-
provisionStatusCode
protected String provisionStatusCode
-
swapShiftsRequestsEnabled
protected Boolean swapShiftsRequestsEnabled
-
timeClockEnabled
protected Boolean timeClockEnabled
-
timeClockSettings
protected TimeClockSettings timeClockSettings
-
timeOffRequestsEnabled
protected Boolean timeOffRequestsEnabled
-
timeZone
protected String timeZone
-
workforceIntegrationIdsNextLink
protected String workforceIntegrationIdsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSchedule
public static Schedule.Builder builderSchedule()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
withOfferShiftRequestsEnabled
public Schedule withOfferShiftRequestsEnabled(Boolean offerShiftRequestsEnabled)
-
getProvisionStatus
public Optional<OperationStatus> getProvisionStatus()
Org.OData.Core.V1.Computed
true
- Returns:
- property provisionStatus
-
withProvisionStatus
public Schedule withProvisionStatus(OperationStatus provisionStatus)
Returns an immutable copy ofthiswith just theprovisionStatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
provisionStatus- new value ofprovisionStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprovisionStatusfield changed
-
getProvisionStatusCode
public Optional<String> getProvisionStatusCode()
Org.OData.Core.V1.Computed
true
- Returns:
- property provisionStatusCode
-
withProvisionStatusCode
public Schedule withProvisionStatusCode(String provisionStatusCode)
Returns an immutable copy ofthiswith just theprovisionStatusCodefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
provisionStatusCode- new value ofprovisionStatusCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprovisionStatusCodefield changed
-
withSwapShiftsRequestsEnabled
public Schedule withSwapShiftsRequestsEnabled(Boolean swapShiftsRequestsEnabled)
-
getTimeClockSettings
public Optional<TimeClockSettings> getTimeClockSettings()
-
withTimeClockSettings
public Schedule withTimeClockSettings(TimeClockSettings timeClockSettings)
-
withTimeOffRequestsEnabled
public Schedule withTimeOffRequestsEnabled(Boolean timeOffRequestsEnabled)
-
getWorkforceIntegrationIds
public com.github.davidmoten.odata.client.CollectionPage<String> getWorkforceIntegrationIds()
-
withWorkforceIntegrationIds
public Schedule withWorkforceIntegrationIds(List<String> workforceIntegrationIds)
-
getWorkforceIntegrationIds
public com.github.davidmoten.odata.client.CollectionPage<String> getWorkforceIntegrationIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public Schedule withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getOfferShiftRequests
public OfferShiftRequestCollectionRequest getOfferShiftRequests()
-
getOpenShiftChangeRequests
public OpenShiftChangeRequestCollectionRequest getOpenShiftChangeRequests()
-
getOpenShifts
public OpenShiftCollectionRequest getOpenShifts()
-
getSchedulingGroups
public SchedulingGroupCollectionRequest getSchedulingGroups()
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
- Returns:
- navigational property schedulingGroups
-
getShifts
public ShiftCollectionRequest getShifts()
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
- Returns:
- navigational property shifts
-
getSwapShiftsChangeRequests
public SwapShiftsChangeRequestCollectionRequest getSwapShiftsChangeRequests()
-
getTimeCards
public TimeCardCollectionRequest getTimeCards()
-
getTimeOffReasons
public TimeOffReasonCollectionRequest getTimeOffReasons()
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
- Returns:
- navigational property timeOffReasons
-
getTimeOffRequests
public TimeOffRequestCollectionRequest getTimeOffRequests()
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
- Returns:
- navigational property timeOffRequests
-
getTimesOff
public TimeOffCollectionRequest getTimesOff()
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
- Returns:
- navigational property timesOff
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Schedule patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Schedule put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
share
public com.github.davidmoten.odata.client.ActionRequestNoReturn share(Boolean notifyTeam, OffsetDateTime startDateTime, OffsetDateTime endDateTime)
-
-