Class ChatItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.chats.item.ChatItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ChatItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the chats property of the microsoft.graph.user entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve a single chat (without its messages).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
ConstructorsConstructorDescriptionChatItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatItemRequestBuilderand sets the default values.ChatItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property chats for usersvoiddelete(Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property chats for usersget()Retrieve a single chat (without its messages).get(Consumer<ChatItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single chat (without its messages).Provides operations to call the hideForUser method.Provides operations to manage the installedApps property of the microsoft.graph.chat entity.Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity.Provides operations to call the markChatReadForUser method.Provides operations to call the markChatUnreadForUser method.members()Provides operations to manage the members property of the microsoft.graph.chat entity.messages()Provides operations to manage the messages property of the microsoft.graph.chat entity.Update the navigation property chats in userspatch(Chat body, Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property chats in usersProvides operations to manage the permissionGrants property of the microsoft.graph.chat entity.Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity.Provides operations to call the sendActivityNotification method.tabs()Provides operations to manage the tabs property of the microsoft.graph.chat entity.com.microsoft.kiota.RequestInformationDelete navigation property chats for userscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property chats for userscom.microsoft.kiota.RequestInformationRetrieve a single chat (without its messages).com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ChatItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single chat (without its messages).com.microsoft.kiota.RequestInformationUpdate the navigation property chats in userscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(Chat body, Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property chats in usersProvides operations to call the unhideForUser method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ChatItemRequestBuilder
public ChatItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ChatItemRequestBuilder
public ChatItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatItemRequestBuilderand 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
-
hideForUser
Provides operations to call the hideForUser method.- Returns:
- a
HideForUserRequestBuilder
-
installedApps
Provides operations to manage the installedApps property of the microsoft.graph.chat entity.- Returns:
- a
InstalledAppsRequestBuilder
-
lastMessagePreview
Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity.- Returns:
- a
LastMessagePreviewRequestBuilder
-
markChatReadForUser
Provides operations to call the markChatReadForUser method.- Returns:
- a
MarkChatReadForUserRequestBuilder
-
markChatUnreadForUser
Provides operations to call the markChatUnreadForUser method.- Returns:
- a
MarkChatUnreadForUserRequestBuilder
-
members
Provides operations to manage the members property of the microsoft.graph.chat entity.- Returns:
- a
MembersRequestBuilder
-
messages
Provides operations to manage the messages property of the microsoft.graph.chat entity.- Returns:
- a
MessagesRequestBuilder
-
permissionGrants
Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity.- Returns:
- a
PermissionGrantsRequestBuilder
-
pinnedMessages
Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity.- Returns:
- a
PinnedMessagesRequestBuilder
-
sendActivityNotification
Provides operations to call the sendActivityNotification method.- Returns:
- a
SendActivityNotificationRequestBuilder
-
tabs
Provides operations to manage the tabs property of the microsoft.graph.chat entity.- Returns:
- a
TabsRequestBuilder
-
unhideForUser
Provides operations to call the unhideForUser method.- Returns:
- a
UnhideForUserRequestBuilder
-
delete
public void delete()Delete navigation property chats for users- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property chats for users- 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
Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from.- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public Chat get(@Nullable Consumer<ChatItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the navigation property chats in users- Parameters:
body- The request body- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public Chat patch(@Nonnull Chat body, @Nullable Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property chats in users- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property chats for users- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property chats for users- 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()Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ChatItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from.- 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 Chat body) Update the navigation property chats in users- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Chat body, @Nullable Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property chats in users- 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
ChatItemRequestBuilder
-