public static class IndexTemplateMetaData.Builder extends Object
Constructor and Description |
---|
IndexTemplateMetaData.Builder(IndexTemplateMetaData indexTemplateMetaData) |
IndexTemplateMetaData.Builder(String name) |
public IndexTemplateMetaData.Builder(String name)
public IndexTemplateMetaData.Builder(IndexTemplateMetaData indexTemplateMetaData)
public IndexTemplateMetaData.Builder order(int order)
public IndexTemplateMetaData.Builder template(String template)
public String template()
public IndexTemplateMetaData.Builder settings(Settings.Builder settings)
public IndexTemplateMetaData.Builder settings(Settings settings)
public IndexTemplateMetaData.Builder removeMapping(String mappingType)
public IndexTemplateMetaData.Builder putMapping(String mappingType, CompressedXContent mappingSource) throws IOException
IOException
public IndexTemplateMetaData.Builder putMapping(String mappingType, String mappingSource) throws IOException
IOException
public IndexTemplateMetaData.Builder putAlias(AliasMetaData aliasMetaData)
public IndexTemplateMetaData.Builder putAlias(AliasMetaData.Builder aliasMetaData)
public IndexTemplateMetaData.Builder putCustom(String type, IndexMetaData.Custom customIndexMetaData)
public IndexTemplateMetaData.Builder removeCustom(String type)
public IndexMetaData.Custom getCustom(String type)
public IndexTemplateMetaData build()
public static void toXContent(IndexTemplateMetaData indexTemplateMetaData, XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
public static IndexTemplateMetaData fromXContent(XContentParser parser, String templateName) throws IOException
IOException
public static IndexTemplateMetaData readFrom(StreamInput in) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.