public class CreateVocabularyRequest extends AmazonWebServiceRequest implements 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(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(LanguageCode languageCode)
The language code of the vocabulary entries.
|
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; useful for testing and
debugging.
|
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getVocabularyName()
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
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.
public void setVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
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.
public CreateVocabularyRequest withVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
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.
public String getLanguageCode()
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(String languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic CreateVocabularyRequest withLanguageCode(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: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
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: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic List<String> getPhrases()
An array of strings that contains the vocabulary entries.
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.
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(Collection<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 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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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(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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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 ObjectObject.toString()Copyright © 2019. All rights reserved.