Class ShardsResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.ShardsResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardsResponse>
- Enclosing class:
- ShardsResponse
public static class ShardsResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardsResponse>
Builder forShardsResponse
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardsResponse
build()
Builds aShardsResponse
.ShardsResponse.Builder
valueBody(java.util.function.Function<ShardsRecord.Builder,ObjectBuilder<ShardsRecord>> fn)
Required - Response value.ShardsResponse.Builder
valueBody(java.util.List<ShardsRecord> list)
Required - Response value.ShardsResponse.Builder
valueBody(ShardsRecord value, ShardsRecord... values)
Required - Response value.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
valueBody
public final ShardsResponse.Builder valueBody(java.util.List<ShardsRecord> list)
Required - Response value.API name:
_value_body
Adds all elements of
list
tovalueBody
.
-
valueBody
public final ShardsResponse.Builder valueBody(ShardsRecord value, ShardsRecord... values)
Required - Response value.API name:
_value_body
Adds one or more values to
valueBody
.
-
valueBody
public final ShardsResponse.Builder valueBody(java.util.function.Function<ShardsRecord.Builder,ObjectBuilder<ShardsRecord>> fn)
Required - Response value.API name:
_value_body
Adds a value to
valueBody
using a builder lambda.
-
build
public ShardsResponse build()
Builds aShardsResponse
.- Specified by:
build
in interfaceObjectBuilder<ShardsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-