Class Output.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.Output.Builder
-
- All Implemented Interfaces:
CopyableBuilder<Output.Builder,Output>,MutableBuilder<Output.Builder,Output>,ObjectBuilder<Output>
- Enclosing class:
- Output
public static class Output.Builder extends ObjectBuilderBase implements CopyableBuilder<Output.Builder,Output>
Builder forOutput.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Outputbuild()Builds aOutput.Output.BuilderbyteBuffer(java.util.function.Function<ByteBuffer.Builder,ObjectBuilder<ByteBuffer>> fn)API name:byte_bufferOutput.BuilderbyteBuffer(ByteBuffer value)API name:byte_bufferOutput.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.Output.Builderdata(java.lang.Double value, java.lang.Double... values)Required - API name:dataOutput.Builderdata(java.util.List<java.lang.Double> list)Required - API name:dataOutput.BuilderdataType(java.lang.String value)The output data type.Output.Buildername(java.lang.String value)The output name.Output.Builderresult(java.lang.String value)The output result.Output.Buildershape(java.lang.Long value, java.lang.Long... values)API name:shapeOutput.Buildershape(java.util.List<java.lang.Long> list)API name:shape-
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 Output.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Output.Builder,Output>- Returns:
- a new builder instance.
-
byteBuffer
@Nonnull public final Output.Builder byteBuffer(@Nullable ByteBuffer value)
API name:byte_buffer
-
byteBuffer
@Nonnull public final Output.Builder byteBuffer(java.util.function.Function<ByteBuffer.Builder,ObjectBuilder<ByteBuffer>> fn)
API name:byte_buffer
-
data
@Nonnull public final Output.Builder data(java.util.List<java.lang.Double> list)
Required - API name:dataAdds all elements of
listtodata.
-
data
@Nonnull public final Output.Builder data(java.lang.Double value, java.lang.Double... values)
Required - API name:dataAdds one or more values to
data.
-
dataType
@Nonnull public final Output.Builder dataType(@Nullable java.lang.String value)
The output data type.API name:
data_type
-
name
@Nonnull public final Output.Builder name(@Nullable java.lang.String value)
The output name.API name:
name
-
result
@Nonnull public final Output.Builder result(@Nullable java.lang.String value)
The output result.API name:
result
-
shape
@Nonnull public final Output.Builder shape(java.util.List<java.lang.Long> list)
API name:shapeAdds all elements of
listtoshape.
-
shape
@Nonnull public final Output.Builder shape(java.lang.Long value, java.lang.Long... values)
API name:shapeAdds one or more values to
shape.
-
build
@Nonnull public Output build()
Builds aOutput.- Specified by:
buildin interfaceObjectBuilder<Output>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-