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