Package com.microsoft.graph.models
Class ActivityHistoryItem
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ActivityHistoryItem
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ActivityHistoryItem
extends Entity
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 ActivityHistoryItem
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the activeDurationSeconds property value.Gets the activity property value.Gets the createdDateTime property value.Gets the expirationDateTime property value.The deserialization information for the current modelGets the lastActiveDateTime property value.Gets the lastModifiedDateTime property value.Gets the startedDateTime property value.Gets the status property value.Gets the userTimezone property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setActiveDurationSeconds
(Integer value) Sets the activeDurationSeconds property value.void
setActivity
(UserActivity value) Sets the activity property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the expirationDateTime property value.void
Sets the lastActiveDateTime property value.void
Sets the lastModifiedDateTime property value.void
setStartedDateTime
(OffsetDateTime value) Sets the startedDateTime property value.void
Sets the status property value.void
setUserTimezone
(String value) Sets the userTimezone property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ActivityHistoryItem
public ActivityHistoryItem()Instantiates a newActivityHistoryItem
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ActivityHistoryItem 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
ActivityHistoryItem
-
getActiveDurationSeconds
Gets the activeDurationSeconds property value. Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.- Returns:
- a
Integer
-
getActivity
Gets the activity property value. The activity property- Returns:
- a
UserActivity
-
getCreatedDateTime
Gets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.- Returns:
- a
OffsetDateTime
-
getExpirationDateTime
Gets the expirationDateTime property value. Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client.- Returns:
- a
OffsetDateTime
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastActiveDateTime
Gets the lastActiveDateTime property value. Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing.- Returns:
- a
OffsetDateTime
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.- Returns:
- a
OffsetDateTime
-
getStartedDateTime
Gets the startedDateTime property value. Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history.- Returns:
- a
OffsetDateTime
-
getStatus
Gets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.- Returns:
- a
Status
-
getUserTimezone
Gets the userTimezone property value. Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActiveDurationSeconds
Sets the activeDurationSeconds property value. Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.- Parameters:
value
- Value to set for the activeDurationSeconds property.
-
setActivity
Sets the activity property value. The activity property- Parameters:
value
- Value to set for the activity property.
-
setCreatedDateTime
Sets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.- Parameters:
value
- Value to set for the createdDateTime property.
-
setExpirationDateTime
Sets the expirationDateTime property value. Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client.- Parameters:
value
- Value to set for the expirationDateTime property.
-
setLastActiveDateTime
Sets the lastActiveDateTime property value. Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing.- Parameters:
value
- Value to set for the lastActiveDateTime property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setStartedDateTime
Sets the startedDateTime property value. Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history.- Parameters:
value
- Value to set for the startedDateTime property.
-
setStatus
Sets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.- Parameters:
value
- Value to set for the status property.
-
setUserTimezone
Sets the userTimezone property value. Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.- Parameters:
value
- Value to set for the userTimezone property.
-