Class DriveItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.DriveItemRequestBuilder

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

    • DriveItemRequestBuilder

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

      public DriveItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new DriveItemRequestBuilder 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

    • bundles

      @Nonnull public BundlesRequestBuilder bundles()
      Provides operations to manage the bundles property of the microsoft.graph.drive entity.
      Returns:
      a BundlesRequestBuilder
    • createdByUser

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

      @Nonnull public FollowingRequestBuilder following()
      Provides operations to manage the following property of the microsoft.graph.drive entity.
      Returns:
      a FollowingRequestBuilder
    • items

      @Nonnull public ItemsRequestBuilder items()
      Provides operations to manage the items property of the microsoft.graph.drive 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.drive entity.
      Returns:
      a ListRequestBuilder
    • recent

      @Nonnull public RecentRequestBuilder recent()
      Provides operations to call the recent method.
      Returns:
      a RecentRequestBuilder
    • root

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

      @Nonnull public SharedWithMeRequestBuilder sharedWithMe()
      Provides operations to call the sharedWithMe method.
      Returns:
      a SharedWithMeRequestBuilder
    • special

      @Nonnull public SpecialRequestBuilder special()
      Provides operations to manage the special property of the microsoft.graph.drive entity.
      Returns:
      a SpecialRequestBuilder
    • delete

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

      public void delete(@Nullable Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from drives
      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 Drive get()
      Get entity from drives by key
      Returns:
      a Drive
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Drive get(@Nullable Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get entity from drives by key
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Drive
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

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

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

      @Nonnull public SearchWithQRequestBuilder searchWithQ(@Nonnull String q)
      Provides operations to call the search method.
      Parameters:
      q - Usage: q='{q}'
      Returns:
      a SearchWithQRequestBuilder
    • toDeleteRequestInformation

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

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from drives
      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()
      Get entity from drives by key
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get entity from drives by key
      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 Drive body)
      Update entity in drives
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

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

      @Nonnull public DriveItemRequestBuilder 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 DriveItemRequestBuilder