Class WorkflowFileValueBuilder

    • Method Detail

      • build

        public IWorkflowFileValue build()
        Creates a new file value with the current state of this builder. Any modifications to this builder after calling this method will not affect the returned file value.
        Returns:
        A new file value with the current state of this builder.
      • file

        public WorkflowFileValueBuilder file​(File file)
        Adds files to this builder, using the default file type. Guesses the content type.
        Parameters:
        file - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • file

        public WorkflowFileValueBuilder file​(File file,
                                             String contentType)
        Adds files to this builder, using the default file type.
        Parameters:
        file - The files to add for the given file type.
        contentType - The content type of the file.
        Returns:
        This builder for chaining method calls.
      • file

        public WorkflowFileValueBuilder file​(String key,
                                             File file)
        Adds files to this builder. Guesses the content type.
        Parameters:
        key - The type of the files.
        file - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • file

        public WorkflowFileValueBuilder file​(String key,
                                             File file,
                                             String contentType)
        Adds files to this builder.
        Parameters:
        key - The type of the files.
        file - The files to add for the given file type.
        contentType - The content type of the file.
        Returns:
        This builder for chaining method calls.
      • files

        public WorkflowFileValueBuilder files​(IWorkflowFile... files)
        Adds files to this builder, using the default file type.
        Parameters:
        files - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • files

        public WorkflowFileValueBuilder files​(Iterable<IWorkflowFile> files)
        Adds files to this builder, using the default file type.
        Parameters:
        files - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • files

        public WorkflowFileValueBuilder files​(String key,
                                              IWorkflowFile... files)
        Adds files to this builder.
        Parameters:
        key - The type of the files.
        files - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • files

        public WorkflowFileValueBuilder files​(String key,
                                              Iterable<IWorkflowFile> files)
        Adds files to this builder.
        Parameters:
        key - The type of the files.
        files - The files to add for the given file type.
        Returns:
        This builder for chaining method calls.
      • workflowFileValueBuilder

        public static WorkflowFileValueBuilder workflowFileValueBuilder()
        Creates a new builder for configuring a file value.
        Returns:
        A new builder for configuring a file value.