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.
  • Constructor Details

    • ChatMessageItemRequestBuilder

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

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

    • hostedContents

      @Nonnull public HostedContentsRequestBuilder hostedContents()
      Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
      Returns:
      a HostedContentsRequestBuilder
    • replies

      @Nonnull public RepliesRequestBuilder replies()
      Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
      Returns:
      a RepliesRequestBuilder
    • setReaction

      @Nonnull public SetReactionRequestBuilder setReaction()
      Provides operations to call the setReaction method.
      Returns:
      a SetReactionRequestBuilder
    • softDelete

      @Nonnull public SoftDeleteRequestBuilder softDelete()
      Provides operations to call the softDelete method.
      Returns:
      a SoftDeleteRequestBuilder
    • undoSoftDelete

      @Nonnull public UndoSoftDeleteRequestBuilder undoSoftDelete()
      Provides operations to call the undoSoftDelete method.
      Returns:
      a UndoSoftDeleteRequestBuilder
    • unsetReaction

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

      @Nullable public ChatMessage 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

      @Nullable public ChatMessage patch(@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 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 body
      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:
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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