Class CreateAttachmentParamsBean.Builder

java.lang.Object
com.atlassian.jira.issue.attachment.CreateAttachmentParamsBean.Builder
Enclosing class:
CreateAttachmentParamsBean

@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public static class CreateAttachmentParamsBean.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
      Create a new builder with no parameters set. The createdTime property defaults to the current timestamp.
    • Builder

      public Builder(File file, String filename, @Nullable String contentType, @Nullable ApplicationUser author, Issue issue)
      Create a new builder with the specified parameters. The createdTime property defaults to the current timestamp.
      Parameters:
      file - A file on a locally accessible filesystem
      filename - The desired filename for this attachment. This may be different to the filename on disk (for example with temp files used in file uploads)
      contentType - The desired contentType.
      author - The user who created this attachment
      issue - The issue that this file is to be attached to
  • Method Details