Class PrinterCreateRequest

java.lang.Object
com.microsoft.graph.http.BaseRequest<Void>
com.microsoft.graph.requests.PrinterCreateRequest
All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest

public class PrinterCreateRequest extends com.microsoft.graph.http.BaseRequest<Void>
The class for the Printer Create Request.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The body for the method

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

    functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Creates the PrinterCreate
    Creates the PrinterCreate

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

    addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setHttpMethod, 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
  • Field Details

  • Constructor Details

    • PrinterCreateRequest

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

    • postAsync

      @Nonnull public CompletableFuture<Void> postAsync()
      Creates the PrinterCreate
      Returns:
      a future for the operation
    • post

      public void post() throws com.microsoft.graph.core.ClientException
      Creates the PrinterCreate
      Throws:
      com.microsoft.graph.core.ClientException - an exception occurs if there was an error while the request was sent