Package com.microsoft.graph.models
Class TimeCard
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChangeTrackedEntity
com.microsoft.graph.models.TimeCard
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class TimeCard
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 TimeCardcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the breaks property value.Gets the clockInEvent property value.Gets the clockOutEvent property value.Gets the confirmedBy property value.The deserialization information for the current modelgetNotes()Gets the notes property value.Gets the originalEntry property value.getState()Gets the state property value.Gets the userId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetBreaks(List<TimeCardBreak> value) Sets the breaks property value.voidsetClockInEvent(TimeCardEvent value) Sets the clockInEvent property value.voidsetClockOutEvent(TimeCardEvent value) Sets the clockOutEvent property value.voidsetConfirmedBy(EnumSet<ConfirmedBy> value) Sets the confirmedBy property value.voidSets the notes property value.voidsetOriginalEntry(TimeCardEntry value) Sets the originalEntry property value.voidsetState(TimeCardState value) Sets the state 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
-
TimeCard
public TimeCard()Instantiates a newTimeCardand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static TimeCard 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
TimeCard
-
getBreaks
Gets the breaks property value. The list of breaks associated with the timeCard.- Returns:
- a
List<TimeCardBreak>
-
getClockInEvent
Gets the clockInEvent property value. The clock-in event of the timeCard.- Returns:
- a
TimeCardEvent
-
getClockOutEvent
Gets the clockOutEvent property value. The clock-out event of the timeCard.- Returns:
- a
TimeCardEvent
-
getConfirmedBy
Gets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are: none, user, manager, unknownFutureValue.- Returns:
- a
EnumSet<ConfirmedBy>
-
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>>
-
getNotes
Gets the notes property value. Notes about the timeCard.- Returns:
- a
ItemBody
-
getOriginalEntry
Gets the originalEntry property value. The original timeCardEntry of the timeCard before it was edited.- Returns:
- a
TimeCardEntry
-
getState
Gets the state property value. The current state of the timeCard during its life cycle. The possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue.- Returns:
- a
TimeCardState
-
getUserId
Gets the userId property value. User ID to which the timeCard belongs.- 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
-
setBreaks
Sets the breaks property value. The list of breaks associated with the timeCard.- Parameters:
value- Value to set for the breaks property.
-
setClockInEvent
Sets the clockInEvent property value. The clock-in event of the timeCard.- Parameters:
value- Value to set for the clockInEvent property.
-
setClockOutEvent
Sets the clockOutEvent property value. The clock-out event of the timeCard.- Parameters:
value- Value to set for the clockOutEvent property.
-
setConfirmedBy
Sets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are: none, user, manager, unknownFutureValue.- Parameters:
value- Value to set for the confirmedBy property.
-
setNotes
Sets the notes property value. Notes about the timeCard.- Parameters:
value- Value to set for the notes property.
-
setOriginalEntry
Sets the originalEntry property value. The original timeCardEntry of the timeCard before it was edited.- Parameters:
value- Value to set for the originalEntry property.
-
setState
Sets the state property value. The current state of the timeCard during its life cycle. The possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue.- Parameters:
value- Value to set for the state property.
-
setUserId
Sets the userId property value. User ID to which the timeCard belongs.- Parameters:
value- Value to set for the userId property.
-