SearchAlias Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchAlias
- com.
Implements
public final class SearchAlias
implements JsonSerializable<SearchAlias>
Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations.
Constructor Summary
| Constructor | Description |
|---|---|
| SearchAlias(String name, List<String> indexes) |
Creates an instance of Search |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
| String |
getETag()
Get the e |
| List<String> |
getIndexes()
Get the indexes property: The name of the index this alias maps to. |
| String |
getName()
Get the name property: The name of the alias. |
|
Search |
setETag(String eTag)
Set the e |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchAlias
public SearchAlias(String name, List<String> indexes)
Creates an instance of SearchAlias class.
Parameters:
Method Details
fromJson
public static SearchAlias fromJson(JsonReader jsonReader)
Reads an instance of SearchAlias from the JsonReader.
Parameters:
Returns:
Throws:
getETag
public String getETag()
Get the eTag property: The ETag of the alias.
Returns:
getIndexes
public List<String> getIndexes()
Get the indexes property: The name of the index this alias maps to. Only one index name may be specified.
Returns:
getName
public String getName()
Get the name property: The name of the alias.
Returns:
setETag
public SearchAlias setETag(String eTag)
Set the eTag property: The ETag of the alias.
Parameters:
Returns: