public class CreateParallelDataRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples of source phrases and their translations from your translation memory. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
Constructor and Description |
---|
CreateParallelDataRequest() |
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 |
getDescription()
A custom description for the parallel data resource in Amazon Translate.
|
EncryptionKey |
getEncryptionKey()
The encryption key used to encrypt this object.
|
java.lang.String |
getName()
A custom name for the parallel data resource in Amazon Translate.
|
ParallelDataConfig |
getParallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique identifier for the request.
|
void |
setDescription(java.lang.String description)
A custom description for the parallel data resource in Amazon Translate.
|
void |
setEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
|
void |
setName(java.lang.String name)
A custom name for the parallel data resource in Amazon Translate.
|
void |
setParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateParallelDataRequest |
withClientToken(java.lang.String clientToken)
A unique identifier for the request.
|
CreateParallelDataRequest |
withDescription(java.lang.String description)
A custom description for the parallel data resource in Amazon Translate.
|
CreateParallelDataRequest |
withEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
|
CreateParallelDataRequest |
withName(java.lang.String name)
A custom name for the parallel data resource in Amazon Translate.
|
CreateParallelDataRequest |
withParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getName()
A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
public void setName(java.lang.String name)
A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name
- A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
public CreateParallelDataRequest withName(java.lang.String name)
A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([A-Za-z0-9-]_?)+$
name
- A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
public java.lang.String getDescription()
A custom description for the parallel data resource in Amazon Translate.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
A custom description for the parallel data resource in Amazon Translate.
public void setDescription(java.lang.String description)
A custom description for the parallel data resource in Amazon Translate.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description
- A custom description for the parallel data resource in Amazon Translate.
public CreateParallelDataRequest withDescription(java.lang.String description)
A custom description for the parallel data resource in Amazon Translate.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
Pattern: [\P{M}\p{M}]{0,256}
description
- A custom description for the parallel data resource in Amazon Translate.
public ParallelDataConfig getParallelDataConfig()
Specifies the format and S3 location of the parallel data input file.
Specifies the format and S3 location of the parallel data input file.
public void setParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
public CreateParallelDataRequest withParallelDataConfig(ParallelDataConfig parallelDataConfig)
Specifies the format and S3 location of the parallel data input file.
Returns a reference to this object so that method calls can be chained together.
parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
public EncryptionKey getEncryptionKey()
The encryption key used to encrypt this object.
The encryption key used to encrypt this object.
public void setEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
encryptionKey
- The encryption key used to encrypt this object.
public CreateParallelDataRequest withEncryptionKey(EncryptionKey encryptionKey)
The encryption key used to encrypt this object.
Returns a reference to this object so that method calls can be chained together.
encryptionKey
- The encryption key used to encrypt this object.
public java.lang.String getClientToken()
A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
public void setClientToken(java.lang.String clientToken)
A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientToken
- A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
public CreateParallelDataRequest withClientToken(java.lang.String clientToken)
A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS 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 automatically generated when you use Amazon Translate through an AWS 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.