Class DataStream.Builder
- All Implemented Interfaces:
WithJson<DataStream.Builder>,ObjectBuilder<DataStream>
- Enclosing class:
- DataStream
DataStream.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DataStream.BuilderallowCustomRouting(Boolean value) Iftrue, the data stream allows custom routing on write request.build()Builds aDataStream.final DataStream.BuilderfailureStore(FailureStore value) Information about failure store backing indicesfinal DataStream.BuilderInformation about failure store backing indicesfinal DataStream.Buildergeneration(int value) Required - Current generation for the data stream.final DataStream.Builderhidden(boolean value) Required - Iftrue, the data stream is hidden.final DataStream.BuilderName of the current ILM lifecycle policy in the stream’s matching index template.final DataStream.BuilderThe index mode for the data stream that will be used for newly created backing indices.final DataStream.Builderindices(DataStreamIndex value, DataStreamIndex... values) Required - Array of objects containing information about the data stream’s backing indices.final DataStream.BuilderRequired - Array of objects containing information about the data stream’s backing indices.final DataStream.Builderindices(List<DataStreamIndex> list) Required - Array of objects containing information about the data stream’s backing indices.final DataStream.BuilderContains the configuration for the data stream lifecycle of this data stream.final DataStream.Builderlifecycle(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) Contains the configuration for the data stream lifecycle of this data stream.final DataStream.BuilderCustom metadata for the stream, copied from the_metaobject of the stream’s matching index template.final DataStream.BuilderCustom metadata for the stream, copied from the_metaobject of the stream’s matching index template.final DataStream.BuilderRequired - Name of the data stream.final DataStream.BuildernextGenerationManagedBy(ManagedBy value) Required - Name of the lifecycle system that'll manage the next generation of the data stream.final DataStream.BuilderpreferIlm(boolean value) Required - Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.final DataStream.Builderreplicated(Boolean value) Iftrue, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.final DataStream.BuilderrolloverOnWrite(boolean value) Required - Iftrue, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index.protected DataStream.Builderself()final DataStream.Buildersettings(IndexSettings value) Required - The settings specific to this data stream that will take precedence over the settings in the matching index template.final DataStream.BuilderRequired - The settings specific to this data stream that will take precedence over the settings in the matching index template.final DataStream.Builderstatus(HealthStatus value) Required - Health status of the data stream.final DataStream.BuilderIftrue, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction.final DataStream.BuilderRequired - Name of the index template used to create the data stream’s backing indices.final DataStream.BuilderRequired - Information about the@timestampfield in the data stream.final DataStream.BuildertimestampField(Function<DataStreamTimestampField.Builder, ObjectBuilder<DataStreamTimestampField>> fn) Required - Information about the@timestampfield in the data stream.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
-
meta
Custom metadata for the stream, copied from the_metaobject of the stream’s matching index template. If empty, the response omits this property.API name:
_metaAdds all entries of
maptometa. -
meta
Custom metadata for the stream, copied from the_metaobject of the stream’s matching index template. If empty, the response omits this property.API name:
_metaAdds an entry to
meta. -
allowCustomRouting
Iftrue, the data stream allows custom routing on write request.API name:
allow_custom_routing -
failureStore
Information about failure store backing indicesAPI name:
failure_store -
failureStore
public final DataStream.Builder failureStore(Function<FailureStore.Builder, ObjectBuilder<FailureStore>> fn) Information about failure store backing indicesAPI name:
failure_store -
generation
Required - Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.API name:
generation -
ilmPolicy
Name of the current ILM lifecycle policy in the stream’s matching index template. This lifecycle policy is set in theindex.lifecycle.namesetting. If the template does not include a lifecycle policy, this property is not included in the response. NOTE: A data stream’s backing indices may be assigned different lifecycle policies. To retrieve the lifecycle policy for individual backing indices, use the get index settings API.API name:
ilm_policy -
nextGenerationManagedBy
Required - Name of the lifecycle system that'll manage the next generation of the data stream.API name:
next_generation_managed_by -
preferIlm
Required - Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.API name:
prefer_ilm -
indices
Required - Array of objects containing information about the data stream’s backing indices. The last item in this array contains information about the stream’s current write index.API name:
indicesAdds all elements of
listtoindices. -
indices
Required - Array of objects containing information about the data stream’s backing indices. The last item in this array contains information about the stream’s current write index.API name:
indicesAdds one or more values to
indices. -
indices
public final DataStream.Builder indices(Function<DataStreamIndex.Builder, ObjectBuilder<DataStreamIndex>> fn) Required - Array of objects containing information about the data stream’s backing indices. The last item in this array contains information about the stream’s current write index.API name:
indicesAdds a value to
indicesusing a builder lambda. -
lifecycle
Contains the configuration for the data stream lifecycle of this data stream.API name:
lifecycle -
lifecycle
public final DataStream.Builder lifecycle(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) Contains the configuration for the data stream lifecycle of this data stream.API name:
lifecycle -
name
Required - Name of the data stream.API name:
name -
replicated
Iftrue, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.API name:
replicated -
rolloverOnWrite
Required - Iftrue, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.API name:
rollover_on_write -
settings
Required - The settings specific to this data stream that will take precedence over the settings in the matching index template.API name:
settings -
settings
public final DataStream.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Required - The settings specific to this data stream that will take precedence over the settings in the matching index template.API name:
settings -
status
Required - Health status of the data stream. This health status is based on the state of the primary and replica shards of the stream’s backing indices.API name:
status -
system
Iftrue, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction.API name:
system -
template
Required - Name of the index template used to create the data stream’s backing indices. The template’s index pattern must match the name of this data stream.API name:
template -
timestampField
Required - Information about the@timestampfield in the data stream.API name:
timestamp_field -
timestampField
public final DataStream.Builder timestampField(Function<DataStreamTimestampField.Builder, ObjectBuilder<DataStreamTimestampField>> fn) Required - Information about the@timestampfield in the data stream.API name:
timestamp_field -
indexMode
The index mode for the data stream that will be used for newly created backing indices.API name:
index_mode -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStream.Builder>
-
build
Builds aDataStream.- Specified by:
buildin interfaceObjectBuilder<DataStream>- Throws:
NullPointerException- if some of the required fields are null.
-