@Generated(value="software.amazon.awssdk:codegen") public interface TranslateAsyncClient extends SdkClient, SdkAutoCloseable
builder() method.
Provides translation between English and one of six languages, or between one of the six languages and English.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static TranslateAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
TranslateAsyncClient. |
static TranslateAsyncClient |
create()
Create a
TranslateAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<TranslateTextResponse> |
translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
Translates input text from the source language to the target language.
|
default CompletableFuture<TranslateTextResponse> |
translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language.
|
serviceNameclosestatic final String SERVICE_NAME
static TranslateAsyncClient create()
TranslateAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static TranslateAsyncClientBuilder builder()
TranslateAsyncClient.default CompletableFuture<TranslateTextResponse> translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
translateTextRequest - Text field. Try again with a shorter text.default CompletableFuture<TranslateTextResponse> translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
This is a convenience which creates an instance of the TranslateTextRequest.Builder avoiding the need to
create one manually via TranslateTextRequest.builder()
translateTextRequest - A Consumer that will call methods on TranslateTextRequest.Builder to create a request.Text field. Try again with a shorter text.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.