Class ChatSessionFileUpload.Builder
-
- All Implemented Interfaces:
public final class ChatSessionFileUpload.Builder
A builder for ChatSessionFileUpload.
-
-
Method Summary
-
-
Method Detail
-
enabled
final ChatSessionFileUpload.Builder enabled(Boolean enabled)
Indicates if uploads are enabled for the session.
-
enabled
final ChatSessionFileUpload.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxFileSize
final ChatSessionFileUpload.Builder maxFileSize(Long maxFileSize)
Maximum upload size in megabytes.
-
maxFileSize
final ChatSessionFileUpload.Builder maxFileSize(Long maxFileSize)
Alias for Builder.maxFileSize.
This unboxed primitive overload exists for backwards compatibility.
-
maxFileSize
final ChatSessionFileUpload.Builder maxFileSize(Optional<Long> maxFileSize)
Alias for calling Builder.maxFileSize with
maxFileSize.orElse(null)
.
-
maxFileSize
final ChatSessionFileUpload.Builder maxFileSize(JsonField<Long> maxFileSize)
Sets Builder.maxFileSize to an arbitrary JSON value.
You should usually call Builder.maxFileSize with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxFiles
final ChatSessionFileUpload.Builder maxFiles(Long maxFiles)
Maximum number of uploads allowed during the session.
-
maxFiles
final ChatSessionFileUpload.Builder maxFiles(Long maxFiles)
Alias for Builder.maxFiles.
This unboxed primitive overload exists for backwards compatibility.
-
maxFiles
final ChatSessionFileUpload.Builder maxFiles(Optional<Long> maxFiles)
Alias for calling Builder.maxFiles with
maxFiles.orElse(null)
.
-
maxFiles
final ChatSessionFileUpload.Builder maxFiles(JsonField<Long> maxFiles)
Sets Builder.maxFiles to an arbitrary JSON value.
You should usually call Builder.maxFiles with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatSessionFileUpload.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatSessionFileUpload.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatSessionFileUpload.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatSessionFileUpload.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatSessionFileUpload.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatSessionFileUpload build()
Returns an immutable instance of ChatSessionFileUpload.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.enabled() .maxFileSize() .maxFiles()
-
-
-
-