Package org.opensearch.client.indices
Class GetIndexTemplatesRequest
java.lang.Object
org.opensearch.client.indices.GetIndexTemplatesRequest
- All Implemented Interfaces:
Validatable
- Direct Known Subclasses:
IndexTemplatesExistRequest
A request to read the content of index templates
-
Field Summary
Fields inherited from interface org.opensearch.client.Validatable
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionGetIndexTemplatesRequest(String... names) Create a request to read the content of one or more index templates.GetIndexTemplatesRequest(List<String> names) Create a request to read the content of one or more index templates. -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.common.unit.TimeValueorg.opensearch.common.unit.TimeValueDeprecated.booleanisLocal()names()voidsetClusterManagerNodeTimeout(String clusterManagerNodeTimeout) voidsetClusterManagerNodeTimeout(org.opensearch.common.unit.TimeValue clusterManagerNodeTimeout) voidsetLocal(boolean local) voidsetMasterNodeTimeout(String clusterManagerNodeTimeout) Deprecated.As of 2.2, because supporting inclusive language, replaced bysetClusterManagerNodeTimeout(String)voidsetMasterNodeTimeout(org.opensearch.common.unit.TimeValue clusterManagerNodeTimeout) Deprecated.As of 2.2, because supporting inclusive language, replaced bysetClusterManagerNodeTimeout(TimeValue)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.Validatable
validate
-
Constructor Details
-
GetIndexTemplatesRequest
Create a request to read the content of one or more index templates. If no template names are provided, all templates will be read- Parameters:
names- the names of templates to read
-
GetIndexTemplatesRequest
Create a request to read the content of one or more index templates. If no template names are provided, all templates will be read- Parameters:
names- the names of templates to read
-
-
Method Details
-
names
- Returns:
- the names of index templates this request is requesting
-
getClusterManagerNodeTimeout
public org.opensearch.common.unit.TimeValue getClusterManagerNodeTimeout()- Returns:
- the timeout for waiting for the cluster-manager node to respond
-
getMasterNodeTimeout
Deprecated.As of 2.2, because supporting inclusive language, replaced bygetMasterNodeTimeout()- Returns:
- the timeout for waiting for the cluster-manager node to respond
-
setClusterManagerNodeTimeout
public void setClusterManagerNodeTimeout(@Nullable org.opensearch.common.unit.TimeValue clusterManagerNodeTimeout) -
setMasterNodeTimeout
@Deprecated public void setMasterNodeTimeout(@Nullable org.opensearch.common.unit.TimeValue clusterManagerNodeTimeout) Deprecated.As of 2.2, because supporting inclusive language, replaced bysetClusterManagerNodeTimeout(TimeValue) -
setClusterManagerNodeTimeout
-
setMasterNodeTimeout
Deprecated.As of 2.2, because supporting inclusive language, replaced bysetClusterManagerNodeTimeout(String) -
isLocal
public boolean isLocal()- Returns:
- true if this request is to read from the local cluster state, rather than the cluster-manager node - false otherwise
-
setLocal
public void setLocal(boolean local)
-
getMasterNodeTimeout()