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 that is viewable by managers. 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. 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