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.
  • Constructor Details

    • ChatItemRequestBuilder

      public ChatItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ChatItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • ChatItemRequestBuilder

      public ChatItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ChatItemRequestBuilder and 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

      @Nonnull public HideForUserRequestBuilder hideForUser()
      Provides operations to call the hideForUser method.
      Returns:
      a HideForUserRequestBuilder
    • installedApps

      @Nonnull public InstalledAppsRequestBuilder installedApps()
      Provides operations to manage the installedApps property of the microsoft.graph.chat entity.
      Returns:
      a InstalledAppsRequestBuilder
    • lastMessagePreview

      @Nonnull public LastMessagePreviewRequestBuilder lastMessagePreview()
      Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity.
      Returns:
      a LastMessagePreviewRequestBuilder
    • markChatReadForUser

      @Nonnull public MarkChatReadForUserRequestBuilder markChatReadForUser()
      Provides operations to call the markChatReadForUser method.
      Returns:
      a MarkChatReadForUserRequestBuilder
    • markChatUnreadForUser

      @Nonnull public MarkChatUnreadForUserRequestBuilder markChatUnreadForUser()
      Provides operations to call the markChatUnreadForUser method.
      Returns:
      a MarkChatUnreadForUserRequestBuilder
    • members

      @Nonnull public MembersRequestBuilder members()
      Provides operations to manage the members property of the microsoft.graph.chat entity.
      Returns:
      a MembersRequestBuilder
    • messages

      @Nonnull public MessagesRequestBuilder messages()
      Provides operations to manage the messages property of the microsoft.graph.chat entity.
      Returns:
      a MessagesRequestBuilder
    • permissionGrants

      @Nonnull public PermissionGrantsRequestBuilder permissionGrants()
      Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity.
      Returns:
      a PermissionGrantsRequestBuilder
    • pinnedMessages

      @Nonnull public PinnedMessagesRequestBuilder pinnedMessages()
      Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity.
      Returns:
      a PinnedMessagesRequestBuilder
    • sendActivityNotification

      @Nonnull public SendActivityNotificationRequestBuilder sendActivityNotification()
      Provides operations to call the sendActivityNotification method.
      Returns:
      a SendActivityNotificationRequestBuilder
    • tabs

      @Nonnull public TabsRequestBuilder tabs()
      Provides operations to manage the tabs property of the microsoft.graph.chat entity.
      Returns:
      a TabsRequestBuilder
    • unhideForUser

      @Nonnull public UnhideForUserRequestBuilder 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

      @Nullable public Chat 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

      @Nullable public Chat patch(@Nonnull Chat body)
      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 body
      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
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public ChatItemRequestBuilder withUrl(@Nonnull String rawUrl)
      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