Class DefaultRequestUploadData.Builder

    • 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.
      • 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.
      • 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.