Class ContentObject.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ContentObject.Builder>
co.elastic.clients.elasticsearch.inference.ContentObject.Builder
- All Implemented Interfaces:
WithJson<ContentObject.Builder>,ObjectBuilder<ContentObject>
- Enclosing class:
- ContentObject
public static class ContentObject.Builder
extends WithJsonObjectBuilderBase<ContentObject.Builder>
implements ObjectBuilder<ContentObject>
Builder for
ContentObject.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aContentObject.protected ContentObject.Builderself()final ContentObject.BuilderRequired - The text content.final ContentObject.BuilderRequired - The type of content.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
Required - The text content.API name:
text -
type
Required - The type of content.API name:
type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ContentObject.Builder>
-
build
Builds aContentObject.- Specified by:
buildin interfaceObjectBuilder<ContentObject>- Throws:
NullPointerException- if some of the required fields are null.
-