Class CountResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cat.CountResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<CountResponse>
- Enclosing class:
- CountResponse
public static class CountResponse.Builder extends java.lang.Object implements ObjectBuilder<CountResponse>
Builder for
CountResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CountResponse.Builder
addValueBody(CountRecord value)
Add a value tovalueBody(List)
, creating the list if needed.CountResponse.Builder
addValueBody(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)
Add a value tovalueBody(List)
, creating the list if needed.CountResponse
build()
Builds aCountResponse
.CountResponse.Builder
valueBody(CountRecord... value)
Required - Response value.CountResponse.Builder
valueBody(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)
SetvalueBody(List)
to a singleton list.CountResponse.Builder
valueBody(java.util.List<CountRecord> value)
Required - Response value.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
-
valueBody
Required - Response value.API name:
_value_body
-
valueBody
Required - Response value.API name:
_value_body
-
addValueBody
Add a value tovalueBody(List)
, creating the list if needed. -
valueBody
public CountResponse.Builder valueBody(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)SetvalueBody(List)
to a singleton list. -
addValueBody
public CountResponse.Builder addValueBody(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)Add a value tovalueBody(List)
, creating the list if needed. -
build
Builds aCountResponse
.- Specified by:
build
in interfaceObjectBuilder<CountResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-