Package com.microsoft.graph.chats.item
Class ChatItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.chats.item.ChatItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ChatItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of chat entities.
-
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()Soft-delete a chat.voiddelete(Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Soft-delete a chat.get()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 properties of a chat object.patch(Chat body, Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a chat object.Provides 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.RequestInformationSoft-delete a chat.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Soft-delete a chat.com.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 properties of a chat object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(Chat body, Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a chat object.Provides 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()Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
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 properties of a chat object.- Parameters:
body- The request body- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public Chat patch(@Nonnull Chat body, @Nullable Consumer<ChatItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a chat object.- 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- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ChatItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins.- 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 properties of a chat object.- 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 properties of a chat object.- 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
-