Class DataStreamIndex.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamIndex.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamIndex.Builder
- All Implemented Interfaces:
WithJson<DataStreamIndex.Builder>,ObjectBuilder<DataStreamIndex>
- Enclosing class:
- DataStreamIndex
public static class DataStreamIndex.Builder
extends WithJsonObjectBuilderBase<DataStreamIndex.Builder>
implements ObjectBuilder<DataStreamIndex>
Builder for
DataStreamIndex.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamIndex.final DataStreamIndex.BuilderName of the current ILM lifecycle policy configured for this backing index.final DataStreamIndex.BuilderRequired - Name of the backing index.final DataStreamIndex.BuilderRequired - Universally unique identifier (UUID) for the index.final DataStreamIndex.BuilderRequired - Name of the lifecycle system that's currently managing this backing index.final DataStreamIndex.BuilderpreferIlm(boolean value) Required - Indicates if ILM should take precedence over DSL in case both are configured to manage this index.protected DataStreamIndex.Builderself()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
-
indexName
Required - Name of the backing index.API name:
index_name -
indexUuid
Required - Universally unique identifier (UUID) for the index.API name:
index_uuid -
ilmPolicy
Name of the current ILM lifecycle policy configured for this backing index.API name:
ilm_policy -
managedBy
Required - Name of the lifecycle system that's currently managing this backing index.API name:
managed_by -
preferIlm
Required - Indicates if ILM should take precedence over DSL in case both are configured to manage this index.API name:
prefer_ilm -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStreamIndex.Builder>
-
build
Builds aDataStreamIndex.- Specified by:
buildin interfaceObjectBuilder<DataStreamIndex>- Throws:
NullPointerException- if some of the required fields are null.
-