Class SharedDriveItem

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

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

    • SharedDriveItem

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

    • createFromDiscriminatorValue

      @Nonnull public static SharedDriveItem 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 SharedDriveItem
    • getDriveItem

      @Nullable public DriveItem getDriveItem()
      Gets the driveItem property value. Used to access the underlying 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>>
    • getItems

      @Nullable public List<DriveItem> getItems()
      Gets the items property value. All driveItems contained in the sharing root. This collection cannot be enumerated.
      Returns:
      a List<DriveItem>
    • getList

      @Nullable public List getList()
      Gets the list property value. Used to access the underlying list
      Returns:
      a List
    • getListItem

      @Nullable public ListItem getListItem()
      Gets the listItem property value. Used to access the underlying listItem
      Returns:
      a ListItem
    • getOwner

      @Nullable public IdentitySet getOwner()
      Gets the owner property value. Information about the owner of the shared item being referenced.
      Returns:
      a IdentitySet
    • getPermission

      @Nullable public Permission getPermission()
      Gets the permission property value. Used to access the permission representing the underlying sharing link
      Returns:
      a Permission
    • getRoot

      @Nullable public DriveItem getRoot()
      Gets the root property value. Used to access the underlying driveItem. Deprecated -- use driveItem instead.
      Returns:
      a DriveItem
    • getSite

      @Nullable public Site getSite()
      Gets the site property value. Used to access the underlying site
      Returns:
      a Site
    • 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
    • setDriveItem

      public void setDriveItem(@Nullable DriveItem value)
      Sets the driveItem property value. Used to access the underlying driveItem
      Parameters:
      value - Value to set for the driveItem property.
    • setItems

      public void setItems(@Nullable List<DriveItem> value)
      Sets the items property value. All driveItems contained in the sharing root. This collection cannot be enumerated.
      Parameters:
      value - Value to set for the items property.
    • setList

      public void setList(@Nullable List value)
      Sets the list property value. Used to access the underlying list
      Parameters:
      value - Value to set for the list property.
    • setListItem

      public void setListItem(@Nullable ListItem value)
      Sets the listItem property value. Used to access the underlying listItem
      Parameters:
      value - Value to set for the listItem property.
    • setOwner

      public void setOwner(@Nullable IdentitySet value)
      Sets the owner property value. Information about the owner of the shared item being referenced.
      Parameters:
      value - Value to set for the owner property.
    • setPermission

      public void setPermission(@Nullable Permission value)
      Sets the permission property value. Used to access the permission representing the underlying sharing link
      Parameters:
      value - Value to set for the permission property.
    • setRoot

      public void setRoot(@Nullable DriveItem value)
      Sets the root property value. Used to access the underlying driveItem. Deprecated -- use driveItem instead.
      Parameters:
      value - Value to set for the root property.
    • setSite

      public void setSite(@Nullable Site value)
      Sets the site property value. Used to access the underlying site
      Parameters:
      value - Value to set for the site property.