Class IndexAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.watcher.IndexAction.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexAction>
- Enclosing class:
- IndexAction
public static class IndexAction.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexAction>
Builder for
IndexAction
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexAction
build()
Builds aIndexAction
.IndexAction.Builder
docId(java.lang.String value)
API name:doc_id
IndexAction.Builder
executionTimeField(java.lang.String value)
API name:execution_time_field
IndexAction.Builder
index(java.lang.String value)
Required - API name:index
IndexAction.Builder
opType(OpType value)
API name:op_type
IndexAction.Builder
refresh(Refresh value)
API name:refresh
IndexAction.Builder
timeout(Time value)
API name:timeout
IndexAction.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
API name:timeout
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - API name:index
-
docId
API name:doc_id
-
refresh
API name:refresh
-
opType
API name:op_type
-
timeout
API name:timeout
-
timeout
public final IndexAction.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:timeout
-
executionTimeField
API name:execution_time_field
-
build
Builds aIndexAction
.- Specified by:
build
in interfaceObjectBuilder<IndexAction>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-