@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVocabularyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateVocabularyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateVocabularyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLanguageCode()
The language code of the vocabulary entries.
|
List<String> |
getPhrases()
An array of strings that contains the vocabulary entries.
|
String |
getVocabularyFileUri()
The S3 location of the text file that contains the definition of the custom vocabulary.
|
String |
getVocabularyName()
The name of the vocabulary.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
void |
setVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary.
|
void |
setVocabularyName(String vocabularyName)
The name of the vocabulary.
|
String |
toString()
Returns a string representation of this object.
|
CreateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(String... phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary.
|
CreateVocabularyRequest |
withVocabularyName(String vocabularyName)
The name of the vocabulary.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an AWS account. The name is case sensitive. If you try
to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException
error.
vocabularyName
- The name of the vocabulary. The name must be unique within an AWS account. The name is case sensitive. If
you try to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException
error.public String getVocabularyName()
The name of the vocabulary. The name must be unique within an AWS account. The name is case sensitive. If you try
to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException
error.
ConflictException
error.public CreateVocabularyRequest withVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an AWS account. The name is case sensitive. If you try
to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException
error.
vocabularyName
- The name of the vocabulary. The name must be unique within an AWS account. The name is case sensitive. If
you try to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException
error.public void setLanguageCode(String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see what-is-transcribe.
languageCode
- The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see what-is-transcribe.LanguageCode
public String getLanguageCode()
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see what-is-transcribe.
LanguageCode
public CreateVocabularyRequest withLanguageCode(String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see what-is-transcribe.
languageCode
- The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see what-is-transcribe.LanguageCode
public CreateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see what-is-transcribe.
languageCode
- The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see what-is-transcribe.LanguageCode
public List<String> getPhrases()
An array of strings that contains the vocabulary entries.
public void setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases
- An array of strings that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(String... phrases)
An array of strings that contains the vocabulary entries.
NOTE: This method appends the values to the existing list (if any). Use
setPhrases(java.util.Collection)
or withPhrases(java.util.Collection)
if you want to override
the existing values.
phrases
- An array of strings that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases
- An array of strings that contains the vocabulary entries.public void setVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
vocabularyFileUri
- The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in
the same region as the API endpoint that you are calling. The general form is
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public String getVocabularyFileUri()
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public CreateVocabularyRequest withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
vocabularyFileUri
- The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in
the same region as the API endpoint that you are calling. The general form is
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public String toString()
toString
in class Object
Object.toString()
public CreateVocabularyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()