Class SendMessageParamsRequestAttachmentsInner

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

public class SendMessageParamsRequestAttachmentsInner extends Object
SendMessageParamsRequestAttachmentsInner
  • Field Details

  • Constructor Details

    • SendMessageParamsRequestAttachmentsInner

      public SendMessageParamsRequestAttachmentsInner()
  • Method Details

    • content

      public SendMessageParamsRequestAttachmentsInner content(@Nonnull String content)
    • getContent

      @Nonnull public String getContent()
      Base64-encoded string of the file content
      Returns:
      content
    • setContent

      public void setContent(@Nonnull String content)
    • contentID

      public SendMessageParamsRequestAttachmentsInner contentID(@Nullable String contentID)
    • getContentID

      @Nullable public String getContentID()
      Optional Content-ID (`cid`) for attachment. If this field is set then the file is attached inline.
      Returns:
      contentID
    • setContentID

      public void setContentID(@Nullable String contentID)
    • contentType

      public SendMessageParamsRequestAttachmentsInner contentType(@Nullable String contentType)
    • getContentType

      @Nullable public String getContentType()
      Optional Content Type for the the attachment. If this field is not set (or empty) then the content type is automatically detected.
      Returns:
      contentType
    • setContentType

      public void setContentType(@Nullable String contentType)
    • filename

      public SendMessageParamsRequestAttachmentsInner filename(@Nonnull String filename)
    • getFilename

      @Nonnull public String getFilename()
      Filename
      Returns:
      filename
    • setFilename

      public void setFilename(@Nonnull String filename)
    • 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