Class TimeOff

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

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

    • draftTimeOff

      @SerializedName(value="draftTimeOff", alternate="DraftTimeOff") @Expose @Nullable public TimeOffItem draftTimeOff
      The Draft Time Off. The draft version of this timeOff item that is viewable by managers. It must be shared before it is visible to team members. Required.
    • sharedTimeOff

      @SerializedName(value="sharedTimeOff", alternate="SharedTimeOff") @Expose @Nullable public TimeOffItem sharedTimeOff
      The Shared Time Off. The shared version of this timeOff that is viewable by both employees and managers. Updates to the sharedTimeOff property send notifications to users in the Teams client. Required.
    • userId

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

    • TimeOff

      public TimeOff()
  • 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