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. The draft version of this shift that is viewable by managers. Required.
    • 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. Required.
    • 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