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.Builder
addValueBody(AllocationRecord value)
Add a value tovalueBody(List)
, creating the list if needed.AllocationResponse.Builder
addValueBody(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)
Add a value tovalueBody(List)
, creating the list if needed.AllocationResponse
build()
Builds aAllocationResponse
.AllocationResponse.Builder
valueBody(AllocationRecord... value)
Required - Response value.AllocationResponse.Builder
valueBody(java.util.function.Function<AllocationRecord.Builder,ObjectBuilder<AllocationRecord>> fn)
SetvalueBody(List)
to a singleton list.AllocationResponse.Builder
valueBody(java.util.List<AllocationRecord> 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 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. -
build
Builds aAllocationResponse
.- Specified by:
build
in interfaceObjectBuilder<AllocationResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-