Package de.espirit.firstspirit.ai.dto
Interface AllowedServerFunction.Builder
- Enclosing interface:
- AllowedServerFunction
public static interface AllowedServerFunction.Builder
Builder for a server function filter.
- Since:
- 5.2.251104
-
Method Summary
Modifier and TypeMethodDescription@NotNull AllowedServerFunction
create()
Creates a new instance.@NotNull AllowedServerFunction.Builder
functionName
(@Nullable String functionName) Configures the name of a function to allow,null
for no restriction.@NotNull AllowedServerFunction.Builder
pluginName
(@Nullable String pluginName) Configures the plugin to allow functions from,null
for no restriction.@NotNull AllowedServerFunction.Builder
serverName
(@Nullable String serverName) Configures the server to allow functions from,null
for no restriction.
-
Method Details
-
pluginName
@Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder pluginName(@Nullable @Nullable String pluginName) Configures the plugin to allow functions from,null
for no restriction.- Parameters:
pluginName
- The plugin name, ornull
.- Returns:
- This builder instance.
- Since:
- 5.2.251104
- See Also:
-
serverName
@Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder serverName(@Nullable @Nullable String serverName) Configures the server to allow functions from,null
for no restriction.- Parameters:
serverName
- The server name, ornull
.- Returns:
- This builder instance.
- Since:
- 5.2.251104
- See Also:
-
functionName
@Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder functionName(@Nullable @Nullable String functionName) Configures the name of a function to allow,null
for no restriction.- Parameters:
functionName
- The function name, ornull
.- Returns:
- This builder instance.
- Since:
- 5.2.251104
-
create
Creates a new instance.- Returns:
- The new instance.
- Since:
- 5.2.251104
-