Class IndexAndDataStreamAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexAndDataStreamAction.Builder>
co.elastic.clients.elasticsearch.indices.modify_data_stream.IndexAndDataStreamAction.Builder
- All Implemented Interfaces:
WithJson<IndexAndDataStreamAction.Builder>
,ObjectBuilder<IndexAndDataStreamAction>
- Enclosing class:
- IndexAndDataStreamAction
public static class IndexAndDataStreamAction.Builder
extends WithJsonObjectBuilderBase<IndexAndDataStreamAction.Builder>
implements ObjectBuilder<IndexAndDataStreamAction>
Builder for
IndexAndDataStreamAction
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aIndexAndDataStreamAction
.dataStream
(String value) Required - Data stream targeted by the action.Required - Index for the action.protected IndexAndDataStreamAction.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataStream
Required - Data stream targeted by the action.API name:
data_stream
-
index
Required - Index for the action.API name:
index
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexAndDataStreamAction.Builder>
-
build
Builds aIndexAndDataStreamAction
.- Specified by:
build
in interfaceObjectBuilder<IndexAndDataStreamAction>
- Throws:
NullPointerException
- if some of the required fields are null.
-