Class ItemActivity

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ItemActivity
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • ItemActivity

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

    • createFromDiscriminatorValue

      @Nonnull public static ItemActivity 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 ItemActivity
    • getAccess

      @Nullable public AccessAction getAccess()
      Gets the access property value. An item was accessed.
      Returns:
      a AccessAction
    • getActivityDateTime

      @Nullable public OffsetDateTime getActivityDateTime()
      Gets the activityDateTime property value. Details about when the activity took place. Read-only.
      Returns:
      a OffsetDateTime
    • getActor

      @Nullable public IdentitySet getActor()
      Gets the actor property value. Identity of who performed the action. Read-only.
      Returns:
      a IdentitySet
    • getDriveItem

      @Nullable public DriveItem getDriveItem()
      Gets the driveItem property value. Exposes the driveItem that was the target of this activity.
      Returns:
      a DriveItem
    • 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>>
    • 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
    • setAccess

      public void setAccess(@Nullable AccessAction value)
      Sets the access property value. An item was accessed.
      Parameters:
      value - Value to set for the access property.
    • setActivityDateTime

      public void setActivityDateTime(@Nullable OffsetDateTime value)
      Sets the activityDateTime property value. Details about when the activity took place. Read-only.
      Parameters:
      value - Value to set for the activityDateTime property.
    • setActor

      public void setActor(@Nullable IdentitySet value)
      Sets the actor property value. Identity of who performed the action. Read-only.
      Parameters:
      value - Value to set for the actor property.
    • setDriveItem

      public void setDriveItem(@Nullable DriveItem value)
      Sets the driveItem property value. Exposes the driveItem that was the target of this activity.
      Parameters:
      value - Value to set for the driveItem property.