Class IndexTemplateMetaData.Builder
- java.lang.Object
-
- org.elasticsearch.cluster.metadata.IndexTemplateMetaData.Builder
-
- Enclosing class:
- IndexTemplateMetaData
public static class IndexTemplateMetaData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)
Builder(IndexTemplateMetaData indexTemplateMetaData)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String name)
-
Builder
public Builder(IndexTemplateMetaData indexTemplateMetaData)
-
-
Method Detail
-
order
public IndexTemplateMetaData.Builder order(int order)
-
version
public IndexTemplateMetaData.Builder version(java.lang.Integer version)
-
patterns
public IndexTemplateMetaData.Builder patterns(java.util.List<java.lang.String> indexPatterns)
-
settings
public IndexTemplateMetaData.Builder settings(Settings.Builder settings)
-
settings
public IndexTemplateMetaData.Builder settings(Settings settings)
-
removeMapping
public IndexTemplateMetaData.Builder removeMapping(java.lang.String mappingType)
-
putMapping
public IndexTemplateMetaData.Builder putMapping(java.lang.String mappingType, CompressedXContent mappingSource) throws java.io.IOException
- Throws:
java.io.IOException
-
putMapping
public IndexTemplateMetaData.Builder putMapping(java.lang.String mappingType, java.lang.String mappingSource) throws java.io.IOException
- Throws:
java.io.IOException
-
putAlias
public IndexTemplateMetaData.Builder putAlias(AliasMetaData aliasMetaData)
-
putAlias
public IndexTemplateMetaData.Builder putAlias(AliasMetaData.Builder aliasMetaData)
-
build
public IndexTemplateMetaData build()
-
toXContent
public static void toXContent(IndexTemplateMetaData indexTemplateMetaData, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
toInnerXContent
public static void toInnerXContent(IndexTemplateMetaData indexTemplateMetaData, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
fromXContent
public static IndexTemplateMetaData fromXContent(XContentParser parser, java.lang.String templateName) throws java.io.IOException
- Throws:
java.io.IOException
-
-