Package com.microsoft.graph.models
Class Shift
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChangeTrackedEntity
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShiftcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the draftShift property value.The deserialization information for the current modelGets the isStagedForDeletion property value.Gets the schedulingGroupId property value.Gets the sharedShift property value.Gets the userId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetDraftShift(ShiftItem value) Sets the draftShift property value.voidsetIsStagedForDeletion(Boolean value) Sets the isStagedForDeletion property value.voidsetSchedulingGroupId(String value) Sets the schedulingGroupId property value.voidsetSharedShift(ShiftItem value) Sets the sharedShift property value.voidSets the userId property value.Methods inherited from class com.microsoft.graph.models.ChangeTrackedEntity
getCreatedBy, getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, setCreatedBy, setCreatedDateTime, setLastModifiedBy, setLastModifiedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Shift
public Shift()Instantiates a newShiftand 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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classChangeTrackedEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
Gets the schedulingGroupId property value. ID of the scheduling group the shift is part of. Required.- Returns:
- a
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classChangeTrackedEntity- Parameters:
writer- Serialization writer to use to serialize this model
-
setDraftShift
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
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
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.
-
setUserId
Sets the userId property value. ID of the user assigned to the shift. Required.- Parameters:
value- Value to set for the userId property.
-