com.sparkpost.model.webhook.event.RelayTemporaryFailureEvent Maven / Gradle / Ivy
The newest version!
package com.sparkpost.model.webhook.event;
import com.google.gson.annotations.SerializedName;
import com.sparkpost.model.Base;
import com.yepher.jsondoc.annotations.Description;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
Remote HTTP Endpoint has failed to accept a relayed message.
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class RelayTemporaryFailureEvent extends Base {
@Description(
value = "Canonicalized text of the response returned by the remote server due to a failed delivery attempt",
sample = "MAIL REFUSED - IP (a.b.c.d) is in black list")
private String reason;
@SerializedName("ip_pool")
@Description(
value = "IP pool through which this message was sent",
sample = "example-ip-pool")
private String ipPool;
@SerializedName("message_id")
@Description(
value = "SparkPost-cluster-wide unique identifier for this message",
sample = "000443ee14578172be22")
private String messageId;
@Description(
value = "Type of event this record describes",
sample = "relay_tempfail")
private String type;
@SerializedName("num_retries")
@Description(
value = "Number of failed attempts before this message was successfully delivered; when the first attempt succeeds, zero",
sample = "2")
private String numRetries;
@SerializedName("raw_rcpt_to")
@Description(
value = "Actual recipient address used on this message's SMTP envelope",
sample = "[email protected]")
private String rawRcptTo;
@SerializedName("queue_time")
@Description(
value = "Delay, expressed in milliseconds, between this message's injection into SparkPost and its delivery to the receiving domain; that is, the length of time this message spent in the outgoing queue",
sample = "12")
private String queueTime;
@SerializedName("msg_from")
@Description(
value = "Sender address used on this message's SMTP envelope",
sample = "[email protected]")
private String msgFrom;
@SerializedName("recv_method")
@Description(
value = "Protocol by which SparkPost received this message",
sample = "esmtp")
private String recvMethod;
@SerializedName("event_id")
@Description(
value = "Unique event identifier",
sample = "92356927693813856")
private String eventId;
@SerializedName("rcpt_to")
@Description(
value = "Lowercase version of recipient address used on this message's SMTP envelope",
sample = "[email protected]")
private String rcptTo;
@SerializedName("routing_domain")
@Description(
value = "Domain receiving this message",
sample = "example.com")
private String routingDomain;
@SerializedName("sending_ip")
@Description(
value = "IP address through which this message was sent",
sample = "127.0.0.1")
private String sendingIp;
@Description(
value = "Source of the event",
sample = "inbound")
private String origination;
@SerializedName("raw_reason")
@Description(
value = "Unmodified, exact response returned by the remote server due to a failed delivery attempt",
sample = "MAIL REFUSED - IP (17.99.99.99) is in black list")
private String rawReason;
@SerializedName("subaccount_id")
@Description(
value = "Unique subaccount identifier.",
sample = "101")
private String subaccountId;
@SerializedName("error_code")
@Description(
value = "Error code by which the remote server described a failed delivery attempt",
sample = "554")
private String errorCode;
@SerializedName("delv_method")
@Description(
value = "Protocol by which SparkPost delivered this message",
sample = "esmtp")
private String delvMethod;
@SerializedName("customer_id")
@Description(
value = "SparkPost-customer identifier through which this message was sent",
sample = "1")
private String customerId;
@SerializedName("rcpt_hash")
@Description(
value = "Hashed version of recipient address used on this message's SMTP envelope",
sample = "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed")
private String rcptHash;
@SerializedName("injection_time")
@Description(
value = "Time at which this message was injected into SparkPost",
sample = "2016-04-18T14:25:07.000Z")
private String injectionTime;
@Description(
value = "Event date and time, in Unix timestamp format (integer seconds since 00:00:00 GMT 1970-01-01)",
sample = "1460989507")
private String timestamp;
@SerializedName("relay_id")
@Description(
value = "Unique identifier of the Relay Webhook associated with this message (uuid)",
sample = "123-456-789")
private String relayId;
}