/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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<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<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<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<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<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<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<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(); }