public class StartTextTranslationJobRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts an asynchronous batch translation job. Batch translation jobs can be used to translate large volumes of text across multiple documents at once. For more information, see async.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
Amazon Translate does not support batch translation of multiple source languages at once.
Constructor and Description |
---|
StartTextTranslationJobRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique identifier for the request.
|
java.lang.String |
getDataAccessRoleArn()
The Amazon Resource Name (ARN) of an AWS Identity Access and Management
(IAM) role that grants Amazon Translate read access to your input data.
|
InputDataConfig |
getInputDataConfig()
Specifies the format and S3 location of the input documents for the
translation job.
|
java.lang.String |
getJobName()
The name of the batch translation job to be performed.
|
OutputDataConfig |
getOutputDataConfig()
Specifies the S3 folder to which your job output will be saved.
|
java.util.List<java.lang.String> |
getParallelDataNames()
The names of the parallel data resources to use in the batch translation
job.
|
java.lang.String |
getSourceLanguageCode()
The language code of the input language.
|
java.util.List<java.lang.String> |
getTargetLanguageCodes()
The language code of the output language.
|
java.util.List<java.lang.String> |
getTerminologyNames()
The name of the terminology to use in the batch translation job.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique identifier for the request.
|
void |
setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an AWS Identity Access and Management
(IAM) role that grants Amazon Translate read access to your input data.
|
void |
setInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and S3 location of the input documents for the
translation job.
|
void |
setJobName(java.lang.String jobName)
The name of the batch translation job to be performed.
|
void |
setOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies the S3 folder to which your job output will be saved.
|
void |
setParallelDataNames(java.util.Collection<java.lang.String> parallelDataNames)
The names of the parallel data resources to use in the batch translation
job.
|
void |
setSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code of the input language.
|
void |
setTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language code of the output language.
|
void |
setTerminologyNames(java.util.Collection<java.lang.String> terminologyNames)
The name of the terminology to use in the batch translation job.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartTextTranslationJobRequest |
withClientToken(java.lang.String clientToken)
A unique identifier for the request.
|
StartTextTranslationJobRequest |
withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an AWS Identity Access and Management
(IAM) role that grants Amazon Translate read access to your input data.
|
StartTextTranslationJobRequest |
withInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and S3 location of the input documents for the
translation job.
|
StartTextTranslationJobRequest |
withJobName(java.lang.String jobName)
The name of the batch translation job to be performed.
|
StartTextTranslationJobRequest |
withOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies the S3 folder to which your job output will be saved.
|
StartTextTranslationJobRequest |
withParallelDataNames(java.util.Collection<java.lang.String> parallelDataNames)
The names of the parallel data resources to use in the batch translation
job.
|
StartTextTranslationJobRequest |
withParallelDataNames(java.lang.String... parallelDataNames)
The names of the parallel data resources to use in the batch translation
job.
|
StartTextTranslationJobRequest |
withSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code of the input language.
|
StartTextTranslationJobRequest |
withTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language code of the output language.
|
StartTextTranslationJobRequest |
withTargetLanguageCodes(java.lang.String... targetLanguageCodes)
The language code of the output language.
|
StartTextTranslationJobRequest |
withTerminologyNames(java.util.Collection<java.lang.String> terminologyNames)
The name of the terminology to use in the batch translation job.
|
StartTextTranslationJobRequest |
withTerminologyNames(java.lang.String... terminologyNames)
The name of the terminology to use in the batch translation job.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getJobName()
The name of the batch translation job to be performed.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The name of the batch translation job to be performed.
public void setJobName(java.lang.String jobName)
The name of the batch translation job to be performed.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The name of the batch translation job to be performed.
public StartTextTranslationJobRequest withJobName(java.lang.String jobName)
The name of the batch translation job to be performed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The name of the batch translation job to be performed.
public InputDataConfig getInputDataConfig()
Specifies the format and S3 location of the input documents for the translation job.
Specifies the format and S3 location of the input documents for the translation job.
public void setInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and S3 location of the input documents for the translation job.
inputDataConfig
- Specifies the format and S3 location of the input documents for the translation job.
public StartTextTranslationJobRequest withInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and S3 location of the input documents for the translation job.
Returns a reference to this object so that method calls can be chained together.
inputDataConfig
- Specifies the format and S3 location of the input documents for the translation job.
public OutputDataConfig getOutputDataConfig()
Specifies the S3 folder to which your job output will be saved.
Specifies the S3 folder to which your job output will be saved.
public void setOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies the S3 folder to which your job output will be saved.
outputDataConfig
- Specifies the S3 folder to which your job output will be saved.
public StartTextTranslationJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies the S3 folder to which your job output will be saved.
Returns a reference to this object so that method calls can be chained together.
outputDataConfig
- Specifies the S3 folder to which your job output will be saved.
public java.lang.String getDataAccessRoleArn()
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
public void setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
public StartTextTranslationJobRequest withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more nformation, see identity-and-access-management.
public java.lang.String getSourceLanguageCode()
The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
Constraints:
Length: 2 - 5
The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
public void setSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
Constraints:
Length: 2 - 5
sourceLanguageCode
- The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
public StartTextTranslationJobRequest withSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 5
sourceLanguageCode
- The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
public java.util.List<java.lang.String> getTargetLanguageCodes()
The language code of the output language.
The language code of the output language.
public void setTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language code of the output language.
targetLanguageCodes
- The language code of the output language.
public StartTextTranslationJobRequest withTargetLanguageCodes(java.lang.String... targetLanguageCodes)
The language code of the output language.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes
- The language code of the output language.
public StartTextTranslationJobRequest withTargetLanguageCodes(java.util.Collection<java.lang.String> targetLanguageCodes)
The language code of the output language.
Returns a reference to this object so that method calls can be chained together.
targetLanguageCodes
- The language code of the output language.
public java.util.List<java.lang.String> getTerminologyNames()
The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
public void setTerminologyNames(java.util.Collection<java.lang.String> terminologyNames)
The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
terminologyNames
- The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
public StartTextTranslationJobRequest withTerminologyNames(java.lang.String... terminologyNames)
The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
Returns a reference to this object so that method calls can be chained together.
terminologyNames
- The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
public StartTextTranslationJobRequest withTerminologyNames(java.util.Collection<java.lang.String> terminologyNames)
The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
Returns a reference to this object so that method calls can be chained together.
terminologyNames
- The name of the terminology to use in the batch translation job. For a list of available terminologies, use the ListTerminologies operation.
public java.util.List<java.lang.String> getParallelDataNames()
The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
public void setParallelDataNames(java.util.Collection<java.lang.String> parallelDataNames)
The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
parallelDataNames
- The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
public StartTextTranslationJobRequest withParallelDataNames(java.lang.String... parallelDataNames)
The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
Returns a reference to this object so that method calls can be chained together.
parallelDataNames
- The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
public StartTextTranslationJobRequest withParallelDataNames(java.util.Collection<java.lang.String> parallelDataNames)
The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
Returns a reference to this object so that method calls can be chained together.
parallelDataNames
- The names of the parallel data resources to use in the batch translation job. For a list of available parallel data resources, use the ListParallelData operation.
public java.lang.String getClientToken()
A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
public void setClientToken(java.lang.String clientToken)
A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientToken
- A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
public StartTextTranslationJobRequest withClientToken(java.lang.String clientToken)
A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientToken
- A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.