Class ChatSessionChatKitConfigurationParam.History
-
- All Implemented Interfaces:
public final class ChatSessionChatKitConfigurationParam.HistoryConfiguration for chat history retention. When omitted, history is enabled by default with no limit on recent_threads (null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatSessionChatKitConfigurationParam.History.BuilderA builder for History.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>enabled()Enables chat users to access previous ChatKit threads. final Optional<Long>recentThreads()Number of recent ChatKit threads users have access to. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<Long>_recentThreads()Returns the raw JSON value of recentThreads. final Map<String, JsonValue>_additionalProperties()final ChatSessionChatKitConfigurationParam.History.BuildertoBuilder()final ChatSessionChatKitConfigurationParam.Historyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatSessionChatKitConfigurationParam.History.Builderbuilder()Returns a mutable builder for constructing an instance of History. -
-
Method Detail
-
enabled
final Optional<Boolean> enabled()
Enables chat users to access previous ChatKit threads. Defaults to true.
-
recentThreads
final Optional<Long> recentThreads()
Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_recentThreads
final JsonField<Long> _recentThreads()
Returns the raw JSON value of recentThreads.
Unlike recentThreads, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatSessionChatKitConfigurationParam.History.Builder toBuilder()
-
validate
final ChatSessionChatKitConfigurationParam.History validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ChatSessionChatKitConfigurationParam.History.Builder builder()
Returns a mutable builder for constructing an instance of History.
-
-
-
-