Class Shift

All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class Shift extends ChangeTrackedEntity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Shift.
  • Field Details

    • draftShift

      @SerializedName(value="draftShift", alternate="DraftShift") @Expose @Nullable public ShiftItem draftShift
      The Draft Shift. Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they are shared, which copies the changes from the draftShift to the sharedShift property.
    • schedulingGroupId

      @SerializedName(value="schedulingGroupId", alternate="SchedulingGroupId") @Expose @Nullable public String schedulingGroupId
      The Scheduling Group Id. ID of the scheduling group the shift is part of. Required.
    • sharedShift

      @SerializedName(value="sharedShift", alternate="SharedShift") @Expose @Nullable public ShiftItem sharedShift
      The Shared Shift. The shared version of this shift that is viewable by both employees and managers. Updates to the sharedShift property send notifications to users in the Teams client.
    • userId

      @SerializedName(value="userId", alternate="UserId") @Expose @Nullable public String userId
      The User Id. ID of the user assigned to the shift. Required.
  • Constructor Details

    • Shift

      public Shift()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class ChangeTrackedEntity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to