Class ChatsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.chats.ChatsRequestBuilder
@Generated("com.microsoft.kiota")
public class ChatsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the chats property of the microsoft.graph.user entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve the list of chats that the user is part of.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
ConstructorsConstructorDescriptionChatsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatsRequestBuilderand sets the default values.ChatsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the chats property of the microsoft.graph.user entity.count()Provides operations to count the resources in the collection.get()Retrieve the list of chats that the user is part of.get(Consumer<ChatsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of chats that the user is part of.Provides operations to call the getAllMessages method.Provides operations to call the getAllRetainedMessages method.Create new navigation property to chats for userspost(Chat body, Consumer<ChatsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to chats for userscom.microsoft.kiota.RequestInformationRetrieve the list of chats that the user is part of.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ChatsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of chats that the user is part of.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Chat body) Create new navigation property to chats for userscom.microsoft.kiota.RequestInformationtoPostRequestInformation(Chat body, Consumer<ChatsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to chats for usersReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ChatsRequestBuilder
public ChatsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ChatsRequestBuilder
public ChatsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatsRequestBuilderand 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
-
getAllMessages
Provides operations to call the getAllMessages method.- Returns:
- a
GetAllMessagesRequestBuilder
-
getAllRetainedMessages
Provides operations to call the getAllRetainedMessages method.- Returns:
- a
GetAllRetainedMessagesRequestBuilder
-
byChatId
Provides operations to manage the chats property of the microsoft.graph.user entity.- Parameters:
chatId- The unique identifier of chat- Returns:
- a
ChatItemRequestBuilder
-
get
Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.- Returns:
- a
ChatCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public ChatCollectionResponse get(@Nullable Consumer<ChatsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ChatCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create new navigation property to chats for users- Parameters:
body- The request body- Returns:
- a
Chat - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public Chat post(@Nonnull Chat body, @Nullable Consumer<ChatsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to chats for users- 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
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ChatsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
Create new navigation property to chats for users- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Chat body, @Nullable Consumer<ChatsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to chats for users- 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
ChatsRequestBuilder
-