public class UpdateSynonymOptionsRequest extends AmazonWebServiceRequest implements Serializable
UpdateSynonymOptions operation
.
Configures a synonym dictionary for the search domain. The synonym dictionary is used during indexing to configure mappings for terms that occur in text fields. The maximum size of the synonym dictionary is 100 KB.
Constructor and Description |
---|
UpdateSynonymOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDomainName()
A string that represents the name of a domain.
|
String |
getSynonyms()
Maps terms to their synonyms, serialized as a JSON document.
|
int |
hashCode() |
void |
setDomainName(String domainName)
A string that represents the name of a domain.
|
void |
setSynonyms(String synonyms)
Maps terms to their synonyms, serialized as a JSON document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateSynonymOptionsRequest |
withDomainName(String domainName)
A string that represents the name of a domain.
|
UpdateSynonymOptionsRequest |
withSynonyms(String synonyms)
Maps terms to their synonyms, serialized as a JSON document.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getDomainName()
Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+
public void setDomainName(String domainName)
Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+
domainName
- A string that represents the name of a domain. Domain names must be
unique across the domains owned by an account within an AWS region.
Domain names must start with a letter or number and can contain the
following characters: a-z (lowercase), 0-9, and - (hyphen). Uppercase
letters and underscores are not allowed.public UpdateSynonymOptionsRequest withDomainName(String domainName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 28
Pattern: [a-z][a-z0-9\-]+
domainName
- A string that represents the name of a domain. Domain names must be
unique across the domains owned by an account within an AWS region.
Domain names must start with a letter or number and can contain the
following characters: a-z (lowercase), 0-9, and - (hyphen). Uppercase
letters and underscores are not allowed.public String getSynonyms()
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
public void setSynonyms(String synonyms)
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
synonyms
- Maps terms to their synonyms, serialized as a JSON document. The
document has a single object with one property "synonyms" whose value
is an object mapping terms to their synonyms. Each synonym is a simple
string or an array of strings. The maximum size of a stopwords
document is 100 KB. Example: { "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
public UpdateSynonymOptionsRequest withSynonyms(String synonyms)
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
Returns a reference to this object so that method calls can be chained together.
synonyms
- Maps terms to their synonyms, serialized as a JSON document. The
document has a single object with one property "synonyms" whose value
is an object mapping terms to their synonyms. Each synonym is a simple
string or an array of strings. The maximum size of a stopwords
document is 100 KB. Example: { "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.