Class Content.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.Content.Builder
- All Implemented Interfaces:
CopyableBuilder<Content.Builder,,Content> MutableBuilder<Content.Builder,,Content> ObjectBuilder<Content>
- Enclosing class:
Content
public static class Content.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Content.Builder,Content>
Builder for
Content.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aContent.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Content.BuilderAdds an entry tometadata.final Content.BuilderAdds all elements ofmaptometadata.final Content.BuilderAPI name:textfinal Content.BuilderAPI name:typeMethods 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<Content.Builder,Content> - Returns:
- a new builder instance.
-
metadata
Adds all elements of
maptometadata. -
metadata
Adds an entry to
metadata. -
text
API name:text -
type
API name:type -
build
Builds aContent.- Specified by:
buildin interfaceObjectBuilder<Content>- Throws:
NullPointerException- if some of the required fields are null.
-