/** * Returns an iterable to iterate through the paginated {@link GetOfferingStatusResponse#current()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Map.Entry<String, OfferingStatus>> current() { Function<GetOfferingStatusResponse, Iterator<Map.Entry<String, OfferingStatus>>> getIterator = response -> { if (response != null && response.current() != null) { return response.current().entrySet().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
@Override public PaginatedItemsIterable build() { return new PaginatedItemsIterable(this); } }
/** * Returns an iterable to iterate through the paginated {@link GetUsageResponse#items()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Map.Entry<String, List<List<Long>>>> items() { Function<GetUsageResponse, Iterator<Map.Entry<String, List<List<Long>>>>> getIterator = response -> { if (response != null && response.items() != null) { return response.items().entrySet().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeAlarmsResponse#metricAlarms()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<MetricAlarm> metricAlarms() { Function<DescribeAlarmsResponse, Iterator<MetricAlarm>> getIterator = response -> { if (response != null && response.metricAlarms() != null) { return response.metricAlarms().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeCacheParametersResponse#parameters()} member. * The returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Parameter> parameters() { Function<DescribeCacheParametersResponse, Iterator<Parameter>> getIterator = response -> { if (response != null && response.parameters() != null) { return response.parameters().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListDetectorsResponse#detectorIds()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<String> detectorIds() { Function<ListDetectorsResponse, Iterator<String>> getIterator = response -> { if (response != null && response.detectorIds() != null) { return response.detectorIds().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeBatchPredictionsResponse#results()} member. * The returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<BatchPrediction> results() { Function<DescribeBatchPredictionsResponse, Iterator<BatchPrediction>> getIterator = response -> { if (response != null && response.results() != null) { return response.results().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link GetTagKeysResponse#tagKeys()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<String> tagKeys() { Function<GetTagKeysResponse, Iterator<String>> getIterator = response -> { if (response != null && response.tagKeys() != null) { return response.tagKeys().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListGroupPoliciesResponse#policyNames()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<String> policyNames() { Function<ListGroupPoliciesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.policyNames() != null) { return response.policyNames().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListEntitiesForPolicyResponse#policyUsers()} member. * The returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<PolicyUser> policyUsers() { Function<ListEntitiesForPolicyResponse, Iterator<PolicyUser>> getIterator = response -> { if (response != null && response.policyUsers() != null) { return response.policyUsers().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link GetDeploymentsResponse#items()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Deployment> items() { Function<GetDeploymentsResponse, Iterator<Deployment>> getIterator = response -> { if (response != null && response.items() != null) { return response.items().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListStacksResponse#stackSummaries()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<StackSummary> stackSummaries() { Function<ListStacksResponse, Iterator<StackSummary>> getIterator = response -> { if (response != null && response.stackSummaries() != null) { return response.stackSummaries().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListActivityTypesResponse#typeInfos()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<ActivityTypeInfo> typeInfos() { Function<ListActivityTypesResponse, Iterator<ActivityTypeInfo>> getIterator = response -> { if (response != null && response.typeInfos() != null) { return response.typeInfos().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListRoutesResponse#routes()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<RouteRef> routes() { Function<ListRoutesResponse, Iterator<RouteRef>> getIterator = response -> { if (response != null && response.routes() != null) { return response.routes().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListTablesResponse#tableNames()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<String> tableNames() { Function<ListTablesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.tableNames() != null) { return response.tableNames().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeEventsResponse#events()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Event> events() { Function<DescribeEventsResponse, Iterator<Event>> getIterator = response -> { if (response != null && response.events() != null) { return response.events().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListImportsResponse#imports()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<String> imports() { Function<ListImportsResponse, Iterator<String>> getIterator = response -> { if (response != null && response.imports() != null) { return response.imports().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeSnapshotsResponse#snapshots()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Snapshot> snapshots() { Function<DescribeSnapshotsResponse, Iterator<Snapshot>> getIterator = response -> { if (response != null && response.snapshots() != null) { return response.snapshots().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListJobsResponse#jobList()} member. The returned * iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<GlacierJobDescription> jobList() { Function<ListJobsResponse, Iterator<GlacierJobDescription>> getIterator = response -> { if (response != null && response.jobList() != null) { return response.jobList().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListGroupsForUserResponse#groups()} member. The * returned iterable is used to iterate through the results across all response pages and not a single page. * * This method is useful if you are interested in iterating over the paginated member in the response pages instead * of the top level pages. Similar to iteration over pages, this method internally makes service calls to get the * next list of results until the iteration stops or there are no more results. */ public final SdkIterable<Group> groups() { Function<ListGroupsForUserResponse, Iterator<Group>> getIterator = response -> { if (response != null && response.groups() != null) { return response.groups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }