Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemActivity
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the access property value.Gets the activityDateTime property value.getActor()
Gets the actor property value.Gets the driveItem property value.The deserialization information for the current modelvoid
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAccess
(AccessAction value) Sets the access property value.void
Sets the activityDateTime property value.void
setActor
(IdentitySet value) Sets the actor property value.void
setDriveItem
(DriveItem value) Sets the driveItem property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ItemActivity
public ItemActivity()Instantiates a newItemActivity
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
Gets the access property value. An item was accessed.- Returns:
- a
AccessAction
-
getActivityDateTime
Gets the activityDateTime property value. Details about when the activity took place. Read-only.- Returns:
- a
OffsetDateTime
-
getActor
Gets the actor property value. Identity of who performed the action. Read-only.- Returns:
- a
IdentitySet
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- 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 -
setAccess
Sets the access property value. An item was accessed.- Parameters:
value
- Value to set for the access property.
-
setActivityDateTime
Sets the activityDateTime property value. Details about when the activity took place. Read-only.- Parameters:
value
- Value to set for the activityDateTime property.
-
setActor
Sets the actor property value. Identity of who performed the action. Read-only.- Parameters:
value
- Value to set for the actor property.
-
setDriveItem
Sets the driveItem property value. Exposes the driveItem that was the target of this activity.- Parameters:
value
- Value to set for the driveItem property.
-