Class ChatMessageItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.channels.item.messages.item.ChatMessageItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ChatMessageItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the messages property of the microsoft.graph.channel entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve a single message or a message reply in a channel or a chat.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
ConstructorsConstructorDescriptionChatMessageItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatMessageItemRequestBuilderand sets the default values.ChatMessageItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatMessageItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property messages for teamsvoiddelete(Consumer<ChatMessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for teamsget()Retrieve a single message or a message reply in a channel or a chat.get(Consumer<ChatMessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single message or a message reply in a channel or a chat.Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.patch(ChatMessage body) Update a chatMessage object.patch(ChatMessage body, Consumer<ChatMessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a chatMessage object.replies()Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.Provides operations to call the setReaction method.Provides operations to call the softDelete method.com.microsoft.kiota.RequestInformationDelete navigation property messages for teamscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ChatMessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for teamscom.microsoft.kiota.RequestInformationRetrieve a single message or a message reply in a channel or a chat.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ChatMessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single message or a message reply in a channel or a chat.com.microsoft.kiota.RequestInformationUpdate a chatMessage object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(ChatMessage body, Consumer<ChatMessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a chatMessage object.Provides operations to call the undoSoftDelete method.Provides operations to call the unsetReaction method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ChatMessageItemRequestBuilder
public ChatMessageItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatMessageItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ChatMessageItemRequestBuilder
public ChatMessageItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChatMessageItemRequestBuilderand 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
-
hostedContents
Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.- Returns:
- a
HostedContentsRequestBuilder
-
replies
Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.- Returns:
- a
RepliesRequestBuilder
-
setReaction
Provides operations to call the setReaction method.- Returns:
- a
SetReactionRequestBuilder
-
softDelete
Provides operations to call the softDelete method.- Returns:
- a
SoftDeleteRequestBuilder
-
undoSoftDelete
Provides operations to call the undoSoftDelete method.- Returns:
- a
UndoSoftDeleteRequestBuilder
-
unsetReaction
Provides operations to call the unsetReaction method.- Returns:
- a
UnsetReactionRequestBuilder
-
delete
public void delete()Delete navigation property messages for teams- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<ChatMessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for teams- 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
Retrieve a single message or a message reply in a channel or a chat.- Returns:
- a
ChatMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public ChatMessage get(@Nullable Consumer<ChatMessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single message or a message reply in a channel or a chat.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ChatMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update a chatMessage object. Except for the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation fails. This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message.- Parameters:
body- The request body- Returns:
- a
ChatMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public ChatMessage patch(@Nonnull ChatMessage body, @Nullable Consumer<ChatMessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a chatMessage object. Except for the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation fails. This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ChatMessage - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property messages for teams- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ChatMessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for teams- 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 message or a message reply in a channel or a chat.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ChatMessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a single message or a message reply in a channel or a chat.- 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 ChatMessage body) Update a chatMessage object. Except for the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation fails. This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull ChatMessage body, @Nullable Consumer<ChatMessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a chatMessage object. Except for the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation fails. This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message.- 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
ChatMessageItemRequestBuilder
-