Class ChatSessionChatKitConfigurationParam.FileUpload
-
- All Implemented Interfaces:
public final class ChatSessionChatKitConfigurationParam.FileUpload
Configuration for upload enablement and limits. When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatSessionChatKitConfigurationParam.FileUpload.Builder
A builder for FileUpload.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>
enabled()
Enable uploads for this session. final Optional<Long>
maxFileSize()
Maximum size in megabytes for each uploaded file. final Optional<Long>
maxFiles()
Maximum number of files that can be uploaded to the session. final JsonField<Boolean>
_enabled()
Returns the raw JSON value of enabled. final JsonField<Long>
_maxFileSize()
Returns the raw JSON value of maxFileSize. final JsonField<Long>
_maxFiles()
Returns the raw JSON value of maxFiles. final Map<String, JsonValue>
_additionalProperties()
final ChatSessionChatKitConfigurationParam.FileUpload.Builder
toBuilder()
final ChatSessionChatKitConfigurationParam.FileUpload
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatSessionChatKitConfigurationParam.FileUpload.Builder
builder()
Returns a mutable builder for constructing an instance of FileUpload. -
-
Method Detail
-
maxFileSize
final Optional<Long> maxFileSize()
Maximum size in megabytes for each uploaded file. Defaults to 512 MB, which is the maximum allowable size.
-
maxFiles
final Optional<Long> maxFiles()
Maximum number of files that can be uploaded to the session. Defaults to 10.
-
_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.
-
_maxFileSize
final JsonField<Long> _maxFileSize()
Returns the raw JSON value of maxFileSize.
Unlike maxFileSize, this method doesn't throw if the JSON field has an unexpected type.
-
_maxFiles
final JsonField<Long> _maxFiles()
Returns the raw JSON value of maxFiles.
Unlike maxFiles, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatSessionChatKitConfigurationParam.FileUpload.Builder toBuilder()
-
validate
final ChatSessionChatKitConfigurationParam.FileUpload validate()
-
builder
final static ChatSessionChatKitConfigurationParam.FileUpload.Builder builder()
Returns a mutable builder for constructing an instance of FileUpload.
-
-
-
-