Class ThreadsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.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.group entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet all the threads of a group.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.group entity.count()Provides operations to count the resources in the collection.get()Get all the threads of a group.get(Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get all the threads of a group.post(ConversationThread body) Start a new group conversation by first creating a thread.post(ConversationThread body, Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration) Start a new group conversation by first creating a thread.com.microsoft.kiota.RequestInformationGet all the threads of a group.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get all the threads of a group.com.microsoft.kiota.RequestInformationStart a new group conversation by first creating a thread.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ConversationThread body, Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration) Start a new group conversation by first creating a thread.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.group entity.- Parameters:
conversationThreadId- The unique identifier of conversationThread- Returns:
- a
ConversationThreadItemRequestBuilder
-
get
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 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
Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation.- 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) Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation.- 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 of a group.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ThreadsRequestBuilder.GetRequestConfiguration> requestConfiguration) 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) Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ConversationThread body, @Nullable Consumer<ThreadsRequestBuilder.PostRequestConfiguration> requestConfiguration) Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation.- 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
-