Class ListItem

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • ListItem

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

    • createFromDiscriminatorValue

      @Nonnull public static ListItem 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 ListItem
    • getAnalytics

      @Nullable public ItemAnalytics getAnalytics()
      Gets the analytics property value. Analytics about the view activities that took place on this item.
      Returns:
      a ItemAnalytics
    • getContentType

      @Nullable public ContentTypeInfo getContentType()
      Gets the contentType property value. The content type of this list item
      Returns:
      a ContentTypeInfo
    • getDocumentSetVersions

      @Nullable public List<DocumentSetVersion> getDocumentSetVersions()
      Gets the documentSetVersions property value. Version information for a document set version created by a user.
      Returns:
      a List<DocumentSetVersion>
    • getDriveItem

      @Nullable public DriveItem getDriveItem()
      Gets the driveItem property value. For document libraries, the driveItem relationship exposes the listItem as a driveItem
      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 BaseItem
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFields

      @Nullable public FieldValueSet getFields()
      Gets the fields property value. The values of the columns set on this list item.
      Returns:
      a FieldValueSet
    • getSharepointIds

      @Nullable public SharepointIds getSharepointIds()
      Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Returns:
      a SharepointIds
    • getVersions

      @Nullable public List<ListItemVersion> getVersions()
      Gets the versions property value. The list of previous versions of the list item.
      Returns:
      a List<ListItemVersion>
    • 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 BaseItem
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAnalytics

      public void setAnalytics(@Nullable ItemAnalytics value)
      Sets the analytics property value. Analytics about the view activities that took place on this item.
      Parameters:
      value - Value to set for the analytics property.
    • setContentType

      public void setContentType(@Nullable ContentTypeInfo value)
      Sets the contentType property value. The content type of this list item
      Parameters:
      value - Value to set for the contentType property.
    • setDocumentSetVersions

      public void setDocumentSetVersions(@Nullable List<DocumentSetVersion> value)
      Sets the documentSetVersions property value. Version information for a document set version created by a user.
      Parameters:
      value - Value to set for the documentSetVersions property.
    • setDriveItem

      public void setDriveItem(@Nullable DriveItem value)
      Sets the driveItem property value. For document libraries, the driveItem relationship exposes the listItem as a driveItem
      Parameters:
      value - Value to set for the driveItem property.
    • setFields

      public void setFields(@Nullable FieldValueSet value)
      Sets the fields property value. The values of the columns set on this list item.
      Parameters:
      value - Value to set for the fields property.
    • setSharepointIds

      public void setSharepointIds(@Nullable SharepointIds value)
      Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Parameters:
      value - Value to set for the sharepointIds property.
    • setVersions

      public void setVersions(@Nullable List<ListItemVersion> value)
      Sets the versions property value. The list of previous versions of the list item.
      Parameters:
      value - Value to set for the versions property.