Interface ElementalInferenceClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
This is the AWS Elemental Inference REST API Reference. It provides information on the URL, request contents, and response contents of each AWS Elemental Inference REST operation.
We assume that you have the IAM permissions that you need to use AWS Elemental Inference via the REST API. We also assume that you are familiar with the features and operations of AWS Elemental Inference as described in AWS Elemental Inference User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AssociateFeedResponseassociateFeed(Consumer<AssociateFeedRequest.Builder> associateFeedRequest) Associates a resource with the feed.default AssociateFeedResponseassociateFeed(AssociateFeedRequest associateFeedRequest) Associates a resource with the feed.builder()Create a builder that can be used to configure and create aElementalInferenceClient.static ElementalInferenceClientcreate()Create aElementalInferenceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDictionaryResponsecreateDictionary(Consumer<CreateDictionaryRequest.Builder> createDictionaryRequest) Creates a custom dictionary for improving transcription accuracy.default CreateDictionaryResponsecreateDictionary(CreateDictionaryRequest createDictionaryRequest) Creates a custom dictionary for improving transcription accuracy.default CreateFeedResponsecreateFeed(Consumer<CreateFeedRequest.Builder> createFeedRequest) Creates a feed.default CreateFeedResponsecreateFeed(CreateFeedRequest createFeedRequest) Creates a feed.default DeleteDictionaryResponsedeleteDictionary(Consumer<DeleteDictionaryRequest.Builder> deleteDictionaryRequest) Deletes the specified dictionary.default DeleteDictionaryResponsedeleteDictionary(DeleteDictionaryRequest deleteDictionaryRequest) Deletes the specified dictionary.default DeleteFeedResponsedeleteFeed(Consumer<DeleteFeedRequest.Builder> deleteFeedRequest) Deletes the specified feed.default DeleteFeedResponsedeleteFeed(DeleteFeedRequest deleteFeedRequest) Deletes the specified feed.default DisassociateFeedResponsedisassociateFeed(Consumer<DisassociateFeedRequest.Builder> disassociateFeedRequest) Releases the resource (the source media) that is associated with this feed.default DisassociateFeedResponsedisassociateFeed(DisassociateFeedRequest disassociateFeedRequest) Releases the resource (the source media) that is associated with this feed.default ExportDictionaryEntriesResponseexportDictionaryEntries(Consumer<ExportDictionaryEntriesRequest.Builder> exportDictionaryEntriesRequest) Exports the entries from the specified dictionary.default ExportDictionaryEntriesResponseexportDictionaryEntries(ExportDictionaryEntriesRequest exportDictionaryEntriesRequest) Exports the entries from the specified dictionary.default GetDictionaryResponsegetDictionary(Consumer<GetDictionaryRequest.Builder> getDictionaryRequest) Retrieves information about the specified dictionary.default GetDictionaryResponsegetDictionary(GetDictionaryRequest getDictionaryRequest) Retrieves information about the specified dictionary.default GetFeedResponsegetFeed(Consumer<GetFeedRequest.Builder> getFeedRequest) Retrieves information about the specified feed.default GetFeedResponsegetFeed(GetFeedRequest getFeedRequest) Retrieves information about the specified feed.default ListDictionariesResponselistDictionaries(Consumer<ListDictionariesRequest.Builder> listDictionariesRequest) Lists the dictionaries in your account.default ListDictionariesResponselistDictionaries(ListDictionariesRequest listDictionariesRequest) Lists the dictionaries in your account.default ListDictionariesIterablelistDictionariesPaginator(Consumer<ListDictionariesRequest.Builder> listDictionariesRequest) This is a variant oflistDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation.default ListDictionariesIterablelistDictionariesPaginator(ListDictionariesRequest listDictionariesRequest) This is a variant oflistDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation.default ListFeedsResponselistFeeds(Consumer<ListFeedsRequest.Builder> listFeedsRequest) Displays a list of feeds that belong to this AWS account.default ListFeedsResponselistFeeds(ListFeedsRequest listFeedsRequest) Displays a list of feeds that belong to this AWS account.default ListFeedsIterablelistFeedsPaginator(Consumer<ListFeedsRequest.Builder> listFeedsRequest) This is a variant oflistFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation.default ListFeedsIterablelistFeedsPaginator(ListFeedsRequest listFeedsRequest) This is a variant oflistFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List all tags that are on an Elemental Inference resource in the current region.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List all tags that are on an Elemental Inference resource in the current region.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates the specified tags to the resource identified by the specified resourceArn in the current region.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Associates the specified tags to the resource identified by the specified resourceArn in the current region.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Deletes specified tags from the specified resource in the current region.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Deletes specified tags from the specified resource in the current region.default UpdateDictionaryResponseupdateDictionary(Consumer<UpdateDictionaryRequest.Builder> updateDictionaryRequest) Updates the specified dictionary.default UpdateDictionaryResponseupdateDictionary(UpdateDictionaryRequest updateDictionaryRequest) Updates the specified dictionary.default UpdateFeedResponseupdateFeed(Consumer<UpdateFeedRequest.Builder> updateFeedRequest) Updates the name and/or outputs in a feed.default UpdateFeedResponseupdateFeed(UpdateFeedRequest updateFeedRequest) Updates the name and/or outputs in a feed.default ElementalInferenceWaiterwaiter()Create an instance ofElementalInferenceWaiterusing this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
associateFeed
default AssociateFeedResponse associateFeed(AssociateFeedRequest associateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Associates a resource with the feed. The resource provides the input that Elemental Inference needs in order to perform an Elemental Inference feature, such as cropping video. You always provide the resource by associating it with a feed. You can associate only one resource with each feed. With an association, a specific source media is claiming ownership of the feed.
AssociateFeed is a PATCH operation, which means that you can include only parameters that you want to change. Parameters that you don't include will not be affected by the operation.
Specifically:
-
You can add more outputs to the existing outputs. New outputs will be appended.
-
You can't modify an existing output (for example to change its name). Instead, use UpdateFeed.
-
You can't delete an existing output. Instead, use UpdateFeed.
Also note that you can't change the feed name with AssociateFeed. Instead, use UpdateFeed.
- Parameters:
associateFeedRequest-- Returns:
- Result of the AssociateFeed operation returned by the service.
- See Also:
-
-
associateFeed
default AssociateFeedResponse associateFeed(Consumer<AssociateFeedRequest.Builder> associateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Associates a resource with the feed. The resource provides the input that Elemental Inference needs in order to perform an Elemental Inference feature, such as cropping video. You always provide the resource by associating it with a feed. You can associate only one resource with each feed. With an association, a specific source media is claiming ownership of the feed.
AssociateFeed is a PATCH operation, which means that you can include only parameters that you want to change. Parameters that you don't include will not be affected by the operation.
Specifically:
-
You can add more outputs to the existing outputs. New outputs will be appended.
-
You can't modify an existing output (for example to change its name). Instead, use UpdateFeed.
-
You can't delete an existing output. Instead, use UpdateFeed.
Also note that you can't change the feed name with AssociateFeed. Instead, use UpdateFeed.
This is a convenience which creates an instance of the
AssociateFeedRequest.Builderavoiding the need to create one manually viaAssociateFeedRequest.builder()- Parameters:
associateFeedRequest- AConsumerthat will call methods onAssociateFeedRequest.Builderto create a request.- Returns:
- Result of the AssociateFeed operation returned by the service.
- See Also:
-
-
createDictionary
default CreateDictionaryResponse createDictionary(CreateDictionaryRequest createDictionaryRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.
- Parameters:
createDictionaryRequest-- Returns:
- Result of the CreateDictionary operation returned by the service.
- See Also:
-
createDictionary
default CreateDictionaryResponse createDictionary(Consumer<CreateDictionaryRequest.Builder> createDictionaryRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.
This is a convenience which creates an instance of the
CreateDictionaryRequest.Builderavoiding the need to create one manually viaCreateDictionaryRequest.builder()- Parameters:
createDictionaryRequest- AConsumerthat will call methods onCreateDictionaryRequest.Builderto create a request.- Returns:
- Result of the CreateDictionary operation returned by the service.
- See Also:
-
createFeed
default CreateFeedResponse createFeed(CreateFeedRequest createFeedRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Creates a feed. The feed is the target for the live media stream that is being sent by the calling application. An example of a calling application is AWS Elemental MediaLive.
The key contents of the feed is an array of outputs. Each output represents an Elemental Inference feature. After you create the feed, you must associate a resource with the feed. At that point, you will have a useable feed: resource - feed - output or outputs.
- Parameters:
createFeedRequest-- Returns:
- Result of the CreateFeed operation returned by the service.
- See Also:
-
createFeed
default CreateFeedResponse createFeed(Consumer<CreateFeedRequest.Builder> createFeedRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Creates a feed. The feed is the target for the live media stream that is being sent by the calling application. An example of a calling application is AWS Elemental MediaLive.
The key contents of the feed is an array of outputs. Each output represents an Elemental Inference feature. After you create the feed, you must associate a resource with the feed. At that point, you will have a useable feed: resource - feed - output or outputs.
This is a convenience which creates an instance of the
CreateFeedRequest.Builderavoiding the need to create one manually viaCreateFeedRequest.builder()- Parameters:
createFeedRequest- AConsumerthat will call methods onCreateFeedRequest.Builderto create a request.- Returns:
- Result of the CreateFeed operation returned by the service.
- See Also:
-
deleteDictionary
default DeleteDictionaryResponse deleteDictionary(DeleteDictionaryRequest deleteDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.
- Parameters:
deleteDictionaryRequest-- Returns:
- Result of the DeleteDictionary operation returned by the service.
- See Also:
-
deleteDictionary
default DeleteDictionaryResponse deleteDictionary(Consumer<DeleteDictionaryRequest.Builder> deleteDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.
This is a convenience which creates an instance of the
DeleteDictionaryRequest.Builderavoiding the need to create one manually viaDeleteDictionaryRequest.builder()- Parameters:
deleteDictionaryRequest- AConsumerthat will call methods onDeleteDictionaryRequest.Builderto create a request.- Returns:
- Result of the DeleteDictionary operation returned by the service.
- See Also:
-
deleteFeed
default DeleteFeedResponse deleteFeed(DeleteFeedRequest deleteFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes the specified feed. You can delete the feed at any time. Elemental Inference doesn't block you from deleting a feed when the calling application is calling PutMedia or GetMetadata on that feed, although both these calls will start to fail. For more information about managing inactive feeds, see the Elemental Inference User Guide.
- Parameters:
deleteFeedRequest-- Returns:
- Result of the DeleteFeed operation returned by the service.
- See Also:
-
deleteFeed
default DeleteFeedResponse deleteFeed(Consumer<DeleteFeedRequest.Builder> deleteFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes the specified feed. You can delete the feed at any time. Elemental Inference doesn't block you from deleting a feed when the calling application is calling PutMedia or GetMetadata on that feed, although both these calls will start to fail. For more information about managing inactive feeds, see the Elemental Inference User Guide.
This is a convenience which creates an instance of the
DeleteFeedRequest.Builderavoiding the need to create one manually viaDeleteFeedRequest.builder()- Parameters:
deleteFeedRequest- AConsumerthat will call methods onDeleteFeedRequest.Builderto create a request.- Returns:
- Result of the DeleteFeed operation returned by the service.
- See Also:
-
disassociateFeed
default DisassociateFeedResponse disassociateFeed(DisassociateFeedRequest disassociateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Releases the resource (the source media) that is associated with this feed. The outputs in the feed become DISABLED.
- Parameters:
disassociateFeedRequest-- Returns:
- Result of the DisassociateFeed operation returned by the service.
- See Also:
-
disassociateFeed
default DisassociateFeedResponse disassociateFeed(Consumer<DisassociateFeedRequest.Builder> disassociateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Releases the resource (the source media) that is associated with this feed. The outputs in the feed become DISABLED.
This is a convenience which creates an instance of the
DisassociateFeedRequest.Builderavoiding the need to create one manually viaDisassociateFeedRequest.builder()- Parameters:
disassociateFeedRequest- AConsumerthat will call methods onDisassociateFeedRequest.Builderto create a request.- Returns:
- Result of the DisassociateFeed operation returned by the service.
- See Also:
-
exportDictionaryEntries
default ExportDictionaryEntriesResponse exportDictionaryEntries(ExportDictionaryEntriesRequest exportDictionaryEntriesRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Exports the entries from the specified dictionary.
- Parameters:
exportDictionaryEntriesRequest-- Returns:
- Result of the ExportDictionaryEntries operation returned by the service.
- See Also:
-
exportDictionaryEntries
default ExportDictionaryEntriesResponse exportDictionaryEntries(Consumer<ExportDictionaryEntriesRequest.Builder> exportDictionaryEntriesRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Exports the entries from the specified dictionary.
This is a convenience which creates an instance of the
ExportDictionaryEntriesRequest.Builderavoiding the need to create one manually viaExportDictionaryEntriesRequest.builder()- Parameters:
exportDictionaryEntriesRequest- AConsumerthat will call methods onExportDictionaryEntriesRequest.Builderto create a request.- Returns:
- Result of the ExportDictionaryEntries operation returned by the service.
- See Also:
-
getDictionary
default GetDictionaryResponse getDictionary(GetDictionaryRequest getDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Retrieves information about the specified dictionary.
- Parameters:
getDictionaryRequest-- Returns:
- Result of the GetDictionary operation returned by the service.
- See Also:
-
getDictionary
default GetDictionaryResponse getDictionary(Consumer<GetDictionaryRequest.Builder> getDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Retrieves information about the specified dictionary.
This is a convenience which creates an instance of the
GetDictionaryRequest.Builderavoiding the need to create one manually viaGetDictionaryRequest.builder()- Parameters:
getDictionaryRequest- AConsumerthat will call methods onGetDictionaryRequest.Builderto create a request.- Returns:
- Result of the GetDictionary operation returned by the service.
- See Also:
-
getFeed
default GetFeedResponse getFeed(GetFeedRequest getFeedRequest) throws ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Retrieves information about the specified feed.
- Parameters:
getFeedRequest-- Returns:
- Result of the GetFeed operation returned by the service.
- See Also:
-
getFeed
default GetFeedResponse getFeed(Consumer<GetFeedRequest.Builder> getFeedRequest) throws ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Retrieves information about the specified feed.
This is a convenience which creates an instance of the
GetFeedRequest.Builderavoiding the need to create one manually viaGetFeedRequest.builder()- Parameters:
getFeedRequest- AConsumerthat will call methods onGetFeedRequest.Builderto create a request.- Returns:
- Result of the GetFeed operation returned by the service.
- See Also:
-
listDictionaries
default ListDictionariesResponse listDictionaries(ListDictionariesRequest listDictionariesRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Lists the dictionaries in your account.
- Parameters:
listDictionariesRequest-- Returns:
- Result of the ListDictionaries operation returned by the service.
- See Also:
-
listDictionaries
default ListDictionariesResponse listDictionaries(Consumer<ListDictionariesRequest.Builder> listDictionariesRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Lists the dictionaries in your account.
This is a convenience which creates an instance of the
ListDictionariesRequest.Builderavoiding the need to create one manually viaListDictionariesRequest.builder()- Parameters:
listDictionariesRequest- AConsumerthat will call methods onListDictionariesRequest.Builderto create a request.- Returns:
- Result of the ListDictionaries operation returned by the service.
- See Also:
-
listDictionariesPaginator
default ListDictionariesIterable listDictionariesPaginator(ListDictionariesRequest listDictionariesRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException This is a variant of
listDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client.listDictionariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client .listDictionariesPaginator(request); for (software.amazon.awssdk.services.elementalinference.model.ListDictionariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client.listDictionariesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation.- Parameters:
listDictionariesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDictionariesPaginator
default ListDictionariesIterable listDictionariesPaginator(Consumer<ListDictionariesRequest.Builder> listDictionariesRequest) throws ValidationException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException This is a variant of
listDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client.listDictionariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client .listDictionariesPaginator(request); for (software.amazon.awssdk.services.elementalinference.model.ListDictionariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elementalinference.paginators.ListDictionariesIterable responses = client.listDictionariesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDictionaries(software.amazon.awssdk.services.elementalinference.model.ListDictionariesRequest)operation.
This is a convenience which creates an instance of the
ListDictionariesRequest.Builderavoiding the need to create one manually viaListDictionariesRequest.builder()- Parameters:
listDictionariesRequest- AConsumerthat will call methods onListDictionariesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFeeds
default ListFeedsResponse listFeeds(ListFeedsRequest listFeedsRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Displays a list of feeds that belong to this AWS account.
- Parameters:
listFeedsRequest-- Returns:
- Result of the ListFeeds operation returned by the service.
- See Also:
-
listFeeds
default ListFeedsResponse listFeeds(Consumer<ListFeedsRequest.Builder> listFeedsRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException Displays a list of feeds that belong to this AWS account.
This is a convenience which creates an instance of the
ListFeedsRequest.Builderavoiding the need to create one manually viaListFeedsRequest.builder()- Parameters:
listFeedsRequest- AConsumerthat will call methods onListFeedsRequest.Builderto create a request.- Returns:
- Result of the ListFeeds operation returned by the service.
- See Also:
-
listFeedsPaginator
default ListFeedsIterable listFeedsPaginator(ListFeedsRequest listFeedsRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException This is a variant of
listFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client.listFeedsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client .listFeedsPaginator(request); for (software.amazon.awssdk.services.elementalinference.model.ListFeedsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client.listFeedsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation.- Parameters:
listFeedsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFeedsPaginator
default ListFeedsIterable listFeedsPaginator(Consumer<ListFeedsRequest.Builder> listFeedsRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException This is a variant of
listFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client.listFeedsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client .listFeedsPaginator(request); for (software.amazon.awssdk.services.elementalinference.model.ListFeedsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elementalinference.paginators.ListFeedsIterable responses = client.listFeedsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFeeds(software.amazon.awssdk.services.elementalinference.model.ListFeedsRequest)operation.
This is a convenience which creates an instance of the
ListFeedsRequest.Builderavoiding the need to create one manually viaListFeedsRequest.builder()- Parameters:
listFeedsRequest- AConsumerthat will call methods onListFeedsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException List all tags that are on an Elemental Inference resource in the current region.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, AwsServiceException, SdkClientException, ElementalInferenceException List all tags that are on an Elemental Inference resource in the current region.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes specified tags from the specified resource in the current region.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Deletes specified tags from the specified resource in the current region.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateDictionary
default UpdateDictionaryResponse updateDictionary(UpdateDictionaryRequest updateDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Updates the specified dictionary.
- Parameters:
updateDictionaryRequest-- Returns:
- Result of the UpdateDictionary operation returned by the service.
- See Also:
-
updateDictionary
default UpdateDictionaryResponse updateDictionary(Consumer<UpdateDictionaryRequest.Builder> updateDictionaryRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, AwsServiceException, SdkClientException, ElementalInferenceException Updates the specified dictionary.
This is a convenience which creates an instance of the
UpdateDictionaryRequest.Builderavoiding the need to create one manually viaUpdateDictionaryRequest.builder()- Parameters:
updateDictionaryRequest- AConsumerthat will call methods onUpdateDictionaryRequest.Builderto create a request.- Returns:
- Result of the UpdateDictionary operation returned by the service.
- See Also:
-
updateFeed
default UpdateFeedResponse updateFeed(UpdateFeedRequest updateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Updates the name and/or outputs in a feed.
UpdateFeed is a PUT operation, which means that the payload that you specify completely overwrites the existing payload.
This means that if you want to touch the array of outputs, you must pass in the full new list. So you must omit outputs you want to delete, and include outputs you want to add or modify.
If you want to patch the array of outputs to make selective additions, use AssociateFeed.
- Parameters:
updateFeedRequest-- Returns:
- Result of the UpdateFeed operation returned by the service.
- See Also:
-
updateFeed
default UpdateFeedResponse updateFeed(Consumer<UpdateFeedRequest.Builder> updateFeedRequest) throws ValidationException, ResourceNotFoundException, InternalServerErrorException, AccessDeniedException, TooManyRequestException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ElementalInferenceException Updates the name and/or outputs in a feed.
UpdateFeed is a PUT operation, which means that the payload that you specify completely overwrites the existing payload.
This means that if you want to touch the array of outputs, you must pass in the full new list. So you must omit outputs you want to delete, and include outputs you want to add or modify.
If you want to patch the array of outputs to make selective additions, use AssociateFeed.
This is a convenience which creates an instance of the
UpdateFeedRequest.Builderavoiding the need to create one manually viaUpdateFeedRequest.builder()- Parameters:
updateFeedRequest- AConsumerthat will call methods onUpdateFeedRequest.Builderto create a request.- Returns:
- Result of the UpdateFeed operation returned by the service.
- See Also:
-
waiter
Create an instance ofElementalInferenceWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
ElementalInferenceWaiter
-
create
Create aElementalInferenceClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aElementalInferenceClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-