Class RecoveryRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cat.RecoveryRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<RecoveryRequest>
- Enclosing class:
- RecoveryRequest
public static class RecoveryRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<RecoveryRequest>
Builder for
RecoveryRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RecoveryRequest.Builder
activeOnly(java.lang.Boolean value)
Iftrue
, the response only includes ongoing shard recoveriesRecoveryRequest
build()
Builds aRecoveryRequest
.RecoveryRequest.Builder
bytes(Bytes value)
The unit in which to display byte valuesRecoveryRequest.Builder
detailed(java.lang.Boolean value)
Iftrue
, the response includes detailed information about shard recoveriesRecoveryRequest.Builder
index(java.lang.String value, java.lang.String... values)
Comma-separated list or wildcard expression of index names to limit the returned informationRecoveryRequest.Builder
index(java.util.List<java.lang.String> list)
Comma-separated list or wildcard expression of index names to limit the returned informationMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
activeOnly
Iftrue
, the response only includes ongoing shard recoveriesAPI name:
active_only
-
bytes
The unit in which to display byte valuesAPI name:
bytes
-
detailed
Iftrue
, the response includes detailed information about shard recoveriesAPI name:
detailed
-
index
Comma-separated list or wildcard expression of index names to limit the returned informationAPI name:
index
Adds all elements of
list
toindex
. -
index
Comma-separated list or wildcard expression of index names to limit the returned informationAPI name:
index
Adds one or more values to
index
. -
build
Builds aRecoveryRequest
.- Specified by:
build
in interfaceObjectBuilder<RecoveryRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-