Class ChatKitWorkflow.Builder
-
- All Implemented Interfaces:
public final class ChatKitWorkflow.Builder
A builder for ChatKitWorkflow.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatKitWorkflow.Builder id(String id)
Identifier of the workflow backing the session.
-
id
final ChatKitWorkflow.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stateVariables
final ChatKitWorkflow.Builder stateVariables(ChatKitWorkflow.StateVariables stateVariables)
State variable key-value pairs applied when invoking the workflow. Defaults to null when no overrides were provided.
-
stateVariables
final ChatKitWorkflow.Builder stateVariables(Optional<ChatKitWorkflow.StateVariables> stateVariables)
Alias for calling Builder.stateVariables with
stateVariables.orElse(null)
.
-
stateVariables
final ChatKitWorkflow.Builder stateVariables(JsonField<ChatKitWorkflow.StateVariables> stateVariables)
Sets Builder.stateVariables to an arbitrary JSON value.
You should usually call Builder.stateVariables with a well-typed StateVariables value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tracing
final ChatKitWorkflow.Builder tracing(ChatKitWorkflow.Tracing tracing)
Tracing settings applied to the workflow.
-
tracing
final ChatKitWorkflow.Builder tracing(JsonField<ChatKitWorkflow.Tracing> tracing)
Sets Builder.tracing to an arbitrary JSON value.
You should usually call Builder.tracing with a well-typed Tracing value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final ChatKitWorkflow.Builder version(String version)
Specific workflow version used for the session. Defaults to null when using the latest deployment.
-
version
final ChatKitWorkflow.Builder version(Optional<String> version)
Alias for calling Builder.version with
version.orElse(null)
.
-
version
final ChatKitWorkflow.Builder version(JsonField<String> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatKitWorkflow.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitWorkflow.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitWorkflow.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitWorkflow.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitWorkflow.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitWorkflow build()
Returns an immutable instance of ChatKitWorkflow.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .stateVariables() .tracing() .version()
-
-
-
-