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

    • BaseItem

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

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. Identity of the user, device, or application that created the item. Read-only.
      Returns:
      a IdentitySet
    • getCreatedByUser

      @Nullable public User getCreatedByUser()
      Gets the createdByUser property value. Identity of the user who created the item. Read-only.
      Returns:
      a User
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Date and time of item creation. Read-only.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Provides a user-visible description of the item. Optional.
      Returns:
      a String
    • getETag

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

      @Nullable public IdentitySet getLastModifiedBy()
      Gets the lastModifiedBy property value. Identity of the user, device, and application that last modified the item. Read-only.
      Returns:
      a IdentitySet
    • getLastModifiedByUser

      @Nullable public User getLastModifiedByUser()
      Gets the lastModifiedByUser property value. Identity of the user who last modified the item. Read-only.
      Returns:
      a User
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. Date and time the item was last modified. Read-only.
      Returns:
      a OffsetDateTime
    • getName

      @Nullable public String getName()
      Gets the name property value. The name of the item. Read-write.
      Returns:
      a String
    • getParentReference

      @Nullable public ItemReference getParentReference()
      Gets the parentReference property value. Parent information, if the item has a parent. Read-write.
      Returns:
      a ItemReference
    • getWebUrl

      @Nullable public String 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
      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
    • setCreatedBy

      public void setCreatedBy(@Nullable IdentitySet value)
      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

      public void setCreatedByUser(@Nullable User value)
      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

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Date and time of item creation. Read-only.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Provides a user-visible description of the item. Optional.
      Parameters:
      value - Value to set for the description property.
    • setETag

      public void setETag(@Nullable String value)
      Sets the eTag property value. ETag for the item. Read-only.
      Parameters:
      value - Value to set for the eTag property.
    • setLastModifiedBy

      public void setLastModifiedBy(@Nullable IdentitySet value)
      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

      public void setLastModifiedByUser(@Nullable User value)
      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

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

      public void setName(@Nullable String value)
      Sets the name property value. The name of the item. Read-write.
      Parameters:
      value - Value to set for the name property.
    • setParentReference

      public void setParentReference(@Nullable ItemReference value)
      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

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