Class Shift

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

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

    • Shift

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

    • createFromDiscriminatorValue

      @Nonnull public static Shift 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 Shift
    • getDraftShift

      @Nullable public ShiftItem getDraftShift()
      Gets the draftShift property value. Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they're shared, which copies the changes from the draftShift to the sharedShift property.
      Returns:
      a ShiftItem
    • 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 shift is marked for deletion, a process that is finalized when the schedule is shared.
      Returns:
      a Boolean
    • getSchedulingGroupId

      @Nullable public String getSchedulingGroupId()
      Gets the schedulingGroupId property value. ID of the scheduling group the shift is part of. Required.
      Returns:
      a String
    • getSharedShift

      @Nullable public ShiftItem getSharedShift()
      Gets the sharedShift property value. 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.
      Returns:
      a ShiftItem
    • getUserId

      @Nullable public String getUserId()
      Gets the userId property value. ID of the user assigned to the shift. 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
    • setDraftShift

      public void setDraftShift(@Nullable ShiftItem value)
      Sets the draftShift property value. Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they're shared, which copies the changes from the draftShift to the sharedShift property.
      Parameters:
      value - Value to set for the draftShift property.
    • setIsStagedForDeletion

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

      public void setSchedulingGroupId(@Nullable String value)
      Sets the schedulingGroupId property value. ID of the scheduling group the shift is part of. Required.
      Parameters:
      value - Value to set for the schedulingGroupId property.
    • setSharedShift

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

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