|
| 1 | +// Template Source: BaseEntityCollectionReferenceRequest.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.identitygovernance.requests; |
| 7 | + |
| 8 | +import com.microsoft.graph.http.IRequestBuilder; |
| 9 | +import com.microsoft.graph.core.ClientException; |
| 10 | +import com.microsoft.graph.identitygovernance.models.Workflow; |
| 11 | +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; |
| 12 | +import com.microsoft.graph.identitygovernance.models.UserSummary; |
| 13 | +import java.util.Arrays; |
| 14 | +import java.util.EnumSet; |
| 15 | +import javax.annotation.Nullable; |
| 16 | +import javax.annotation.Nonnull; |
| 17 | + |
| 18 | +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequest; |
| 19 | +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultReferenceRequestBuilder; |
| 20 | +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequestBuilder; |
| 21 | +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequest; |
| 22 | +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder; |
| 23 | +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; |
| 24 | +import com.microsoft.graph.options.QueryOption; |
| 25 | +import com.microsoft.graph.core.IBaseClient; |
| 26 | +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; |
| 27 | +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; |
| 28 | +import com.microsoft.graph.http.ReferenceRequestBody; |
| 29 | + |
| 30 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 31 | + |
| 32 | +/** |
| 33 | + * The class for the User Processing Result Collection Reference Request. |
| 34 | + */ |
| 35 | +public class UserProcessingResultCollectionReferenceRequest extends BaseCollectionWithReferencesRequest<UserProcessingResult, UserProcessingResultWithReferenceRequest, UserProcessingResultReferenceRequestBuilder, UserProcessingResultWithReferenceRequestBuilder, UserProcessingResultCollectionResponse, UserProcessingResultCollectionWithReferencesPage, UserProcessingResultCollectionWithReferencesRequest> { |
| 36 | + |
| 37 | + /** |
| 38 | + * The request builder for this collection of UserProcessingResult |
| 39 | + * |
| 40 | + * @param requestUrl the request URL |
| 41 | + * @param client the service client |
| 42 | + * @param requestOptions the options for this request |
| 43 | + */ |
| 44 | + public UserProcessingResultCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { |
| 45 | + super(requestUrl, client, requestOptions, UserProcessingResultCollectionResponse.class, UserProcessingResultCollectionWithReferencesPage.class, UserProcessingResultCollectionWithReferencesRequestBuilder.class); |
| 46 | + } |
| 47 | + |
| 48 | + /** |
| 49 | + * Sets the expand clause for the request |
| 50 | + * |
| 51 | + * @param value the expand clause |
| 52 | + * @return the updated request |
| 53 | + */ |
| 54 | + @Nonnull |
| 55 | + public UserProcessingResultCollectionReferenceRequest expand(@Nonnull final String value) { |
| 56 | + addExpandOption(value); |
| 57 | + return this; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Sets the filter clause for the request |
| 62 | + * |
| 63 | + * @param value the filter clause |
| 64 | + * @return the updated request |
| 65 | + */ |
| 66 | + @Nonnull |
| 67 | + public UserProcessingResultCollectionReferenceRequest filter(@Nonnull final String value) { |
| 68 | + addFilterOption(value); |
| 69 | + return this; |
| 70 | + } |
| 71 | + |
| 72 | + /** |
| 73 | + * Sets the order by clause for the request |
| 74 | + * |
| 75 | + * @param value the sort clause |
| 76 | + * @return the updated request |
| 77 | + */ |
| 78 | + @Nonnull |
| 79 | + public UserProcessingResultCollectionReferenceRequest orderBy(@Nonnull final String value) { |
| 80 | + addOrderByOption(value); |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Sets the select clause for the request |
| 86 | + * |
| 87 | + * @param value the select clause |
| 88 | + * @return the updated request |
| 89 | + */ |
| 90 | + @Nonnull |
| 91 | + public UserProcessingResultCollectionReferenceRequest select(@Nonnull final String value) { |
| 92 | + addSelectOption(value); |
| 93 | + return this; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * Sets the top value for the request |
| 98 | + * |
| 99 | + * @param value the max number of items to return |
| 100 | + * @return the updated request |
| 101 | + */ |
| 102 | + @Nonnull |
| 103 | + public UserProcessingResultCollectionReferenceRequest top(final int value) { |
| 104 | + addTopOption(value); |
| 105 | + return this; |
| 106 | + } |
| 107 | + /** |
| 108 | + * Sets the count value for the request |
| 109 | + * |
| 110 | + * @param value whether or not to return the count of objects with the request |
| 111 | + * @return the updated request |
| 112 | + */ |
| 113 | + @Nonnull |
| 114 | + public UserProcessingResultCollectionReferenceRequest count(final boolean value) { |
| 115 | + addCountOption(value); |
| 116 | + return this; |
| 117 | + } |
| 118 | + /** |
| 119 | + * Sets the count value to true for the request |
| 120 | + * |
| 121 | + * @return the updated request |
| 122 | + */ |
| 123 | + @Nonnull |
| 124 | + public UserProcessingResultCollectionReferenceRequest count() { |
| 125 | + addCountOption(true); |
| 126 | + return this; |
| 127 | + } |
| 128 | +} |
0 commit comments