Class IndexAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexAction.Builder>
co.elastic.clients.elasticsearch.watcher.IndexAction.Builder
- All Implemented Interfaces:
WithJson<IndexAction.Builder>,ObjectBuilder<IndexAction>
- Enclosing class:
- IndexAction
public static class IndexAction.Builder extends WithJsonObjectBuilderBase<IndexAction.Builder> implements ObjectBuilder<IndexAction>
Builder for
IndexAction.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexActionbuild()Builds aIndexAction.IndexAction.BuilderdocId(java.lang.String value)API name:doc_idIndexAction.BuilderexecutionTimeField(java.lang.String value)API name:execution_time_fieldIndexAction.Builderindex(java.lang.String value)Required - API name:indexIndexAction.BuilderopType(OpType value)API name:op_typeIndexAction.Builderrefresh(Refresh value)API name:refreshprotected IndexAction.Builderself()IndexAction.Buildertimeout(Time value)API name:timeoutIndexAction.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:timeoutMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexAction.Builder>
-
build
Builds aIndexAction.- Specified by:
buildin interfaceObjectBuilder<IndexAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-