/** * 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 ListMultipartUploadsResponse#uploads()} 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<MultipartUpload> uploads() { Function<ListMultipartUploadsResponse, Iterator<MultipartUpload>> getIterator = response -> { if (response != null && response.uploads() != null) { return response.uploads().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeWorkspaceBundlesResponse#bundles()} 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<WorkspaceBundle> bundles() { Function<DescribeWorkspaceBundlesResponse, Iterator<WorkspaceBundle>> getIterator = response -> { if (response != null && response.bundles() != null) { return response.bundles().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListIpSetsResponse#ipSetIds()} 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> ipSetIds() { Function<ListIpSetsResponse, Iterator<String>> getIterator = response -> { if (response != null && response.ipSetIds() != null) { return response.ipSetIds().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListPolicyVersionsResponse#versions()} 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<PolicyVersion> versions() { Function<ListPolicyVersionsResponse, Iterator<PolicyVersion>> getIterator = response -> { if (response != null && response.versions() != null) { return response.versions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListGroupsResponse#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<ListGroupsResponse, 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(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeRouteTablesResponse#routeTables()} 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<RouteTable> routeTables() { Function<DescribeRouteTablesResponse, Iterator<RouteTable>> getIterator = response -> { if (response != null && response.routeTables() != null) { return response.routeTables().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListPartsResponse#parts()} 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<Part> parts() { Function<ListPartsResponse, Iterator<Part>> getIterator = response -> { if (response != null && response.parts() != null) { return response.parts().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListDistributionsResponse#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<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 PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListSuitesResponse#suites()} 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<Suite> suites() { Function<ListSuitesResponse, Iterator<Suite>> getIterator = response -> { if (response != null && response.suites() != null) { return response.suites().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link GetUsagePlanKeysResponse#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<UsagePlanKey> items() { Function<GetUsagePlanKeysResponse, Iterator<UsagePlanKey>> 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 ListCommandsResponse#commands()} 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<Command> commands() { Function<ListCommandsResponse, Iterator<Command>> getIterator = response -> { if (response != null && response.commands() != null) { return response.commands().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListOfferingsResponse#offerings()} 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<Offering> offerings() { Function<ListOfferingsResponse, Iterator<Offering>> getIterator = response -> { if (response != null && response.offerings() != null) { return response.offerings().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListJobsResponse#jobs()} 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<Job> jobs() { Function<ListJobsResponse, Iterator<Job>> getIterator = response -> { if (response != null && response.jobs() != null) { return response.jobs().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link FilterLogEventsResponse#searchedLogStreams()} 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<SearchedLogStream> searchedLogStreams() { Function<FilterLogEventsResponse, Iterator<SearchedLogStream>> getIterator = response -> { if (response != null && response.searchedLogStreams() != null) { return response.searchedLogStreams().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListGatewaysResponse#gateways()} 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<GatewayInfo> gateways() { Function<ListGatewaysResponse, Iterator<GatewayInfo>> getIterator = response -> { if (response != null && response.gateways() != null) { return response.gateways().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListInputsResponse#inputs()} 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<Input> inputs() { Function<ListInputsResponse, Iterator<Input>> getIterator = response -> { if (response != null && response.inputs() != null) { return response.inputs().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListBranchesResponse#branches()} 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> branches() { Function<ListBranchesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.branches() != null) { return response.branches().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeEcsClustersResponse#ecsClusters()} 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<EcsCluster> ecsClusters() { Function<DescribeEcsClustersResponse, Iterator<EcsCluster>> getIterator = response -> { if (response != null && response.ecsClusters() != null) { return response.ecsClusters().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeNatGatewaysResponse#natGateways()} 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<NatGateway> natGateways() { Function<DescribeNatGatewaysResponse, Iterator<NatGateway>> getIterator = response -> { if (response != null && response.natGateways() != null) { return response.natGateways().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }