Package com.microsoft.graph.search
Class SearchRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.search.SearchRequestBuilder
@Generated("com.microsoft.kiota")
public class SearchRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the searchEntity singleton.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet searchclassConfiguration for the request such as headers, query parameters, and middleware options.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
ConstructorsConstructorDescriptionSearchRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchRequestBuilderand sets the default values.SearchRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionacronyms()Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity.Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity.get()Get searchget(Consumer<SearchRequestBuilder.GetRequestConfiguration> requestConfiguration) Get searchpatch(SearchEntity body) Update searchpatch(SearchEntity body, Consumer<SearchRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update searchqnas()Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity.query()Provides operations to call the query method.com.microsoft.kiota.RequestInformationGet searchcom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SearchRequestBuilder.GetRequestConfiguration> requestConfiguration) Get searchcom.microsoft.kiota.RequestInformationUpdate searchcom.microsoft.kiota.RequestInformationtoPatchRequestInformation(SearchEntity body, Consumer<SearchRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update searchReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SearchRequestBuilder
public SearchRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SearchRequestBuilder
public SearchRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSearchRequestBuilderand 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
-
acronyms
Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity.- Returns:
- a
AcronymsRequestBuilder
-
bookmarks
Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity.- Returns:
- a
BookmarksRequestBuilder
-
qnas
Provides operations to manage the qnas property of the microsoft.graph.searchEntity entity.- Returns:
- a
QnasRequestBuilder
-
query
Provides operations to call the query method.- Returns:
- a
QueryRequestBuilder
-
get
Get search- Returns:
- a
SearchEntity - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public SearchEntity get(@Nullable Consumer<SearchRequestBuilder.GetRequestConfiguration> requestConfiguration) Get search- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SearchEntity - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update search- Parameters:
body- The request body- Returns:
- a
SearchEntity - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public SearchEntity patch(@Nonnull SearchEntity body, @Nullable Consumer<SearchRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update search- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SearchEntity - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get search- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SearchRequestBuilder.GetRequestConfiguration> requestConfiguration) Get search- 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 SearchEntity body) Update search- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull SearchEntity body, @Nullable Consumer<SearchRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update search- Parameters:
body- The request bodyrequestConfiguration- 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
SearchRequestBuilder
-