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 ItemActivitycreateFromDiscriminatorValue(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 modelvoidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAccess(AccessAction value) Sets the access property value.voidSets the activityDateTime property value.voidsetActor(IdentitySet value) Sets the actor property value.voidsetDriveItem(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 newItemActivityand 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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin 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.
-