Class ThreadsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.conversations.item.threads.ThreadsRequestBuilder

@Generated("com.microsoft.kiota") public class ThreadsRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the threads property of the microsoft.graph.conversation entity.
  • Constructor Details

    • ThreadsRequestBuilder

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

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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byConversationThreadId

      @Nonnull public ConversationThreadItemRequestBuilder byConversationThreadId(@Nonnull String conversationThreadId)
      Provides operations to manage the threads property of the microsoft.graph.conversation entity.
      Parameters:
      conversationThreadId - The unique identifier of conversationThread
      Returns:
      a ConversationThreadItemRequestBuilder
    • get

      @Nullable public ConversationThreadCollectionResponse get()
      Get all the threads in a group conversation. Note: You can also get all the threads of a group.
      Returns:
      a ConversationThreadCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Get all the threads in a group conversation. Note: You can also get all the threads of a group.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a ConversationThreadCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public ConversationThread post(@Nonnull ConversationThread body)
      Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread.
      Parameters:
      body - The request body
      Returns:
      a ConversationThread
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public ConversationThread post(@Nonnull ConversationThread body, @Nullable Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a ConversationThread
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get all the threads in a group conversation. Note: You can also get all the threads of a group.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get all the threads in a group conversation. Note: You can also get all the threads of a group.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ConversationThread body)
      Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ConversationThread body, @Nullable Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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