public class CreateVocabularyRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a custom vocabulary associated with your Amazon Connect instance. You can set a custom vocabulary to be your default vocabulary for a given language. Contact Lens for Amazon Connect uses the default vocabulary in post-call and real-time contact analysis sessions for that language.
| Constructor and Description |
|---|
CreateVocabularyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateVocabularyRequest |
addTagsEntry(java.lang.String key,
java.lang.String value)
The tags used to organize, track, or control access for this resource.
|
CreateVocabularyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
java.lang.String |
getContent()
The content of the custom vocabulary in plain-text format with a table of
values.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getLanguageCode()
The language code of the vocabulary entries.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
java.lang.String |
getVocabularyName()
A unique name of the custom vocabulary.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
void |
setContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
void |
setLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
void |
setVocabularyName(java.lang.String vocabularyName)
A unique name of the custom vocabulary.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVocabularyRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
CreateVocabularyRequest |
withContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values.
|
CreateVocabularyRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
CreateVocabularyRequest |
withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
CreateVocabularyRequest |
withVocabularyName(java.lang.String vocabularyName)
A unique name of the custom vocabulary.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
Constraints:
Length: - 500
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
public CreateVocabularyRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.
public java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public CreateVocabularyRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.lang.String getVocabularyName()
A unique name of the custom vocabulary.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
A unique name of the custom vocabulary.
public void setVocabularyName(java.lang.String vocabularyName)
A unique name of the custom vocabulary.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName - A unique name of the custom vocabulary.
public CreateVocabularyRequest withVocabularyName(java.lang.String vocabularyName)
A unique name of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName - A unique name of the custom vocabulary.
public java.lang.String getLanguageCode()
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic void setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic CreateVocabularyRequest withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic void setLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic CreateVocabularyRequest withLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic java.lang.String getContent()
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
The size limit is 50KB. For more information, see Create a custom vocabulary using a table.
Constraints:
Length: 1 - 60000
The content of the custom vocabulary in plain-text format with a
table of values. Each row in the table represents a word or a
phrase, described with Phrase, IPA,
SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. The size limit is 50KB.
For more information, see Create a custom vocabulary using a table.
public void setContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
The size limit is 50KB. For more information, see Create a custom vocabulary using a table.
Constraints:
Length: 1 - 60000
content -
The content of the custom vocabulary in plain-text format with
a table of values. Each row in the table represents a word or
a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. The size limit is
50KB. For more information, see Create a custom vocabulary using a table.
public CreateVocabularyRequest withContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
The size limit is 50KB. For more information, see Create a custom vocabulary using a table.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 60000
content -
The content of the custom vocabulary in plain-text format with
a table of values. Each row in the table represents a word or
a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. The size limit is
50KB. For more information, see Create a custom vocabulary using a table.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public CreateVocabularyRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public CreateVocabularyRequest addTagsEntry(java.lang.String key, java.lang.String value)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Tags.value - The corresponding value of the entry to be added into Tags.public CreateVocabularyRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
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.Object