Class CountRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cat.CountRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder extends java.lang.Object implements ObjectBuilder<CountRequest>
Builder for
CountRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CountRequest.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.CountRequest
build()
Builds aCountRequest
.CountRequest.Builder
index(java.lang.String... value)
A comma-separated list of index names to limit the returned informationCountRequest.Builder
index(java.util.List<java.lang.String> value)
A comma-separated list of index names to limit the returned informationMethods 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
A comma-separated list of index names to limit the returned informationAPI name:
index
-
index
A comma-separated list of index names to limit the returned informationAPI name:
index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
build
Builds aCountRequest
.- Specified by:
build
in interfaceObjectBuilder<CountRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-