Class PrintTaskTriggerItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.print.printers.item.tasktriggers.item.PrintTaskTriggerItemRequestBuilder
@Generated("com.microsoft.kiota")
public class PrintTaskTriggerItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the taskTriggers property of the microsoft.graph.printer entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet a task trigger from a printer.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionPrintTaskTriggerItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintTaskTriggerItemRequestBuilderand sets the default values.PrintTaskTriggerItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintTaskTriggerItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the definition property of the microsoft.graph.printTaskTrigger entity.voiddelete()Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.voiddelete(Consumer<PrintTaskTriggerItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.get()Get a task trigger from a printer.get(Consumer<PrintTaskTriggerItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a task trigger from a printer.patch(PrintTaskTrigger body) Update the navigation property taskTriggers in printpatch(PrintTaskTrigger body, Consumer<PrintTaskTriggerItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property taskTriggers in printcom.microsoft.kiota.RequestInformationDelete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<PrintTaskTriggerItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.com.microsoft.kiota.RequestInformationGet a task trigger from a printer.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PrintTaskTriggerItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a task trigger from a printer.com.microsoft.kiota.RequestInformationUpdate the navigation property taskTriggers in printcom.microsoft.kiota.RequestInformationtoPatchRequestInformation(PrintTaskTrigger body, Consumer<PrintTaskTriggerItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property taskTriggers in printReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PrintTaskTriggerItemRequestBuilder
public PrintTaskTriggerItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintTaskTriggerItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PrintTaskTriggerItemRequestBuilder
public PrintTaskTriggerItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintTaskTriggerItemRequestBuilderand 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
-
definition
Provides operations to manage the definition property of the microsoft.graph.printTaskTrigger entity.- Returns:
- a
DefinitionRequestBuilder
-
delete
public void delete()Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<PrintTaskTriggerItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.- Returns:
- a
PrintTaskTrigger - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public PrintTaskTrigger get(@Nullable Consumer<PrintTaskTriggerItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PrintTaskTrigger - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the navigation property taskTriggers in print- Parameters:
body- The request body- Returns:
- a
PrintTaskTrigger - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public PrintTaskTrigger patch(@Nonnull PrintTaskTrigger body, @Nullable Consumer<PrintTaskTriggerItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property taskTriggers in print- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PrintTaskTrigger - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<PrintTaskTriggerItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer.- 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()Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PrintTaskTriggerItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.- 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 PrintTaskTrigger body) Update the navigation property taskTriggers in print- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull PrintTaskTrigger body, @Nullable Consumer<PrintTaskTriggerItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property taskTriggers in print- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
PrintTaskTriggerItemRequestBuilder
-