Class TranslateConfiguration
- java.lang.Object
-
- org.apache.camel.component.aws.translate.TranslateConfiguration
-
-
Constructor Summary
Constructors Constructor Description TranslateConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslateConfiguration
copy()
String
getAccessKey()
TranslateOperations
getOperation()
String
getProxyHost()
Integer
getProxyPort()
com.amazonaws.Protocol
getProxyProtocol()
String
getRegion()
String
getSecretKey()
String
getSourceLanguage()
String
getTargetLanguage()
com.amazonaws.services.translate.AmazonTranslate
getTranslateClient()
boolean
isAutodetectSourceLanguage()
boolean
isAutoDiscoverClient()
void
setAccessKey(String accessKey)
Amazon AWS Access Keyvoid
setAutodetectSourceLanguage(boolean autodetectSourceLanguage)
Being able to autodetect the source languagevoid
setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.void
setOperation(TranslateOperations operation)
The operation to performvoid
setProxyHost(String proxyHost)
To define a proxy host when instantiating the Translate clientvoid
setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the Translate clientvoid
setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the Translate clientvoid
setRegion(String region)
The region in which Translate client needs to work.void
setSecretKey(String secretKey)
Amazon AWS Secret Keyvoid
setSourceLanguage(String sourceLanguage)
Source language to usevoid
setTargetLanguage(String targetLanguage)
Target language to usevoid
setTranslateClient(com.amazonaws.services.translate.AmazonTranslate translateClient)
To use a existing configured AWS Translate as client
-
-
-
Method Detail
-
getTranslateClient
public com.amazonaws.services.translate.AmazonTranslate getTranslateClient()
-
setTranslateClient
public void setTranslateClient(com.amazonaws.services.translate.AmazonTranslate translateClient)
To use a existing configured AWS Translate as client
-
getAccessKey
public String getAccessKey()
-
setAccessKey
public void setAccessKey(String accessKey)
Amazon AWS Access Key
-
getSecretKey
public String getSecretKey()
-
setSecretKey
public void setSecretKey(String secretKey)
Amazon AWS Secret Key
-
getOperation
public TranslateOperations getOperation()
-
setOperation
public void setOperation(TranslateOperations operation)
The operation to perform
-
getProxyProtocol
public com.amazonaws.Protocol getProxyProtocol()
-
setProxyProtocol
public void setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the Translate client
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
To define a proxy host when instantiating the Translate client
-
getProxyPort
public Integer getProxyPort()
-
setProxyPort
public void setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the Translate client
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
The region in which Translate client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name()
-
isAutodetectSourceLanguage
public boolean isAutodetectSourceLanguage()
-
setAutodetectSourceLanguage
public void setAutodetectSourceLanguage(boolean autodetectSourceLanguage)
Being able to autodetect the source language
-
getSourceLanguage
public String getSourceLanguage()
-
setSourceLanguage
public void setSourceLanguage(String sourceLanguage)
Source language to use
-
getTargetLanguage
public String getTargetLanguage()
-
setTargetLanguage
public void setTargetLanguage(String targetLanguage)
Target language to use
-
isAutoDiscoverClient
public boolean isAutoDiscoverClient()
-
setAutoDiscoverClient
public void setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.
-
copy
public TranslateConfiguration copy()
-
-