Package com.microsoft.graph.core.tasks
Class PageIterator.Builder<TEntity extends com.microsoft.kiota.serialization.Parsable,TCollectionPage extends com.microsoft.kiota.serialization.Parsable & com.microsoft.kiota.serialization.AdditionalDataHolder>
java.lang.Object
com.microsoft.graph.core.tasks.PageIterator.Builder<TEntity,TCollectionPage>
- Type Parameters:
TEntity- The type of the entity returned in the collection. This type must implementParsableTCollectionPage- The Microsoft Graph collection response type returned in the collection response. This type must implementParsableandAdditionalDataHolder
- Enclosing class:
PageIterator<TEntity extends com.microsoft.kiota.serialization.Parsable,TCollectionPage extends com.microsoft.kiota.serialization.Parsable & com.microsoft.kiota.serialization.AdditionalDataHolder>
public static class PageIterator.Builder<TEntity extends com.microsoft.kiota.serialization.Parsable,TCollectionPage extends com.microsoft.kiota.serialization.Parsable & com.microsoft.kiota.serialization.AdditionalDataHolder>
extends Object
A builder class for building a PageIterator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()client(IBaseClient client) collectionPage(TCollectionPage collectionPage) collectionPageFactory(com.microsoft.kiota.serialization.ParsableFactory<TCollectionPage> collectionPageFactory) processPageItemCallback(Function<TEntity, Boolean> processPageItemCallback) Sets the callback to be called for each item in the collection.requestAdapter(com.microsoft.kiota.RequestAdapter requestAdapter) requestConfigurator(UnaryOperator<com.microsoft.kiota.RequestInformation> requestConfigurator)
-
Constructor Details
-
Builder
public Builder()Constructor for the Builder class of a PageIterator.
-
-
Method Details
-
client
-
requestAdapter
@Nonnull public PageIterator.Builder<TEntity,TCollectionPage> requestAdapter(@Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) -
collectionPage
@Nonnull public PageIterator.Builder<TEntity,TCollectionPage> collectionPage(@Nonnull TCollectionPage collectionPage) -
collectionPageFactory
@Nonnull public PageIterator.Builder<TEntity,TCollectionPage> collectionPageFactory(@Nonnull com.microsoft.kiota.serialization.ParsableFactory<TCollectionPage> collectionPageFactory) -
requestConfigurator
@Nonnull public PageIterator.Builder<TEntity,TCollectionPage> requestConfigurator(@Nonnull UnaryOperator<com.microsoft.kiota.RequestInformation> requestConfigurator) -
processPageItemCallback
@Nonnull public PageIterator.Builder<TEntity,TCollectionPage> processPageItemCallback(@Nonnull Function<TEntity, Boolean> processPageItemCallback) Sets the callback to be called for each item in the collection.- Parameters:
processPageItemCallback- the callback to be called for each item in the collection.- Returns:
- the builder object itself
-
build
@Nonnull public PageIterator<TEntity,TCollectionPage> build() throws InvocationTargetException, IllegalAccessException, NoSuchMethodException
-