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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet all the threads in a group conversation.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
ConstructorsConstructorDescriptionThreadsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newThreadsRequestBuilderand sets the default values.ThreadsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newThreadsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyConversationThreadId(String conversationThreadId) Provides operations to manage the threads property of the microsoft.graph.conversation entity.count()Provides operations to count the resources in the collection.get()Get all the threads in a group conversation.get(Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get all the threads in a group conversation.post(ConversationThread body) Create a new thread in the specified conversation.post(ConversationThread body, Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new thread in the specified conversation.com.microsoft.kiota.RequestInformationGet all the threads in a group conversation.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get all the threads in a group conversation.com.microsoft.kiota.RequestInformationCreate a new thread in the specified conversation.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ConversationThread body, Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new thread in the specified conversation.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ThreadsRequestBuilder
public ThreadsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newThreadsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ThreadsRequestBuilder
public ThreadsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newThreadsRequestBuilderand 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
-
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
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
@Nullable public ConversationThreadCollectionResponse get(@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
ConversationThreadCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
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 bodyrequestConfiguration- 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 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
ThreadsRequestBuilder
-