com.mailgun.model.message.StoreMessageResponse Maven / Gradle / Ivy
Show all versions of mailgun-java Show documentation
package com.mailgun.model.message;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
/**
*
* The object returned from a stored message url.
*
*
* @see Retrieving Stored Messages
*/
@Value
@Jacksonized
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class StoreMessageResponse {
/**
*
* Recipient of the message as reported by MAIL TO during SMTP chat.
*
*/
String recipients;
/**
*
* Email address from To
header.
*
*/
@JsonProperty("To")
String to;
/**
*
* Sender of the message as reported by MAIL FROM during SMTP chat. Note: this value may differ from From MIME header.
*
*/
String sender;
/**
*
* Sender of the message as reported by From message header, for example “Bob Lee ”.
*
*/
@JsonProperty("From")
String from;
/**
*
* Subject string.
*
*/
String subject;
/**
*
* text version of the email. This field is always present. If the incoming message only has HTML body, Mailgun will create a text representation for you.
*
*/
@JsonProperty("body-plain")
String bodyPlain;
/**
*
* Text version of the message without quoted parts and signature block (if found).
*
*/
@JsonProperty("stripped-text")
String strippedText;
/**
*
* The signature block stripped from the plain text message (if found).
*
*/
@JsonProperty("stripped-signature")
String strippedSignature;
/**
*
* HTML version of the message, without quoted parts.
*
*/
@JsonProperty("stripped-html")
String strippedHtml;
/**
*
* Message id.
*
*/
@JsonProperty("Message-Id")
String messageId;
/**
*
* List of {@link StoreMessageAttachments}.
*
*/
List attachments;
/**
*
* List of headers.
*
*/
@JsonProperty("message-headers")
List> headers;
/**
*
* Content type.
*
*/
@JsonProperty("Content-Type")
String contentType;
/**
*
* Mime-Version.
*
*/
@JsonProperty("Mime-Version")
String mimeVersion;
}