Class PostCollectionRequest

java.lang.Object
com.microsoft.graph.http.BaseCollectionRequest<T,T2,T3>
com.microsoft.graph.http.BaseEntityCollectionRequest<Post,PostCollectionResponse,PostCollectionPage>
com.microsoft.graph.requests.PostCollectionRequest
All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest

public class PostCollectionRequest extends com.microsoft.graph.http.BaseEntityCollectionRequest<Post,PostCollectionResponse,PostCollectionPage>
The class for the Post Collection Request.
  • Field Summary

    Fields inherited from class com.microsoft.graph.http.BaseCollectionRequest

    responseCollectionClass
  • Constructor Summary

    Constructors
    Constructor
    Description
    PostCollectionRequest(String requestUrl, com.microsoft.graph.core.IBaseClient<?> client, List<? extends com.microsoft.graph.options.Option> requestOptions)
    The request builder for this collection of Post
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the count value to true for the request
    count(boolean value)
    Sets the count value for the request
    expand(String value)
    Sets the expand clause for the request
    filter(String value)
    Sets the filter clause for the request
    orderBy(String value)
    Sets the order by clause for the request
    post(Post newPost)
    Creates a new Post
    postAsync(Post newPost)
    Creates a new Post
    select(String value)
    Sets the select clause for the request
    skip(int value)
    Sets the skip value for the request
    skipToken(String skipToken)
    Add Skip token for pagination
    top(int value)
    Sets the top value for the request

    Methods inherited from class com.microsoft.graph.http.BaseEntityCollectionRequest

    get, getAsync, post

    Methods inherited from class com.microsoft.graph.http.BaseCollectionRequest

    addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, buildFromResponse, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.microsoft.graph.http.IHttpRequest

    getHttpRequest
  • Constructor Details

    • PostCollectionRequest

      public PostCollectionRequest(@Nonnull String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable List<? extends com.microsoft.graph.options.Option> requestOptions)
      The request builder for this collection of Post
      Parameters:
      requestUrl - the request URL
      client - the service client
      requestOptions - the options for this request
  • Method Details

    • postAsync

      @Nonnull public CompletableFuture<Post> postAsync(@Nonnull Post newPost)
      Creates a new Post
      Parameters:
      newPost - the Post to create
      Returns:
      a future with the created object
    • post

      @Nonnull public Post post(@Nonnull Post newPost) throws com.microsoft.graph.core.ClientException
      Creates a new Post
      Parameters:
      newPost - the Post to create
      Returns:
      the newly created object
      Throws:
      com.microsoft.graph.core.ClientException
    • expand

      @Nonnull public PostCollectionRequest expand(@Nonnull String value)
      Sets the expand clause for the request
      Parameters:
      value - the expand clause
      Returns:
      the updated request
    • filter

      @Nonnull public PostCollectionRequest filter(@Nonnull String value)
      Sets the filter clause for the request
      Parameters:
      value - the filter clause
      Returns:
      the updated request
    • orderBy

      @Nonnull public PostCollectionRequest orderBy(@Nonnull String value)
      Sets the order by clause for the request
      Parameters:
      value - the order by clause
      Returns:
      the updated request
    • select

      @Nonnull public PostCollectionRequest select(@Nonnull String value)
      Sets the select clause for the request
      Parameters:
      value - the select clause
      Returns:
      the updated request
    • top

      @Nonnull public PostCollectionRequest top(int value)
      Sets the top value for the request
      Parameters:
      value - the max number of items to return
      Returns:
      the updated request
    • count

      @Nonnull public PostCollectionRequest count(boolean value)
      Sets the count value for the request
      Parameters:
      value - whether or not to return the count of objects with the request
      Returns:
      the updated request
    • count

      @Nonnull public PostCollectionRequest count()
      Sets the count value to true for the request
      Returns:
      the updated request
    • skip

      @Nonnull public PostCollectionRequest skip(int value)
      Sets the skip value for the request
      Parameters:
      value - of the number of items to skip
      Returns:
      the updated request
    • skipToken

      @Nonnull public PostCollectionRequest skipToken(@Nonnull String skipToken)
      Add Skip token for pagination
      Parameters:
      skipToken - - Token for pagination
      Returns:
      the updated request