Class FireworksAITaskSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FireworksAITaskSettings.Builder>
co.elastic.clients.elasticsearch.inference.FireworksAITaskSettings.Builder
- All Implemented Interfaces:
WithJson<FireworksAITaskSettings.Builder>,ObjectBuilder<FireworksAITaskSettings>
- Enclosing class:
- FireworksAITaskSettings
public static class FireworksAITaskSettings.Builder
extends WithJsonObjectBuilderBase<FireworksAITaskSettings.Builder>
implements ObjectBuilder<FireworksAITaskSettings>
Builder for
FireworksAITaskSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFireworksAITaskSettings.For acompletionorchat_completiontask.For acompletionorchat_completiontask.protected FireworksAITaskSettings.Builderself()For acompletionorchat_completiontask, specify the user issuing the request.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
-
user
For acompletionorchat_completiontask, specify the user issuing the request. This information can be used for abuse detection.API name:
user -
headers
For acompletionorchat_completiontask. Specifies custom HTTP header parameters. For example:"headers": { "Custom-Header": "Some-Value", "Another-Custom-Header": "Another-Value" }API name:
headersAdds all entries of
maptoheaders. -
headers
For acompletionorchat_completiontask. Specifies custom HTTP header parameters. For example:"headers": { "Custom-Header": "Some-Value", "Another-Custom-Header": "Another-Value" }API name:
headersAdds an entry to
headers. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FireworksAITaskSettings.Builder>
-
build
Builds aFireworksAITaskSettings.- Specified by:
buildin interfaceObjectBuilder<FireworksAITaskSettings>- Throws:
NullPointerException- if some of the required fields are null.
-