Class TimeOff

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class TimeOff extends ChangeTrackedEntity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • TimeOff

      public TimeOff()
      Instantiates a new TimeOff and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static TimeOff createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a TimeOff
    • getDraftTimeOff

      @Nullable public TimeOffItem getDraftTimeOff()
      Gets the draftTimeOff property value. The draft version of this timeOff item that is viewable by managers. It must be shared before it's visible to team members. Required.
      Returns:
      a TimeOffItem
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class ChangeTrackedEntity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsStagedForDeletion

      @Nullable public Boolean getIsStagedForDeletion()
      Gets the isStagedForDeletion property value. The timeOff is marked for deletion, a process that is finalized when the schedule is shared.
      Returns:
      a Boolean
    • getSharedTimeOff

      @Nullable public TimeOffItem getSharedTimeOff()
      Gets the sharedTimeOff property value. 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.
      Returns:
      a TimeOffItem
    • getUserId

      @Nullable public String getUserId()
      Gets the userId property value. ID of the user assigned to the timeOff. Required.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class ChangeTrackedEntity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDraftTimeOff

      public void setDraftTimeOff(@Nullable TimeOffItem value)
      Sets the draftTimeOff property value. The draft version of this timeOff item that is viewable by managers. It must be shared before it's visible to team members. Required.
      Parameters:
      value - Value to set for the draftTimeOff property.
    • setIsStagedForDeletion

      public void setIsStagedForDeletion(@Nullable Boolean value)
      Sets the isStagedForDeletion property value. The timeOff is marked for deletion, a process that is finalized when the schedule is shared.
      Parameters:
      value - Value to set for the isStagedForDeletion property.
    • setSharedTimeOff

      public void setSharedTimeOff(@Nullable TimeOffItem value)
      Sets the sharedTimeOff property value. 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.
      Parameters:
      value - Value to set for the sharedTimeOff property.
    • setUserId

      public void setUserId(@Nullable String value)
      Sets the userId property value. ID of the user assigned to the timeOff. Required.
      Parameters:
      value - Value to set for the userId property.