Class Attachment

java.lang.Object
software.xdev.mailpit.model.Attachment

public class Attachment extends Object
Attachment struct for inline and attachments
  • Field Details

  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • contentID

      public Attachment contentID(@Nullable String contentID)
    • getContentID

      @Nullable public String getContentID()
      Content ID
      Returns:
      contentID
    • setContentID

      public void setContentID(@Nullable String contentID)
    • contentType

      public Attachment contentType(@Nullable String contentType)
    • getContentType

      @Nullable public String getContentType()
      Content type
      Returns:
      contentType
    • setContentType

      public void setContentType(@Nullable String contentType)
    • fileName

      public Attachment fileName(@Nullable String fileName)
    • getFileName

      @Nullable public String getFileName()
      File name
      Returns:
      fileName
    • setFileName

      public void setFileName(@Nullable String fileName)
    • partID

      public Attachment partID(@Nullable String partID)
    • getPartID

      @Nullable public String getPartID()
      Attachment part ID
      Returns:
      partID
    • setPartID

      public void setPartID(@Nullable String partID)
    • size

      public Attachment size(@Nullable Integer size)
    • getSize

      @Nullable public Integer getSize()
      Size in bytes
      Returns:
      size
    • setSize

      public void setSize(@Nullable Integer size)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string