Class NamespaceTool.Tool.Function.Builder
-
- All Implemented Interfaces:
public final class NamespaceTool.Tool.Function.BuilderA builder for Function.
-
-
Method Summary
-
-
Method Detail
-
name
final NamespaceTool.Tool.Function.Builder name(String name)
-
name
final NamespaceTool.Tool.Function.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final NamespaceTool.Tool.Function.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("function")This method is primarily for setting the field to an undocumented or not yet supported value.
-
deferLoading
final NamespaceTool.Tool.Function.Builder deferLoading(Boolean deferLoading)
Whether this function should be deferred and discovered via tool search.
-
deferLoading
final NamespaceTool.Tool.Function.Builder deferLoading(JsonField<Boolean> deferLoading)
Sets Builder.deferLoading to an arbitrary JSON value.
You should usually call Builder.deferLoading with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final NamespaceTool.Tool.Function.Builder description(String description)
-
description
final NamespaceTool.Tool.Function.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final NamespaceTool.Tool.Function.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
parameters
final NamespaceTool.Tool.Function.Builder parameters(JsonValue parameters)
-
strict
final NamespaceTool.Tool.Function.Builder strict(Boolean strict)
-
strict
final NamespaceTool.Tool.Function.Builder strict(Boolean strict)
Alias for Builder.strict.
This unboxed primitive overload exists for backwards compatibility.
-
strict
final NamespaceTool.Tool.Function.Builder strict(Optional<Boolean> strict)
Alias for calling Builder.strict with
strict.orElse(null).
-
strict
final NamespaceTool.Tool.Function.Builder strict(JsonField<Boolean> strict)
Sets Builder.strict to an arbitrary JSON value.
You should usually call Builder.strict with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final NamespaceTool.Tool.Function.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final NamespaceTool.Tool.Function.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final NamespaceTool.Tool.Function.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final NamespaceTool.Tool.Function.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final NamespaceTool.Tool.Function.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final NamespaceTool.Tool.Function build()
Returns an immutable instance of Function.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-