public class PutLexiconRequest extends AmazonWebServiceRequest implements java.io.Serializable
Stores a pronunciation lexicon in an AWS Region. If a lexicon with the same name already exists in the region, it is overwritten by the new lexicon. Lexicon operations have eventual consistency, therefore, it might take some time before the lexicon is available to the SynthesizeSpeech operation.
For more information, see Managing Lexicons.
Constructor and Description |
---|
PutLexiconRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContent()
Content of the PLS lexicon as string data.
|
java.lang.String |
getName()
Name of the lexicon.
|
int |
hashCode() |
void |
setContent(java.lang.String content)
Content of the PLS lexicon as string data.
|
void |
setName(java.lang.String name)
Name of the lexicon.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutLexiconRequest |
withContent(java.lang.String content)
Content of the PLS lexicon as string data.
|
PutLexiconRequest |
withName(java.lang.String name)
Name of the lexicon.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getName()
Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
public void setName(java.lang.String name)
Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
name
- Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
public PutLexiconRequest withName(java.lang.String name)
Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
name
- Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
public java.lang.String getContent()
Content of the PLS lexicon as string data.
Content of the PLS lexicon as string data.
public void setContent(java.lang.String content)
Content of the PLS lexicon as string data.
content
- Content of the PLS lexicon as string data.
public PutLexiconRequest withContent(java.lang.String content)
Content of the PLS lexicon as string data.
Returns a reference to this object so that method calls can be chained together.
content
- Content of the PLS lexicon as string data.
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.