Class SharedRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.insights.shared.SharedRequestBuilder
@Generated("com.microsoft.kiota")
public class SharedRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the shared property of the microsoft.graph.officeGraphInsights entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCalculated relationship that identifies documents shared with or by the user.classConfiguration 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
ConstructorsConstructorDescriptionSharedRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedRequestBuilderand sets the default values.SharedRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbySharedInsightId(String sharedInsightId) Provides operations to manage the shared property of the microsoft.graph.officeGraphInsights entity.count()Provides operations to count the resources in the collection.get()Calculated relationship that identifies documents shared with or by the user.get(Consumer<SharedRequestBuilder.GetRequestConfiguration> requestConfiguration) Calculated relationship that identifies documents shared with or by the user.post(SharedInsight body) Create new navigation property to shared for userspost(SharedInsight body, Consumer<SharedRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to shared for userscom.microsoft.kiota.RequestInformationCalculated relationship that identifies documents shared with or by the user.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SharedRequestBuilder.GetRequestConfiguration> requestConfiguration) Calculated relationship that identifies documents shared with or by the user.com.microsoft.kiota.RequestInformationCreate new navigation property to shared for userscom.microsoft.kiota.RequestInformationtoPostRequestInformation(SharedInsight body, Consumer<SharedRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to shared for usersReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SharedRequestBuilder
public SharedRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SharedRequestBuilder
public SharedRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
get
Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.- Returns:
- a
SharedInsightCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public SharedInsightCollectionResponse get(@Nullable Consumer<SharedRequestBuilder.GetRequestConfiguration> requestConfiguration) Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SharedInsightCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SharedRequestBuilder.GetRequestConfiguration> requestConfiguration) Calculated relationship that identifies documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for work or school and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.- 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
SharedRequestBuilder
-