Class 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
    • Field Detail

      • enabled

        protected Boolean enabled
      • offerShiftRequestsEnabled

        protected Boolean offerShiftRequestsEnabled
      • openShiftsEnabled

        protected Boolean openShiftsEnabled
      • provisionStatusCode

        protected String provisionStatusCode
      • swapShiftsRequestsEnabled

        protected Boolean swapShiftsRequestsEnabled
      • timeClockEnabled

        protected Boolean timeClockEnabled
      • timeOffRequestsEnabled

        protected Boolean timeOffRequestsEnabled
      • timeZone

        protected String timeZone
      • workforceIntegrationIds

        protected List<String> workforceIntegrationIds
      • workforceIntegrationIdsNextLink

        protected String workforceIntegrationIdsNextLink
    • Constructor Detail

      • Schedule

        protected Schedule()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getOfferShiftRequestsEnabled

        public Optional<Boolean> getOfferShiftRequestsEnabled()
      • withOfferShiftRequestsEnabled

        public Schedule withOfferShiftRequestsEnabled​(Boolean offerShiftRequestsEnabled)
      • withOpenShiftsEnabled

        public Schedule withOpenShiftsEnabled​(Boolean openShiftsEnabled)
      • getProvisionStatus

        public Optional<OperationStatus> getProvisionStatus()

        Org.OData.Core.V1.Computed

        true

        Returns:
        property provisionStatus
      • withProvisionStatus

        public Schedule withProvisionStatus​(OperationStatus provisionStatus)
        Returns an immutable copy of this with just the provisionStatus field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of provisionStatus field (as defined in service metadata)
        Returns:
        immutable copy of this with just the provisionStatus field 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 of this with just the provisionStatusCode field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of provisionStatusCode field (as defined in service metadata)
        Returns:
        immutable copy of this with just the provisionStatusCode field changed
      • getSwapShiftsRequestsEnabled

        public Optional<Boolean> getSwapShiftsRequestsEnabled()
      • withSwapShiftsRequestsEnabled

        public Schedule withSwapShiftsRequestsEnabled​(Boolean swapShiftsRequestsEnabled)
      • withTimeClockEnabled

        public Schedule withTimeClockEnabled​(Boolean timeClockEnabled)
      • getTimeOffRequestsEnabled

        public Optional<Boolean> getTimeOffRequestsEnabled()
      • 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)
      • 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
      • 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:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public Schedule patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public Schedule put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected