Class PrintersRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.print.printers.PrintersRequestBuilder
@Generated("com.microsoft.kiota")
public class PrintersRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the printers property of the microsoft.graph.print entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve the list of printers that are registered in the tenant.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
ConstructorsConstructorDescriptionPrintersRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintersRequestBuilderand sets the default values.PrintersRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintersRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyPrinterId(String printerId) Provides operations to manage the printers property of the microsoft.graph.print entity.count()Provides operations to count the resources in the collection.create()Provides operations to call the create method.get()Retrieve the list of printers that are registered in the tenant.get(Consumer<PrintersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of printers that are registered in the tenant.Create new navigation property to printers for printpost(Printer body, Consumer<PrintersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to printers for printcom.microsoft.kiota.RequestInformationRetrieve the list of printers that are registered in the tenant.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PrintersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of printers that are registered in the tenant.com.microsoft.kiota.RequestInformationCreate new navigation property to printers for printcom.microsoft.kiota.RequestInformationtoPostRequestInformation(Printer body, Consumer<PrintersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to printers for printReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PrintersRequestBuilder
public PrintersRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintersRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PrintersRequestBuilder
public PrintersRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPrintersRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
create
Provides operations to call the create method.- Returns:
- a
CreateRequestBuilder
-
byPrinterId
Provides operations to manage the printers property of the microsoft.graph.print entity.- Parameters:
printerId- The unique identifier of printer- Returns:
- a
PrinterItemRequestBuilder
-
get
Retrieve the list of printers that are registered in the tenant.- Returns:
- a
PrinterCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public PrinterCollectionResponse get(@Nullable Consumer<PrintersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of printers that are registered in the tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PrinterCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create new navigation property to printers for print- Parameters:
body- The request body- Returns:
- a
Printer - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public Printer post(@Nonnull Printer body, @Nullable Consumer<PrintersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to printers for print- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Printer - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the list of printers that are registered in the tenant.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PrintersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the list of printers that are registered in the tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Printer body) Create new navigation property to printers for print- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Printer body, @Nullable Consumer<PrintersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to printers for 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
PrintersRequestBuilder
-