Class IndexTemplateSummary.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexTemplateSummary.Builder>
co.elastic.clients.elasticsearch.indices.IndexTemplateSummary.Builder
- All Implemented Interfaces:
WithJson<IndexTemplateSummary.Builder>,ObjectBuilder<IndexTemplateSummary>
- Enclosing class:
- IndexTemplateSummary
public static class IndexTemplateSummary.Builder
extends WithJsonObjectBuilderBase<IndexTemplateSummary.Builder>
implements ObjectBuilder<IndexTemplateSummary>
Builder for
IndexTemplateSummary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAliases to add.aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases to add.Aliases to add.build()Builds aIndexTemplateSummary.API name:data_stream_optionsdataStreamOptions(Function<DataStreamOptionsTemplate.Builder, ObjectBuilder<DataStreamOptionsTemplate>> fn) API name:data_stream_optionsAPI name:lifecyclelifecycle(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) API name:lifecyclemappings(TypeMapping value) Mapping for fields in the index.Mapping for fields in the index.protected IndexTemplateSummary.Builderself()settings(IndexSettings value) Configuration options for the index.Configuration options for the index.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aliases
Aliases to add. If the index template includes adata_streamobject, these are data stream aliases. Otherwise, these are index aliases. Data stream aliases ignore theindex_routing,routing, andsearch_routingoptions.API name:
aliasesAdds all entries of
maptoaliases. -
aliases
Aliases to add. If the index template includes adata_streamobject, these are data stream aliases. Otherwise, these are index aliases. Data stream aliases ignore theindex_routing,routing, andsearch_routingoptions.API name:
aliasesAdds an entry to
aliases. -
aliases
public final IndexTemplateSummary.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases to add. If the index template includes adata_streamobject, these are data stream aliases. Otherwise, these are index aliases. Data stream aliases ignore theindex_routing,routing, andsearch_routingoptions.API name:
aliasesAdds an entry to
aliasesusing a builder lambda. -
mappings
Mapping for fields in the index. If specified, this mapping can include field names, field data types, and mapping parameters.API name:
mappings -
mappings
public final IndexTemplateSummary.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Mapping for fields in the index. If specified, this mapping can include field names, field data types, and mapping parameters.API name:
mappings -
settings
Configuration options for the index.API name:
settings -
settings
public final IndexTemplateSummary.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Configuration options for the index.API name:
settings -
lifecycle
public final IndexTemplateSummary.Builder lifecycle(@Nullable DataStreamLifecycleWithRollover value) API name:lifecycle -
lifecycle
public final IndexTemplateSummary.Builder lifecycle(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) API name:lifecycle -
dataStreamOptions
public final IndexTemplateSummary.Builder dataStreamOptions(@Nullable DataStreamOptionsTemplate value) API name:data_stream_options -
dataStreamOptions
public final IndexTemplateSummary.Builder dataStreamOptions(Function<DataStreamOptionsTemplate.Builder, ObjectBuilder<DataStreamOptionsTemplate>> fn) API name:data_stream_options -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexTemplateSummary.Builder>
-
build
Builds aIndexTemplateSummary.- Specified by:
buildin interfaceObjectBuilder<IndexTemplateSummary>- Throws:
NullPointerException- if some of the required fields are null.
-