Class MonthlyPrintUsageByUserRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.reports.monthlyprintusagebyuser.MonthlyPrintUsageByUserRequestBuilder
@Generated("com.microsoft.kiota")
public class MonthlyPrintUsageByUserRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the monthlyPrintUsageByUser property of the microsoft.graph.reportRoot entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of monthly print usage summaries, grouped by user.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
ConstructorsConstructorDescriptionMonthlyPrintUsageByUserRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMonthlyPrintUsageByUserRequestBuilderand sets the default values.MonthlyPrintUsageByUserRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMonthlyPrintUsageByUserRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyPrintUsageByUserId(String printUsageByUserId) Provides operations to manage the monthlyPrintUsageByUser property of the microsoft.graph.reportRoot entity.count()Provides operations to count the resources in the collection.get()Retrieve a list of monthly print usage summaries, grouped by user.get(Consumer<MonthlyPrintUsageByUserRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of monthly print usage summaries, grouped by user.post(PrintUsageByUser body) Create new navigation property to monthlyPrintUsageByUser for reportspost(PrintUsageByUser body, Consumer<MonthlyPrintUsageByUserRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to monthlyPrintUsageByUser for reportscom.microsoft.kiota.RequestInformationRetrieve a list of monthly print usage summaries, grouped by user.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MonthlyPrintUsageByUserRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of monthly print usage summaries, grouped by user.com.microsoft.kiota.RequestInformationCreate new navigation property to monthlyPrintUsageByUser for reportscom.microsoft.kiota.RequestInformationtoPostRequestInformation(PrintUsageByUser body, Consumer<MonthlyPrintUsageByUserRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to monthlyPrintUsageByUser for reportsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MonthlyPrintUsageByUserRequestBuilder
public MonthlyPrintUsageByUserRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMonthlyPrintUsageByUserRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MonthlyPrintUsageByUserRequestBuilder
public MonthlyPrintUsageByUserRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMonthlyPrintUsageByUserRequestBuilderand 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
-
byPrintUsageByUserId
@Nonnull public PrintUsageByUserItemRequestBuilder byPrintUsageByUserId(@Nonnull String printUsageByUserId) Provides operations to manage the monthlyPrintUsageByUser property of the microsoft.graph.reportRoot entity.- Parameters:
printUsageByUserId- The unique identifier of printUsageByUser- Returns:
- a
PrintUsageByUserItemRequestBuilder
-
get
Retrieve a list of monthly print usage summaries, grouped by user.- Returns:
- a
PrintUsageByUserCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public PrintUsageByUserCollectionResponse get(@Nullable Consumer<MonthlyPrintUsageByUserRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of monthly print usage summaries, grouped by user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PrintUsageByUserCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create new navigation property to monthlyPrintUsageByUser for reports- Parameters:
body- The request body- Returns:
- a
PrintUsageByUser - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public PrintUsageByUser post(@Nonnull PrintUsageByUser body, @Nullable Consumer<MonthlyPrintUsageByUserRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to monthlyPrintUsageByUser for reports- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PrintUsageByUser - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of monthly print usage summaries, grouped by user.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MonthlyPrintUsageByUserRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of monthly print usage summaries, grouped by user.- 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 PrintUsageByUser body) Create new navigation property to monthlyPrintUsageByUser for reports- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull PrintUsageByUser body, @Nullable Consumer<MonthlyPrintUsageByUserRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to monthlyPrintUsageByUser for reports- 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
MonthlyPrintUsageByUserRequestBuilder
-