Package org.elasticsearch.client.indices
Class GetComponentTemplatesRequest
java.lang.Object
org.elasticsearch.client.indices.GetComponentTemplatesRequest
- All Implemented Interfaces:
Validatable
- Direct Known Subclasses:
ComponentTemplatesExistRequest
,ComposableIndexTemplateExistRequest
public class GetComponentTemplatesRequest extends java.lang.Object implements Validatable
A request to read the content of component templates
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GetComponentTemplatesRequest(java.lang.String name)
Create a request to read the content of component template. -
Method Summary
Modifier and Type Method Description org.elasticsearch.common.unit.TimeValue
getMasterNodeTimeout()
boolean
isLocal()
java.lang.String
name()
void
setLocal(boolean local)
void
setMasterNodeTimeout(java.lang.String masterNodeTimeout)
void
setMasterNodeTimeout(org.elasticsearch.common.unit.TimeValue masterNodeTimeout)
-
Constructor Details
-
GetComponentTemplatesRequest
public GetComponentTemplatesRequest(java.lang.String name)Create a request to read the content of component template. If no template name is provided, all templates will be read- Parameters:
name
- the name of template to read
-
-
Method Details
-
name
public java.lang.String name()- Returns:
- the name of component template this request is requesting
-
getMasterNodeTimeout
public org.elasticsearch.common.unit.TimeValue getMasterNodeTimeout()- Returns:
- the timeout for waiting for the master node to respond
-
setMasterNodeTimeout
public void setMasterNodeTimeout(@Nullable org.elasticsearch.common.unit.TimeValue masterNodeTimeout) -
setMasterNodeTimeout
public void setMasterNodeTimeout(java.lang.String masterNodeTimeout) -
isLocal
public boolean isLocal()- Returns:
- true if this request is to read from the local cluster state, rather than the master node - false otherwise
-
setLocal
public void setLocal(boolean local)
-