Class CountResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.cat.CountResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<CountResponse>
- Enclosing class:
- CountResponse
public static class CountResponse.Builder extends java.lang.Object implements ObjectBuilder<CountResponse>
Builder for
CountResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CountResponse.BuilderaddValue(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)Add a value tovalue(List), creating the list if needed.CountResponse.BuilderaddValue(CountRecord value)Add a value tovalue(List), creating the list if needed.CountResponsebuild()Builds aCountResponse.CountResponse.Buildervalue(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)Setvalue(List)to a singleton list.CountResponse.Buildervalue(java.util.List<CountRecord> value)Response value.CountResponse.Buildervalue(CountRecord... value)Response value.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Response value. API name:value -
value
Response value. API name:value -
addValue
Add a value tovalue(List), creating the list if needed. -
value
public CountResponse.Builder value(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)Setvalue(List)to a singleton list. -
addValue
public CountResponse.Builder addValue(java.util.function.Function<CountRecord.Builder,ObjectBuilder<CountRecord>> fn)Add a value tovalue(List), creating the list if needed. -
build
Builds aCountResponse.- Specified by:
buildin interfaceObjectBuilder<CountResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-