类 PutComponentTemplateRequest
java.lang.Object
org.easysearch.client.TimedRequest
org.easysearch.client.indices.PutComponentTemplateRequest
- 所有已实现的接口:
Validatable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public class PutComponentTemplateRequest extends TimedRequest implements org.easysearch.common.xcontent.ToXContentObject
A request to create an component template.
-
嵌套类概要
从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从类继承的字段 org.easysearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
构造器概要
构造器 构造器 说明 PutComponentTemplateRequest() -
方法概要
修饰符和类型 方法 说明 java.lang.Stringcause()PutComponentTemplateRequestcause(java.lang.String cause)The cause for this component template creation.PutComponentTemplateRequestcomponentTemplate(org.easysearch.cluster.metadata.ComponentTemplate componentTemplate)The component template to create.booleancreate()PutComponentTemplateRequestcreate(boolean create)Set totrueto force only creation, not an update of an component template.java.lang.Stringname()The name of the component template.PutComponentTemplateRequestname(java.lang.String name)Sets the name of the component template.org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 org.easysearch.client.TimedRequest
masterNodeTimeout, setMasterTimeout, setTimeout, timeout从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment从接口继承的方法 org.easysearch.client.Validatable
validate
-
构造器详细资料
-
PutComponentTemplateRequest
public PutComponentTemplateRequest()
-
-
方法详细资料
-
name
Sets the name of the component template. -
name
public java.lang.String name()The name of the component template. -
create
Set totrueto force only creation, not an update of an component template. If it already exists, it will fail with anIllegalArgumentException. -
create
public boolean create() -
componentTemplate
public PutComponentTemplateRequest componentTemplate(org.easysearch.cluster.metadata.ComponentTemplate componentTemplate)The component template to create. -
cause
The cause for this component template creation. -
cause
public java.lang.String cause() -
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-