Class CountRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.CountRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<CountRequest>
Builder forCountRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountRequestbuild()Builds aCountRequest.CountRequest.Builderindex(java.lang.String value, java.lang.String... values)A comma-separated list of index names to limit the returned informationCountRequest.Builderindex(java.util.List<java.lang.String> list)A comma-separated list of index names to limit the returned information-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
index
public final CountRequest.Builder index(java.util.List<java.lang.String> list)
A comma-separated list of index names to limit the returned informationAPI name:
indexAdds all elements of
listtoindex.
-
index
public final CountRequest.Builder index(java.lang.String value, java.lang.String... values)
A comma-separated list of index names to limit the returned informationAPI name:
indexAdds one or more values to
index.
-
build
public CountRequest build()
Builds aCountRequest.- Specified by:
buildin interfaceObjectBuilder<CountRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-