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 for
Output.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aOutput.final Output.BuilderAPI name:byte_bufferfinal Output.BuilderbyteBuffer(ByteBuffer value) API name:byte_buffercopy()Create a new builderCopyableBuilderthat is a copy of this one.final Output.BuilderRequired - API name:datafinal Output.BuilderRequired - API name:datafinal Output.BuilderThe output data type.final Output.BuilderThe output name.final Output.BuilderThe output result.final Output.BuilderAPI name:shapefinal Output.BuilderAPI name:shapeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
API name:byte_buffer -
byteBuffer
@Nonnull public final Output.Builder byteBuffer(Function<ByteBuffer.Builder, ObjectBuilder<ByteBuffer>> fn) API name:byte_buffer -
data
Required - API name:dataAdds all elements of
listtodata. -
data
Required - API name:dataAdds one or more values to
data. -
dataType
The output data type.API name:
data_type -
name
The output name.API name:
name -
result
The output result.API name:
result -
shape
API name:shapeAdds all elements of
listtoshape. -
shape
API name:shapeAdds one or more values to
shape. -
build
Builds aOutput.- Specified by:
buildin interfaceObjectBuilder<Output>- Throws:
NullPointerException- if some of the required fields are null.
-