Class SearchWithQRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.searchwithq.SearchWithQRequestBuilder
@Generated("com.microsoft.kiota")
public class SearchWithQRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to call the search method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSearch the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionSearchWithQRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchWithQRequestBuilderand sets the default values.SearchWithQRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter, String q) Instantiates a newSearchWithQRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget()Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.get(Consumer<SearchWithQRequestBuilder.GetRequestConfiguration> requestConfiguration) Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.com.microsoft.kiota.RequestInformationSearch the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SearchWithQRequestBuilder.GetRequestConfiguration> requestConfiguration) Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SearchWithQRequestBuilder
public SearchWithQRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter, @Nullable String q) Instantiates a newSearchWithQRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.q- Usage: q='{q}'
-
SearchWithQRequestBuilder
public SearchWithQRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchWithQRequestBuilderand 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
-
get
Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.- Returns:
- a
SearchWithQGetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SearchWithQGetResponse get(@Nullable Consumer<SearchWithQRequestBuilder.GetRequestConfiguration> requestConfiguration) Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SearchWithQGetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SearchWithQRequestBuilder.GetRequestConfiguration> requestConfiguration) Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
SearchWithQRequestBuilder
-