Class DataStreamFailureStore.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamFailureStore.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamFailureStore.Builder
- All Implemented Interfaces:
WithJson<DataStreamFailureStore.Builder>,ObjectBuilder<DataStreamFailureStore>
- Enclosing class:
- DataStreamFailureStore
public static class DataStreamFailureStore.Builder
extends WithJsonObjectBuilderBase<DataStreamFailureStore.Builder>
implements ObjectBuilder<DataStreamFailureStore>
Builder for
DataStreamFailureStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamFailureStore.If defined, it turns the failure store on/off (true/false) for this data stream.lifecycle(FailureStoreLifecycle value) If defined, it specifies the lifecycle configuration for the failure store of this data stream.If defined, it specifies the lifecycle configuration for the failure store of this data stream.protected DataStreamFailureStore.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
-
enabled
If defined, it turns the failure store on/off (true/false) for this data stream. A data stream failure store that's disabled (enabled:false) will redirect no new failed indices to the failure store; however, it will not remove any existing data from the failure store.API name:
enabled -
lifecycle
If defined, it specifies the lifecycle configuration for the failure store of this data stream.API name:
lifecycle -
lifecycle
public final DataStreamFailureStore.Builder lifecycle(Function<FailureStoreLifecycle.Builder, ObjectBuilder<FailureStoreLifecycle>> fn) If defined, it specifies the lifecycle configuration for the failure store of this data stream.API name:
lifecycle -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStreamFailureStore.Builder>
-
build
Builds aDataStreamFailureStore.- Specified by:
buildin interfaceObjectBuilder<DataStreamFailureStore>- Throws:
NullPointerException- if some of the required fields are null.
-