Class PrintJobItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.print.printers.item.jobs.item.PrintJobItemRequestBuilder

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

    • PrintJobItemRequestBuilder

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

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

    • abort

      @Nonnull public AbortRequestBuilder abort()
      Provides operations to call the abort method.
      Returns:
      a AbortRequestBuilder
    • cancel

      @Nonnull public CancelRequestBuilder cancel()
      Provides operations to call the cancel method.
      Returns:
      a CancelRequestBuilder
    • documents

      @Nonnull public DocumentsRequestBuilder documents()
      Provides operations to manage the documents property of the microsoft.graph.printJob entity.
      Returns:
      a DocumentsRequestBuilder
    • redirect

      @Nonnull public RedirectRequestBuilder redirect()
      Provides operations to call the redirect method.
      Returns:
      a RedirectRequestBuilder
    • start

      @Nonnull public StartRequestBuilder start()
      Provides operations to call the start method.
      Returns:
      a StartRequestBuilder
    • tasks

      @Nonnull public TasksRequestBuilder tasks()
      Provides operations to manage the tasks property of the microsoft.graph.printJob entity.
      Returns:
      a TasksRequestBuilder
    • delete

      public void delete()
      Delete navigation property jobs for print
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<PrintJobItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property jobs for print
      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 PrintJob get()
      Retrieve the properties and relationships of a print job.
      Returns:
      a PrintJob
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public PrintJob get(@Nullable Consumer<PrintJobItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the properties and relationships of a print job.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a PrintJob
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public PrintJob patch(@Nonnull PrintJob body)
      Update a print job. Only the configuration property can be updated. Updating a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing.
      Parameters:
      body - The request body
      Returns:
      a PrintJob
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public PrintJob patch(@Nonnull PrintJob body, @Nullable Consumer<PrintJobItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update a print job. Only the configuration property can be updated. Updating a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a PrintJob
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property jobs for print
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<PrintJobItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property jobs for print
      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 the properties and relationships of a print job.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PrintJobItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the properties and relationships of a print job.
      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 PrintJob body)
      Update a print job. Only the configuration property can be updated. Updating a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull PrintJob body, @Nullable Consumer<PrintJobItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update a print job. Only the configuration property can be updated. Updating a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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