- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
/** * Returns an iterable to iterate through the paginated {@link PollForDecisionTaskResponse#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<HistoryEvent> events() { Function<PollForDecisionTaskResponse, Iterator<HistoryEvent>> 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 QueryResponse#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<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 PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * 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(); }
/** * Returns an iterable to iterate through the paginated {@link GetTraceSummariesResponse#traceSummaries()} 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<TraceSummary> traceSummaries() { Function<GetTraceSummariesResponse, Iterator<TraceSummary>> getIterator = response -> { if (response != null && response.traceSummaries() != null) { return response.traceSummaries().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListCollectionsResponse#collectionIds()} 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> collectionIds() { Function<ListCollectionsResponse, Iterator<String>> getIterator = response -> { if (response != null && response.collectionIds() != null) { return response.collectionIds().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeScheduleResponse#scheduleActions()} 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<ScheduleAction> scheduleActions() { Function<DescribeScheduleResponse, Iterator<ScheduleAction>> getIterator = response -> { if (response != null && response.scheduleActions() != null) { return response.scheduleActions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListChannelsResponse#channels()} 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<ChannelSummary> channels() { Function<ListChannelsResponse, Iterator<ChannelSummary>> getIterator = response -> { if (response != null && response.channels() != null) { return response.channels().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * 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 GetResourcesResponse#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<Resource> items() { Function<GetResourcesResponse, Iterator<Resource>> 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 DescribeLogGroupsResponse#logGroups()} 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<LogGroup> logGroups() { Function<DescribeLogGroupsResponse, Iterator<LogGroup>> getIterator = response -> { if (response != null && response.logGroups() != null) { return response.logGroups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListIdentitiesResponse#identities()} 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> identities() { Function<ListIdentitiesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.identities() != null) { return response.identities().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link GetDomainNamesResponse#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<DomainName> items() { Function<GetDomainNamesResponse, Iterator<DomainName>> 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 ListTestsResponse#tests()} 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<Test> tests() { Function<ListTestsResponse, Iterator<Test>> getIterator = response -> { if (response != null && response.tests() != null) { return response.tests().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListAssociationsResponse#associations()} 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<Association> associations() { Function<ListAssociationsResponse, Iterator<Association>> getIterator = response -> { if (response != null && response.associations() != null) { return response.associations().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListFunctionsResponse#functions()} 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<FunctionConfiguration> functions() { Function<ListFunctionsResponse, Iterator<FunctionConfiguration>> getIterator = response -> { if (response != null && response.functions() != null) { return response.functions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListTopicsResponse#topics()} 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<Topic> topics() { Function<ListTopicsResponse, Iterator<Topic>> getIterator = response -> { if (response != null && response.topics() != null) { return response.topics().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListVaultsResponse#vaultList()} 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<DescribeVaultOutput> vaultList() { Function<ListVaultsResponse, Iterator<DescribeVaultOutput>> getIterator = response -> { if (response != null && response.vaultList() != null) { return response.vaultList().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListAccountAliasesResponse#accountAliases()} 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> accountAliases() { Function<ListAccountAliasesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.accountAliases() != null) { return response.accountAliases().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link DescribeDbInstancesResponse#dbInstances()} 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<DBInstance> dbInstances() { Function<DescribeDbInstancesResponse, Iterator<DBInstance>> getIterator = response -> { if (response != null && response.dbInstances() != null) { return response.dbInstances().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }
/** * Returns an iterable to iterate through the paginated {@link ListJobTemplatesResponse#jobTemplates()} 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<JobTemplate> jobTemplates() { Function<ListJobTemplatesResponse, Iterator<JobTemplate>> getIterator = response -> { if (response != null && response.jobTemplates() != null) { return response.jobTemplates().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsIterable.builder().pagesIterable(this).itemIteratorFunction(getIterator).build(); }