Class DefaultRequestUploadData.Builder
- java.lang.Object
-
- de.xima.fc.common.form_record.chat.DefaultRequestUploadData.Builder
-
- Enclosing class:
- DefaultRequestUploadData
public static final class DefaultRequestUploadData.Builder extends Object
A builder forIRequestUploadData
.- Since:
- 8.2.0
-
-
Method Summary
-
-
-
Method Detail
-
acceptedUploadTypes
public DefaultRequestUploadData.Builder acceptedUploadTypes(Iterable<String> acceptedUploadTypes)
Sets the accepted upload types. May be null or empty if all types are accepted.- Parameters:
acceptedUploadTypes
- Accepted upload types.- Returns:
- This builder for chaining method calls.
-
acceptedUploadTypes
public DefaultRequestUploadData.Builder acceptedUploadTypes(String... acceptedUploadTypes)
Sets the accepted upload types. May be null or empty if all types are accepted.- Parameters:
acceptedUploadTypes
- Accepted upload types.- Returns:
- This builder for chaining method calls.
-
addAcceptedUploadTypes
public DefaultRequestUploadData.Builder addAcceptedUploadTypes(String... acceptedUploadTypes)
Adds types to the list of accepted upload types.- Parameters:
acceptedUploadTypes
- Accepted upload types.- Returns:
- This builder for chaining method calls.
-
addAcceptedUploadTypes
public DefaultRequestUploadData.Builder addAcceptedUploadTypes(Iterable<String> acceptedUploadTypes)
Adds types to the list of accepted upload types.- Parameters:
acceptedUploadTypes
- Accepted upload types.- Returns:
- This builder for chaining method calls.
-
build
public IRequestUploadData build()
Creates a newIRequestUploadData
instance. Any modifications to this builder after calling this method will not affect the returned instance.- Returns:
- A new
IRequestUploadData
instance.
-
fileMergeMode
public DefaultRequestUploadData.Builder fileMergeMode(EUploadRequestFileMergeMode fileMergeMode)
File merge mode for the upload request.- Parameters:
fileMergeMode
- File merge mode for the upload request.- Returns:
- This builder for chaining method calls.
-
formFieldName
public DefaultRequestUploadData.Builder formFieldName(String formFieldName)
Optional. Name of an upload form field associated with the upload request. May be null or empty if the upload request is not associated with a form field.- Returns:
- This builder for chaining method calls.
-
maxNumberOfFiles
public DefaultRequestUploadData.Builder maxNumberOfFiles(Long maxNumberOfFiles)
Optional. Maximum number of files that may be uploaded. May be null if the number of files is not limited.- Parameters:
maxNumberOfFiles
- Maximum number of files that may be uploaded.- Returns:
- This builder for chaining method calls.
-
maxNumberOfFiles
public DefaultRequestUploadData.Builder maxNumberOfFiles(Integer maxNumberOfFiles)
Optional. Maximum number of files that may be uploaded. May be null if the number of files is not limited.- Parameters:
maxNumberOfFiles
- Maximum number of files that may be uploaded.- Returns:
- This builder for chaining method calls.
-
minNumberOfFiles
public DefaultRequestUploadData.Builder minNumberOfFiles(long minNumberOfFiles)
Minimum number of files that must be uploaded. Defaults to 1.- Parameters:
minNumberOfFiles
- Minimum number of files that must be uploaded.- Returns:
- This builder for chaining method calls.
-
name
public DefaultRequestUploadData.Builder name(String name)
Optional. Name of the upload request that may be displayed to the user.- Parameters:
name
- Name of the upload request.- Returns:
- This builder for chaining method calls.
-
projectPortalData
public DefaultRequestUploadData.Builder projectPortalData(ProjectPortalData projectPortalData)
Applies all constraints from the givenproject portal data
to this builder.- Parameters:
projectPortalData
- Project portal data.- Returns:
- This builder for chaining method calls.
-
repetitionId
public DefaultRequestUploadData.Builder repetitionId(Long repetitionId)
Optional. Index of the repetition of the upload request. May be null if the upload request is not repeated. Note that ID is not the ordinal index of the repetition, but a unique identifier. An ordinal index starts at 0 is continuous (0,1,2,3,4...), while an ID may be any unique value.- Parameters:
repetitionId
- Index of the repetition of the upload request.- Returns:
- This builder for chaining method calls.
-
repetitionId
public DefaultRequestUploadData.Builder repetitionId(Integer repetitionIndex)
Optional. Index of the repetition of the upload request. May be null if the upload request is not repeated. Note that ID is not the ordinal index of the repetition, but a unique identifier. An ordinal index starts at 0 is continuous (0,1,2,3,4...), while an ID may be any unique value.- Parameters:
repetitionIndex
- Index of the repetition of the upload request.- Returns:
- This builder for chaining method calls.
-
uploadSizeLimit
public DefaultRequestUploadData.Builder uploadSizeLimit(Long uploadSizeLimit)
Optional. Maximum size of the upload in bytes. May be null if the size is not limited.- Parameters:
uploadSizeLimit
- Maximum size of the upload in bytes.- Returns:
- This builder for chaining method calls.
-
-