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