@Override public PaginatedItemsPublisher build() { return new PaginatedItemsPublisher(this); } }
/** * 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<RouteRef> routes() { Function<ListRoutesResponse, Iterator<RouteRef>> getIterator = response -> { if (response != null && response.routes() != null) { return response.routes().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListRoutesResponseFetcher()).iteratorFunction(getIterator) .isLastPage(isLastPage).build(); }
/** * 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<OfferingTransaction> offeringTransactions() { Function<ListOfferingTransactionsResponse, Iterator<OfferingTransaction>> getIterator = response -> { if (response != null && response.offeringTransactions() != null) { return response.offeringTransactions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListOfferingTransactionsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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<Map<String, AttributeValue>> items() { Function<QueryResponse, Iterator<Map<String, AttributeValue>>> getIterator = response -> { if (response != null && response.items() != null) { return response.items().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new QueryResponseFetcher()).iteratorFunction(getIterator) .isLastPage(isLastPage).build(); }
/** * 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(); }
/** * 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<DBParameterGroup> dbParameterGroups() { Function<DescribeDbParameterGroupsResponse, Iterator<DBParameterGroup>> getIterator = response -> { if (response != null && response.dbParameterGroups() != null) { return response.dbParameterGroups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeDbParameterGroupsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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<HostedZone> hostedZones() { Function<ListHostedZonesResponse, Iterator<HostedZone>> getIterator = response -> { if (response != null && response.hostedZones() != null) { return response.hostedZones().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListHostedZonesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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(); }
/** * 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<ListAttachedRolePoliciesResponse, Iterator<AttachedPolicy>> getIterator = response -> { if (response != null && response.attachedPolicies() != null) { return response.attachedPolicies().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListAttachedRolePoliciesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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(); }
/** * 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<Subscription> subscriptions() { Function<ListSubscriptionsByTopicResponse, Iterator<Subscription>> getIterator = response -> { if (response != null && response.subscriptions() != null) { return response.subscriptions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListSubscriptionsByTopicResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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<ReplicationRun> replicationRunList() { Function<GetReplicationRunsResponse, Iterator<ReplicationRun>> getIterator = response -> { if (response != null && response.replicationRunList() != null) { return response.replicationRunList().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new GetReplicationRunsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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(); }
/** * 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(); }
/** * 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<Cluster> clusters() { Function<DescribeClustersResponse, Iterator<Cluster>> getIterator = response -> { if (response != null && response.clusters() != null) { return response.clusters().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeClustersResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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<TraceSummary> traceSummaries() { Function<GetTraceSummariesResponse, Iterator<TraceSummary>> getIterator = response -> { if (response != null && response.traceSummaries() != null) { return response.traceSummaries().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new GetTraceSummariesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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<Offering> offerings() { Function<ListOfferingsResponse, Iterator<Offering>> getIterator = response -> { if (response != null && response.offerings() != null) { return response.offerings().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListOfferingsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }