Class Index.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Index.Builder>
co.elastic.clients.elasticsearch.watcher.Index.Builder
- All Implemented Interfaces:
WithJson<Index.Builder>,ObjectBuilder<Index>
- Enclosing class:
- Index
public static class Index.Builder extends WithJsonObjectBuilderBase<Index.Builder> implements ObjectBuilder<Index>
Builder for
Index.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Indexbuild()Builds aIndex.Index.BuilderdocId(java.lang.String value)API name:doc_idIndex.Builderindex(java.lang.String value)Required - API name:indexIndex.Builderrefresh(Refresh value)API name:refreshprotected Index.Builderself()Methods 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Index.Builder>
-
build
Builds aIndex.- Specified by:
buildin interfaceObjectBuilder<Index>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-