Class Index.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.watcher.Index.Builder
- All Implemented Interfaces:
ObjectBuilder<Index>
- Enclosing class:
- Index
public static class Index.Builder extends ObjectBuilderBase implements ObjectBuilder<Index>
Builder for
Index
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Index
build()
Builds aIndex
.Index.Builder
docId(java.lang.String value)
API name:doc_id
Index.Builder
index(java.lang.String value)
Required - API name:index
Index.Builder
refresh(Refresh value)
API name:refresh
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
-
build
Builds aIndex
.- Specified by:
build
in interfaceObjectBuilder<Index>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-