Class ThreadPoolResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cat.ThreadPoolResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<ThreadPoolResponse>
- Enclosing class:
- ThreadPoolResponse
public static class ThreadPoolResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<ThreadPoolResponse>
Builder for
ThreadPoolResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ThreadPoolResponsebuild()Builds aThreadPoolResponse.ThreadPoolResponse.BuildervalueBody(ThreadPoolRecord value, ThreadPoolRecord... values)Required - Response value.ThreadPoolResponse.BuildervalueBody(java.util.function.Function<ThreadPoolRecord.Builder,ObjectBuilder<ThreadPoolRecord>> fn)Required - Response value.ThreadPoolResponse.BuildervalueBody(java.util.List<ThreadPoolRecord> list)Required - Response value.Methods 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
-
valueBody
Required - Response value.API name:
_value_bodyAdds all elements of
listtovalueBody. -
valueBody
public final ThreadPoolResponse.Builder valueBody(ThreadPoolRecord value, ThreadPoolRecord... values)Required - Response value.API name:
_value_bodyAdds one or more values to
valueBody. -
valueBody
public final ThreadPoolResponse.Builder valueBody(java.util.function.Function<ThreadPoolRecord.Builder,ObjectBuilder<ThreadPoolRecord>> fn)Required - Response value.API name:
_value_bodyAdds a value to
valueBodyusing a builder lambda. -
build
Builds aThreadPoolResponse.- Specified by:
buildin interfaceObjectBuilder<ThreadPoolResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-