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
  • Constructor Details

    • ActivityHistoryItem

      public ActivityHistoryItem()
      Instantiates a new ActivityHistoryItem 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

      @Nullable public Integer 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

      @Nullable public UserActivity getActivity()
      Gets the activity property value. The activity property
      Returns:
      a UserActivity
    • getCreatedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastActiveDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public 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

      @Nullable public 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

      @Nullable public Status 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

      @Nullable public String 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setActiveDurationSeconds

      public void setActiveDurationSeconds(@Nullable Integer value)
      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

      public void setActivity(@Nullable UserActivity value)
      Sets the activity property value. The activity property
      Parameters:
      value - Value to set for the activity property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setExpirationDateTime(@Nullable OffsetDateTime value)
      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

      public void setLastActiveDateTime(@Nullable OffsetDateTime value)
      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

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setStartedDateTime(@Nullable OffsetDateTime value)
      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

      public void setStatus(@Nullable Status value)
      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

      public void setUserTimezone(@Nullable String value)
      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.