public class CreateVocabularyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
| Constructor and Description |
|---|
CreateVocabularyRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLanguageCode()
The language code of the vocabulary entries.
|
java.util.List<java.lang.String> |
getPhrases()
An array of strings that contains the vocabulary entries.
|
java.lang.String |
getVocabularyFileUri()
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
java.lang.String |
getVocabularyName()
The name of the vocabulary.
|
int |
hashCode() |
void |
setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings that contains the vocabulary entries.
|
void |
setVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
void |
setVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(java.lang.String... phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
CreateVocabularyRequest |
withVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.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.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
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 setVocabularyName(java.lang.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.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
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 CreateVocabularyRequest withVocabularyName(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
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 java.lang.String getLanguageCode()
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic CreateVocabularyRequest withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic CreateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic java.util.List<java.lang.String> getPhrases()
An array of strings that contains the vocabulary entries.
An array of strings that contains the vocabulary entries.
public void setPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings that contains the vocabulary entries.
phrases - An array of strings that contains the vocabulary entries.
public CreateVocabularyRequest withPhrases(java.lang.String... phrases)
An array of strings that contains the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
phrases - An array of strings that contains the vocabulary entries.
public CreateVocabularyRequest withPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings that contains the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
phrases - An array of strings that contains the vocabulary entries.
public java.lang.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.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
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 void setVocabularyFileUri(java.lang.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.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
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 CreateVocabularyRequest withVocabularyFileUri(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.