Class IndexTemplateSummaryWithRollover.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexTemplateSummaryWithRollover.Builder>
co.elastic.clients.elasticsearch.indices.IndexTemplateSummaryWithRollover.Builder
- All Implemented Interfaces:
WithJson<IndexTemplateSummaryWithRollover.Builder>,ObjectBuilder<IndexTemplateSummaryWithRollover>
- Enclosing class:
- IndexTemplateSummaryWithRollover
public static class IndexTemplateSummaryWithRollover.Builder
extends WithJsonObjectBuilderBase<IndexTemplateSummaryWithRollover.Builder>
implements ObjectBuilder<IndexTemplateSummaryWithRollover>
Builder for
IndexTemplateSummaryWithRollover.-
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 aIndexTemplateSummaryWithRollover.API name:data_stream_optionsAPI 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 IndexTemplateSummaryWithRollover.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
-
lifecycle
public final IndexTemplateSummaryWithRollover.Builder lifecycle(@Nullable DataStreamLifecycleWithRollover value) API name:lifecycle -
lifecycle
public final IndexTemplateSummaryWithRollover.Builder lifecycle(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) API name:lifecycle -
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 IndexTemplateSummaryWithRollover.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 IndexTemplateSummaryWithRollover.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 IndexTemplateSummaryWithRollover.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Configuration options for the index.API name:
settings -
dataStreamOptions
public final IndexTemplateSummaryWithRollover.Builder dataStreamOptions(@Nullable DataStreamOptions value) API name:data_stream_options -
dataStreamOptions
public final IndexTemplateSummaryWithRollover.Builder dataStreamOptions(Function<DataStreamOptions.Builder, ObjectBuilder<DataStreamOptions>> fn) API name:data_stream_options -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexTemplateSummaryWithRollover.Builder>
-
build
Builds aIndexTemplateSummaryWithRollover.- Specified by:
buildin interfaceObjectBuilder<IndexTemplateSummaryWithRollover>- Throws:
NullPointerException- if some of the required fields are null.
-