Class ShardsRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder<ShardsRequest.Builder>
-
- org.opensearch.client.opensearch.cat.ShardsRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder
- Enclosing class:
- ShardsRequest
public static class ShardsRequest.Builder extends CatRequestBase.CatRequestBaseBuilder<ShardsRequest.Builder>
Builder forShardsRequest
.
-
-
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 ShardsRequest
build()
Builds aShardsRequest
.ShardsRequest.Builder
bytes(Bytes value)
The unit in which to display byte valuesShardsRequest.Builder
index(java.lang.String value, java.lang.String... values)
A comma-separated list of index names to limit the returned informationShardsRequest.Builder
index(java.util.List<java.lang.String> list)
A comma-separated list of index names to limit the returned informationprotected ShardsRequest.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 ShardsRequest.Builder bytes(@Nullable Bytes value)
The unit in which to display byte valuesAPI name:
bytes
-
index
public final ShardsRequest.Builder index(java.util.List<java.lang.String> list)
A comma-separated list of index names to limit the returned informationAPI name:
index
Adds all elements of
list
toindex
.
-
index
public final ShardsRequest.Builder index(java.lang.String value, java.lang.String... values)
A comma-separated list of index names to limit the returned informationAPI name:
index
Adds one or more values to
index
.
-
build
public ShardsRequest build()
Builds aShardsRequest
.- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
self
protected ShardsRequest.Builder self()
- Specified by:
self
in classCatRequestBase.CatRequestBaseBuilder<ShardsRequest.Builder>
-
-