Class SearchAlias
- java.lang.Object
-
- com.azure.search.documents.indexes.models.SearchAlias
-
public final class SearchAlias extends Object
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
Constructors Constructor Description SearchAlias(String name, List<String> indexes)
Creates an instance of SearchAlias class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getETag()
Get the eTag property: The ETag of the alias.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.SearchAlias
setETag(String eTag)
Set the eTag property: The ETag of the alias.
-
-
-
Method Detail
-
getName
public String getName()
Get the name property: The name of the alias.- Returns:
- the name value.
-
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:
- the indexes value.
-
getETag
public String getETag()
Get the eTag property: The ETag of the alias.- Returns:
- the eTag value.
-
setETag
public SearchAlias setETag(String eTag)
Set the eTag property: The ETag of the alias.- Parameters:
eTag
- the eTag value to set.- Returns:
- the SearchAlias object itself.
-
-