Class AllocationRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cat.AllocationRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<AllocationRequest>
- Enclosing class:
- AllocationRequest
public static class AllocationRequest.Builder extends java.lang.Object implements ObjectBuilder<AllocationRequest>
Builder for
AllocationRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description AllocationRequest.Builder
addNodeId(java.lang.String value)
Add a value tonodeId(List)
, creating the list if needed.AllocationRequest
build()
Builds aAllocationRequest
.AllocationRequest.Builder
bytes(Bytes value)
The unit in which to display byte valuesAllocationRequest.Builder
nodeId(java.lang.String... value)
A comma-separated list of node IDs or names to limit the returned informationAllocationRequest.Builder
nodeId(java.util.List<java.lang.String> value)
A comma-separated list of node IDs or names to limit the returned informationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeId
A comma-separated list of node IDs or names to limit the returned informationAPI name:
node_id
-
nodeId
A comma-separated list of node IDs or names to limit the returned informationAPI name:
node_id
-
addNodeId
Add a value tonodeId(List)
, creating the list if needed. -
bytes
The unit in which to display byte valuesAPI name:
bytes
-
build
Builds aAllocationRequest
.- Specified by:
build
in interfaceObjectBuilder<AllocationRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-