Class AddAttachmentRequest.FileReference

Object
FileReference
All Implemented Interfaces:
Serializable
Enclosing class:
AddAttachmentRequest

public static class AddAttachmentRequest.FileReference extends Object implements Serializable
See Also:
  • Constructor Details

    • FileReference

      public FileReference(String name, InputStream fileStream)
    • FileReference

      public FileReference()
    • FileReference

      public FileReference(String name, InputStream fileStream, UUID fileId)
      Creates a new FileReference instance.
      Parameters:
      name - The display name of the file of this attachment.
      fileStream - The file content for attachment. It could not be used together with fileId.
      fileId - The file id for attachment. It could not be used together with fileStream.
  • Method Details

    • builder

    • getName

      public String getName()
      The display name of the file of this attachment.
    • getFileStream

      public InputStream getFileStream()
      The file content for attachment. It could not be used together with fileId.
    • getFileId

      public UUID getFileId()
      The file id for attachment. It could not be used together with fileStream.
    • setName

      public void setName(String name)
      The display name of the file of this attachment.
    • setFileStream

      public void setFileStream(InputStream fileStream)
      The file content for attachment. It could not be used together with fileId.
    • setFileId

      public void setFileId(UUID fileId)
      The file id for attachment. It could not be used together with fileStream.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object