Package com.microsoft.graph.models
Class BaseItem
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BaseItem
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
BaseSitePage
,Drive
,DriveItem
,List
,ListItem
,RecycleBin
,RecycleBinItem
,SharedDriveItem
,Site
@Generated("com.microsoft.kiota")
public class BaseItem
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 BaseItem
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the createdBy property value.Gets the createdByUser property value.Gets the createdDateTime property value.Gets the description property value.getETag()
Gets the eTag property value.The deserialization information for the current modelGets the lastModifiedBy property value.Gets the lastModifiedByUser property value.Gets the lastModifiedDateTime property value.getName()
Gets the name property value.Gets the parentReference property value.Gets the webUrl property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setCreatedBy
(IdentitySet value) Sets the createdBy property value.void
setCreatedByUser
(User value) Sets the createdByUser property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
Sets the eTag property value.void
setLastModifiedBy
(IdentitySet value) Sets the lastModifiedBy property value.void
setLastModifiedByUser
(User value) Sets the lastModifiedByUser property value.void
Sets the lastModifiedDateTime property value.void
Sets the name property value.void
setParentReference
(ItemReference value) Sets the parentReference property value.void
Sets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
BaseItem
public BaseItem()Instantiates a newBaseItem
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static BaseItem 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
BaseItem
-
getCreatedBy
Gets the createdBy property value. Identity of the user, device, or application that created the item. Read-only.- Returns:
- a
IdentitySet
-
getCreatedByUser
Gets the createdByUser property value. Identity of the user who created the item. Read-only.- Returns:
- a
User
-
getCreatedDateTime
Gets the createdDateTime property value. Date and time of item creation. Read-only.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. Provides a user-visible description of the item. Optional.- Returns:
- a
String
-
getETag
Gets the eTag property value. ETag for the item. Read-only.- Returns:
- a
String
-
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>>
-
getLastModifiedBy
Gets the lastModifiedBy property value. Identity of the user, device, and application that last modified the item. Read-only.- Returns:
- a
IdentitySet
-
getLastModifiedByUser
Gets the lastModifiedByUser property value. Identity of the user who last modified the item. Read-only.- Returns:
- a
User
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Date and time the item was last modified. Read-only.- Returns:
- a
OffsetDateTime
-
getName
Gets the name property value. The name of the item. Read-write.- Returns:
- a
String
-
getParentReference
Gets the parentReference property value. Parent information, if the item has a parent. Read-write.- Returns:
- a
ItemReference
-
getWebUrl
Gets the webUrl property value. URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setCreatedBy
Sets the createdBy property value. Identity of the user, device, or application that created the item. Read-only.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedByUser
Sets the createdByUser property value. Identity of the user who created the item. Read-only.- Parameters:
value
- Value to set for the createdByUser property.
-
setCreatedDateTime
Sets the createdDateTime property value. Date and time of item creation. Read-only.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. Provides a user-visible description of the item. Optional.- Parameters:
value
- Value to set for the description property.
-
setETag
Sets the eTag property value. ETag for the item. Read-only.- Parameters:
value
- Value to set for the eTag property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. Identity of the user, device, and application that last modified the item. Read-only.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedByUser
Sets the lastModifiedByUser property value. Identity of the user who last modified the item. Read-only.- Parameters:
value
- Value to set for the lastModifiedByUser property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Date and time the item was last modified. Read-only.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setName
Sets the name property value. The name of the item. Read-write.- Parameters:
value
- Value to set for the name property.
-
setParentReference
Sets the parentReference property value. Parent information, if the item has a parent. Read-write.- Parameters:
value
- Value to set for the parentReference property.
-
setWebUrl
Sets the webUrl property value. URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only.- Parameters:
value
- Value to set for the webUrl property.
-