Class AllocationRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder<AllocationRequest.Builder>
-
- org.opensearch.client.opensearch.cat.AllocationRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder
- Enclosing class:
- AllocationRequest
public static class AllocationRequest.Builder extends CatRequestBase.CatRequestBaseBuilder<AllocationRequest.Builder>
Builder forAllocationRequest
.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder
headers, sort
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationRequest
build()
Builds aAllocationRequest
.AllocationRequest.Builder
bytes(Bytes value)
The unit in which to display byte valuesAllocationRequest.Builder
nodeId(java.lang.String value, java.lang.String... values)
A comma-separated list of node IDs or names to limit the returned informationAllocationRequest.Builder
nodeId(java.util.List<java.lang.String> list)
A comma-separated list of node IDs or names to limit the returned informationprotected AllocationRequest.Builder
self()
-
Methods inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder
headers, sort
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
bytes
public final AllocationRequest.Builder bytes(@Nullable Bytes value)
The unit in which to display byte valuesAPI name:
bytes
-
nodeId
public final AllocationRequest.Builder nodeId(java.util.List<java.lang.String> list)
A comma-separated list of node IDs or names to limit the returned informationAPI name:
node_id
Adds all elements of
list
tonodeId
.
-
nodeId
public final AllocationRequest.Builder nodeId(java.lang.String value, java.lang.String... values)
A comma-separated list of node IDs or names to limit the returned informationAPI name:
node_id
Adds one or more values to
nodeId
.
-
build
public AllocationRequest build()
Builds aAllocationRequest
.- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
self
protected AllocationRequest.Builder self()
- Specified by:
self
in classCatRequestBase.CatRequestBaseBuilder<AllocationRequest.Builder>
-
-