Class RepliesRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.chats.item.messages.item.replies.RepliesRequestBuilder

@Generated("com.microsoft.kiota") public class RepliesRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
  • Constructor Details

    • RepliesRequestBuilder

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

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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • delta

      @Nonnull public DeltaRequestBuilder delta()
      Provides operations to call the delta method.
      Returns:
      a DeltaRequestBuilder
    • byChatMessageId1

      @Nonnull public ChatMessageItemRequestBuilder byChatMessageId1(@Nonnull String chatMessageId1)
      Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
      Parameters:
      chatMessageId1 - The unique identifier of chatMessage
      Returns:
      a ChatMessageItemRequestBuilder
    • get

      @Nullable public ChatMessageCollectionResponse get()
      Replies for a specified message. Supports $expand for channel messages.
      Returns:
      a ChatMessageCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public ChatMessageCollectionResponse get(@Nullable Consumer<RepliesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Replies for a specified message. Supports $expand for channel messages.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a ChatMessageCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public ChatMessage post(@Nonnull ChatMessage body)
      Create new navigation property to replies for chats
      Parameters:
      body - The request body
      Returns:
      a ChatMessage
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public ChatMessage post(@Nonnull ChatMessage body, @Nullable Consumer<RepliesRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to replies for chats
      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
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Replies for a specified message. Supports $expand for channel messages.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RepliesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Replies for a specified message. Supports $expand for channel messages.
      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 ChatMessage body)
      Create new navigation property to replies for chats
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ChatMessage body, @Nullable Consumer<RepliesRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to replies for chats
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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