public class SynonymOptionsStatus
extends java.lang.Object
implements java.io.Serializable
The synonym options configured for this search domain and the current status of those options.
| コンストラクタと説明 |
|---|
SynonymOptionsStatus() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getOptions()
Maps terms to their synonyms, serialized as a JSON document.
|
OptionStatus |
getStatus()
The status of an option, including when it was last updated and
whether it is actively in use for searches.
|
int |
hashCode() |
void |
setOptions(java.lang.String options)
Maps terms to their synonyms, serialized as a JSON document.
|
void |
setStatus(OptionStatus status)
The status of an option, including when it was last updated and
whether it is actively in use for searches.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SynonymOptionsStatus |
withOptions(java.lang.String options)
Maps terms to their synonyms, serialized as a JSON document.
|
SynonymOptionsStatus |
withStatus(OptionStatus status)
The status of an option, including when it was last updated and
whether it is actively in use for searches.
|
public java.lang.String getOptions()
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }public void setOptions(java.lang.String options)
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }options - 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 100KB. Example: { "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }public SynonymOptionsStatus withOptions(java.lang.String options)
{ "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }
Returns a reference to this object so that method calls can be chained together.
options - 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 100KB. Example: { "synonyms": {"cat": ["feline",
"kitten"], "puppy": "dog"} }public OptionStatus getStatus()
public void setStatus(OptionStatus status)
status - The status of an option, including when it was last updated and
whether it is actively in use for searches.public SynonymOptionsStatus withStatus(OptionStatus status)
Returns a reference to this object so that method calls can be chained together.
status - The status of an option, including when it was last updated and
whether it is actively in use for searches.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object