Class CustomRequestParams.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CustomRequestParams.Builder>
co.elastic.clients.elasticsearch.inference.CustomRequestParams.Builder
- All Implemented Interfaces:
WithJson<CustomRequestParams.Builder>,ObjectBuilder<CustomRequestParams>
- Enclosing class:
- CustomRequestParams
public static class CustomRequestParams.Builder
extends WithJsonObjectBuilderBase<CustomRequestParams.Builder>
implements ObjectBuilder<CustomRequestParams>
Builder for
CustomRequestParams.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCustomRequestParams.Required - The body structure of the request.protected CustomRequestParams.Builderself()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
-
content
Required - The body structure of the request. It requires passing in the string-escaped result of the JSON format HTTP request body. For example:"request": "{\"input\":${input}}"info The content string needs to be a single line except when using the Kibana console.
API name:
content -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CustomRequestParams.Builder>
-
build
Builds aCustomRequestParams.- Specified by:
buildin interfaceObjectBuilder<CustomRequestParams>- Throws:
NullPointerException- if some of the required fields are null.
-