congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PaginatedItemsPublisher$Builder.nextPageFetcher
Code IndexAdd Tabnine to your IDE (free)

How to use
nextPageFetcher
method
in
software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher$Builder

Best Java code snippets using software.amazon.awssdk.core.pagination.async.PaginatedItemsPublisher$Builder.nextPageFetcher (Showing top 20 results out of 540)

origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<Input> inputs() {
  Function<ListInputsResponse, Iterator<Input>> getIterator = response -> {
    if (response != null && response.inputs() != null) {
      return response.inputs().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListInputsResponseFetcher()).iteratorFunction(getIterator)
      .isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<KeyListEntry> keys() {
  Function<ListKeysResponse, Iterator<KeyListEntry>> getIterator = response -> {
    if (response != null && response.keys() != null) {
      return response.keys().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListKeysResponseFetcher()).iteratorFunction(getIterator)
      .isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<String> collectionIds() {
  Function<ListCollectionsResponse, Iterator<String>> getIterator = response -> {
    if (response != null && response.collectionIds() != null) {
      return response.collectionIds().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListCollectionsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<InputSecurityGroup> inputSecurityGroups() {
  Function<ListInputSecurityGroupsResponse, Iterator<InputSecurityGroup>> getIterator = response -> {
    if (response != null && response.inputSecurityGroups() != null) {
      return response.inputSecurityGroups().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListInputSecurityGroupsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<AttachedPolicy> attachedPolicies() {
  Function<ListAttachedUserPoliciesResponse, Iterator<AttachedPolicy>> getIterator = response -> {
    if (response != null && response.attachedPolicies() != null) {
      return response.attachedPolicies().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListAttachedUserPoliciesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<UploadListElement> uploadsList() {
  Function<ListMultipartUploadsResponse, Iterator<UploadListElement>> getIterator = response -> {
    if (response != null && response.uploadsList() != null) {
      return response.uploadsList().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListMultipartUploadsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<EcsCluster> ecsClusters() {
  Function<DescribeEcsClustersResponse, Iterator<EcsCluster>> getIterator = response -> {
    if (response != null && response.ecsClusters() != null) {
      return response.ecsClusters().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeEcsClustersResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<InvalidationSummary> items() {
  Function<ListInvalidationsResponse, Iterator<InvalidationSummary>> getIterator = response -> {
    if (response != null && response.invalidationList() != null && response.invalidationList().items() != null) {
      return response.invalidationList().items().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListInvalidationsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<EventAggregate> eventAggregates() {
  Function<DescribeEventAggregatesResponse, Iterator<EventAggregate>> getIterator = response -> {
    if (response != null && response.eventAggregates() != null) {
      return response.eventAggregates().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeEventAggregatesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<AutoScalingGroup> autoScalingGroups() {
  Function<DescribeAutoScalingGroupsResponse, Iterator<AutoScalingGroup>> getIterator = response -> {
    if (response != null && response.autoScalingGroups() != null) {
      return response.autoScalingGroups().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeAutoScalingGroupsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<Workspace> workspaces() {
  Function<DescribeWorkspacesResponse, Iterator<Workspace>> getIterator = response -> {
    if (response != null && response.workspaces() != null) {
      return response.workspaces().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeWorkspacesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<DistributionSummary> items() {
  Function<ListDistributionsResponse, Iterator<DistributionSummary>> getIterator = response -> {
    if (response != null && response.distributionList() != null && response.distributionList().items() != null) {
      return response.distributionList().items().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListDistributionsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<OperationSummary> operations() {
  Function<ListOperationsResponse, Iterator<OperationSummary>> getIterator = response -> {
    if (response != null && response.operations() != null) {
      return response.operations().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListOperationsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<ReservedDBInstance> reservedDBInstances() {
  Function<DescribeReservedDbInstancesResponse, Iterator<ReservedDBInstance>> getIterator = response -> {
    if (response != null && response.reservedDBInstances() != null) {
      return response.reservedDBInstances().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeReservedDbInstancesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<ScheduleAction> scheduleActions() {
  Function<DescribeScheduleResponse, Iterator<ScheduleAction>> getIterator = response -> {
    if (response != null && response.scheduleActions() != null) {
      return response.scheduleActions().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeScheduleResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<ManagedPolicyDetail> policies() {
  Function<GetAccountAuthorizationDetailsResponse, Iterator<ManagedPolicyDetail>> getIterator = response -> {
    if (response != null && response.policies() != null) {
      return response.policies().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new GetAccountAuthorizationDetailsResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<ActivityTypeInfo> typeInfos() {
  Function<ListActivityTypesResponse, Iterator<ActivityTypeInfo>> getIterator = response -> {
    if (response != null && response.typeInfos() != null) {
      return response.typeInfos().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListActivityTypesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<DomainSummary> domains() {
  Function<ListDomainsResponse, Iterator<DomainSummary>> getIterator = response -> {
    if (response != null && response.domains() != null) {
      return response.domains().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListDomainsResponseFetcher()).iteratorFunction(getIterator)
      .isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<InstanceInformation> instanceInformationList() {
  Function<DescribeInstanceInformationResponse, Iterator<InstanceInformation>> getIterator = response -> {
    if (response != null && response.instanceInformationList() != null) {
      return response.instanceInformationList().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeInstanceInformationResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request
 * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer}
 * and then applies that consumer to each response returned by the service.
 */
public final SdkPublisher<String> policyNames() {
  Function<ListGroupPoliciesResponse, Iterator<String>> getIterator = response -> {
    if (response != null && response.policyNames() != null) {
      return response.policyNames().iterator();
    }
    return Collections.emptyIterator();
  };
  return PaginatedItemsPublisher.builder().nextPageFetcher(new ListGroupPoliciesResponseFetcher())
      .iteratorFunction(getIterator).isLastPage(isLastPage).build();
}
software.amazon.awssdk.core.pagination.asyncPaginatedItemsPublisher$BuildernextPageFetcher

Popular methods of PaginatedItemsPublisher$Builder

  • build
  • isLastPage
  • iteratorFunction

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JButton (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now