Package de.xima.fc.prompt.mgmt.service
Class PromptQueryData.Builder
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.service.PromptQueryData.Builder
-
- Enclosing class:
- PromptQueryData
public static final class PromptQueryData.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromptQueryDatabuild()Builds thePromptQueryDatainstance.PromptQueryData.Builderconnection(PromptObjectIdentifier connection)Sets the prompt connection used by this query.PromptQueryData.Builderdescription(String description)Sets the internal description of the prompt query.PromptQueryData.Buildername(String name)Sets the name of the prompt query.PromptQueryData.Builderscope(PromptScope scope)Sets the scope (assignee) of the prompt query.PromptQueryData.Builderuuid(UUID uuid)Sets the UUID of the prompt query.
-
-
-
Method Detail
-
scope
@CanIgnoreReturnValue public PromptQueryData.Builder scope(PromptScope scope)
Sets the scope (assignee) of the prompt query. Defines the scope to which the query is assigned, e.g. the system or a tenant scope.- Parameters:
scope- The scope.- Returns:
- The builder.
-
build
public PromptQueryData build()
Builds thePromptQueryDatainstance.- Returns:
- The built instance.
-
connection
@CanIgnoreReturnValue public PromptQueryData.Builder connection(PromptObjectIdentifier connection)
Sets the prompt connection used by this query.- Parameters:
connection- The prompt connection.- Returns:
- The builder.
-
description
@CanIgnoreReturnValue public PromptQueryData.Builder description(String description)
Sets the internal description of the prompt query. The description should only be visible to backend users who configure the query, but not to end users.- Parameters:
description- The description of the prompt query.- Returns:
- The builder.
-
name
@CanIgnoreReturnValue public PromptQueryData.Builder name(String name)
Sets the name of the prompt query. The name is unique with the scope to which the query is assigned.- Parameters:
name- The name of the prompt query.- Returns:
- The builder.
-
uuid
@CanIgnoreReturnValue public PromptQueryData.Builder uuid(UUID uuid)
Sets the UUID of the prompt query. The UUID is unique only within the assigned scope.- Parameters:
uuid- The UUID.- Returns:
- The builder.
-
-