Class PostItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.threads.item.posts.item.PostItemRequestBuilder

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

    • PostItemRequestBuilder

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

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

    • attachments

      @Nonnull public AttachmentsRequestBuilder attachments()
      Provides operations to manage the attachments property of the microsoft.graph.post entity.
      Returns:
      a AttachmentsRequestBuilder
    • extensions

      @Nonnull public ExtensionsRequestBuilder extensions()
      Provides operations to manage the extensions property of the microsoft.graph.post entity.
      Returns:
      a ExtensionsRequestBuilder
    • forward

      @Nonnull public ForwardRequestBuilder forward()
      Provides operations to call the forward method.
      Returns:
      a ForwardRequestBuilder
    • inReplyTo

      @Nonnull public InReplyToRequestBuilder inReplyTo()
      Provides operations to manage the inReplyTo property of the microsoft.graph.post entity.
      Returns:
      a InReplyToRequestBuilder
    • reply

      @Nonnull public ReplyRequestBuilder reply()
      Provides operations to call the reply method.
      Returns:
      a ReplyRequestBuilder
    • get

      @Nullable public Post get()
      Get posts from groups
      Returns:
      a Post
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Post get(@Nullable Consumer<PostItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get posts from groups
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Post
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get posts from groups
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PostItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get posts from groups
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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