Class SharedDriveItemItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.shares.item.SharedDriveItemItemRequestBuilder

@Generated("com.microsoft.kiota") public class SharedDriveItemItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of sharedDriveItem entities.
  • Constructor Details

    • SharedDriveItemItemRequestBuilder

      public SharedDriveItemItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new SharedDriveItemItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • SharedDriveItemItemRequestBuilder

      public SharedDriveItemItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new SharedDriveItemItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • createdByUser

      @Nonnull public CreatedByUserRequestBuilder createdByUser()
      Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.
      Returns:
      a CreatedByUserRequestBuilder
    • driveItem

      @Nonnull public DriveItemRequestBuilder driveItem()
      Provides operations to manage the driveItem property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a DriveItemRequestBuilder
    • items

      @Nonnull public ItemsRequestBuilder items()
      Provides operations to manage the items property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a ItemsRequestBuilder
    • lastModifiedByUser

      @Nonnull public LastModifiedByUserRequestBuilder lastModifiedByUser()
      Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.
      Returns:
      a LastModifiedByUserRequestBuilder
    • list

      @Nonnull public ListRequestBuilder list()
      Provides operations to manage the list property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a ListRequestBuilder
    • listItem

      @Nonnull public ListItemRequestBuilder listItem()
      Provides operations to manage the listItem property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a ListItemRequestBuilder
    • permission

      @Nonnull public PermissionRequestBuilder permission()
      Provides operations to manage the permission property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a PermissionRequestBuilder
    • root

      @Nonnull public RootRequestBuilder root()
      Provides operations to manage the root property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a RootRequestBuilder
    • site

      @Nonnull public SiteRequestBuilder site()
      Provides operations to manage the site property of the microsoft.graph.sharedDriveItem entity.
      Returns:
      a SiteRequestBuilder
    • delete

      public void delete()
      Delete entity from shares
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from shares
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public SharedDriveItem get()
      Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.
      Returns:
      a SharedDriveItem
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public SharedDriveItem get(@Nullable Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a SharedDriveItem
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public SharedDriveItem patch(@Nonnull SharedDriveItem body)
      Update entity in shares
      Parameters:
      body - The request body
      Returns:
      a SharedDriveItem
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public SharedDriveItem patch(@Nonnull SharedDriveItem body, @Nullable Consumer<SharedDriveItemItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update entity in shares
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a SharedDriveItem
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete entity from shares
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from shares
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull SharedDriveItem body)
      Update entity in shares
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull SharedDriveItem body, @Nullable Consumer<SharedDriveItemItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update entity in shares
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public SharedDriveItemItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a SharedDriveItemItemRequestBuilder