Class Rows.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.Rows.Builder
-
- All Implemented Interfaces:
CopyableBuilder<Rows.Builder,Rows>,MutableBuilder<Rows.Builder,Rows>,ObjectBuilder<Rows>
- Enclosing class:
- Rows
public static class Rows.Builder extends ObjectBuilderBase implements CopyableBuilder<Rows.Builder,Rows>
Builder forRows.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rowsbuild()Builds aRows.Rows.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.Rows.Buildervalues(java.util.function.Function<Values.Builder,ObjectBuilder<Values>> fn)API name:valuesRows.Buildervalues(java.util.List<Values> list)API name:valuesRows.Buildervalues(Values value, Values... values)API name:values-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public Rows.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Rows.Builder,Rows>- Returns:
- a new builder instance.
-
values
@Nonnull public final Rows.Builder values(java.util.List<Values> list)
API name:valuesAdds all elements of
listtovalues.
-
values
@Nonnull public final Rows.Builder values(Values value, Values... values)
API name:valuesAdds one or more values to
values.
-
values
@Nonnull public final Rows.Builder values(java.util.function.Function<Values.Builder,ObjectBuilder<Values>> fn)
API name:valuesAdds a value to
valuesusing a builder lambda.
-
build
@Nonnull public Rows build()
Builds aRows.- Specified by:
buildin interfaceObjectBuilder<Rows>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-