Interface FunctionCall.Builder

Enclosing interface:
FunctionCall

public static interface FunctionCall.Builder
Builder for a FunctionCall instance.
Since:
5.2.250908
  • Method Details

    • id

      @Contract("_ -> this") @NotNull @NotNull FunctionCall.Builder id(@NotNull @NotNull String id)
      Configures the identifier of the function call.
      Parameters:
      id - The call identifier.
      Returns:
      This builder instance.
      Since:
      5.2.250908
    • name

      @Contract("_ -> this") @NotNull @NotNull FunctionCall.Builder name(@NotNull @NotNull String name)
      Configures the name of the function to be called.
      Parameters:
      name - The function name.
      Returns:
      This builder instance.
      Since:
      5.2.250908
    • arguments

      @Contract("_ -> this") @NotNull @NotNull FunctionCall.Builder arguments(@Nullable @Nullable String arguments)
      Configures the function arguments, usually this is a JSON string like `{"arg": "value"}`.
      Parameters:
      arguments - The function arguments.
      Returns:
      This builder instance.
      Since:
      5.2.250908
    • create

      @NotNull @NotNull FunctionCall create()
      Creates a new instance.
      Returns:
      The new FunctionCall definition.
      Since:
      5.2.250908