Package org.opensearch.client.indices
Class PutComposableIndexTemplateRequest
- java.lang.Object
-
- org.opensearch.client.TimedRequest
-
- org.opensearch.client.indices.PutComposableIndexTemplateRequest
-
- All Implemented Interfaces:
Validatable,org.opensearch.common.xcontent.ToXContent,org.opensearch.common.xcontent.ToXContentObject
public class PutComposableIndexTemplateRequest extends TimedRequest implements org.opensearch.common.xcontent.ToXContentObject
A request to create an index template.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT
-
Fields inherited from interface org.opensearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description PutComposableIndexTemplateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcause()PutComposableIndexTemplateRequestcause(java.lang.String cause)The cause for this index template creation.booleancreate()PutComposableIndexTemplateRequestcreate(boolean create)Set totrueto force only creation, not an update of an index template.PutComposableIndexTemplateRequestindexTemplate(org.opensearch.cluster.metadata.ComposableIndexTemplate indexTemplate)The index template to create.java.lang.Stringname()The name of the index template.PutComposableIndexTemplateRequestname(java.lang.String name)Sets the name of the index template.org.opensearch.common.xcontent.XContentBuildertoXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class org.opensearch.client.TimedRequest
masterNodeTimeout, setMasterTimeout, setTimeout, timeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.Validatable
validate
-
-
-
-
Method Detail
-
name
public PutComposableIndexTemplateRequest name(java.lang.String name)
Sets the name of the index template.
-
name
public java.lang.String name()
The name of the index template.
-
create
public PutComposableIndexTemplateRequest create(boolean create)
Set totrueto force only creation, not an update of an index template. If it already exists, it will fail with anIllegalArgumentException.
-
create
public boolean create()
-
indexTemplate
public PutComposableIndexTemplateRequest indexTemplate(org.opensearch.cluster.metadata.ComposableIndexTemplate indexTemplate)
The index template to create.
-
cause
public PutComposableIndexTemplateRequest cause(java.lang.String cause)
The cause for this index template creation.
-
cause
public java.lang.String cause()
-
toXContent
public org.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.opensearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
-