Class IndicesRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder<IndicesRequest.Builder>
-
- org.opensearch.client.opensearch.cat.IndicesRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder
- Enclosing class:
- IndicesRequest
public static class IndicesRequest.Builder extends CatRequestBase.CatRequestBaseBuilder<IndicesRequest.Builder>
Builder forIndicesRequest.
-
-
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 IndicesRequestbuild()Builds aIndicesRequest.IndicesRequest.Builderbytes(Bytes value)The unit in which to display byte valuesIndicesRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesRequest.Builderhealth(HealthStatus value)A health status ("green", "yellow", or "red" to filter only indices matching the specified health statusIndicesRequest.BuilderincludeUnloadedSegments(java.lang.Boolean value)If set to true segment stats will include stats for segments that are not currently loaded into memoryIndicesRequest.Builderindex(java.lang.String value, java.lang.String... values)A comma-separated list of index names to limit the returned informationIndicesRequest.Builderindex(java.util.List<java.lang.String> list)A comma-separated list of index names to limit the returned informationIndicesRequest.Builderpri(java.lang.Boolean value)Set to true to return stats only for primary shardsprotected IndicesRequest.Builderself()-
Methods inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder
headers, sort
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
bytes
public final IndicesRequest.Builder bytes(@Nullable Bytes value)
The unit in which to display byte valuesAPI name:
bytes
-
expandWildcards
public final IndicesRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards.
-
expandWildcards
public final IndicesRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards.
-
health
public final IndicesRequest.Builder health(@Nullable HealthStatus value)
A health status ("green", "yellow", or "red" to filter only indices matching the specified health statusAPI name:
health
-
includeUnloadedSegments
public final IndicesRequest.Builder includeUnloadedSegments(@Nullable java.lang.Boolean value)
If set to true segment stats will include stats for segments that are not currently loaded into memoryAPI name:
include_unloaded_segments
-
index
public final IndicesRequest.Builder index(java.util.List<java.lang.String> list)
A comma-separated list of index names to limit the returned informationAPI name:
indexAdds all elements of
listtoindex.
-
index
public final IndicesRequest.Builder index(java.lang.String value, java.lang.String... values)
A comma-separated list of index names to limit the returned informationAPI name:
indexAdds one or more values to
index.
-
pri
public final IndicesRequest.Builder pri(@Nullable java.lang.Boolean value)
Set to true to return stats only for primary shardsAPI name:
pri
-
self
protected IndicesRequest.Builder self()
- Specified by:
selfin classCatRequestBase.CatRequestBaseBuilder<IndicesRequest.Builder>
-
build
public IndicesRequest build()
Builds aIndicesRequest.- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-