/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simpleemail.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Message-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES * receives on your behalf bounces. *
** For information about receiving email through Amazon SES, see the Amazon SES Developer Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MessageDsn implements Serializable, Cloneable { /** *
* The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value
* is dns; inbound-smtp.[region].amazonaws.com
.
*
* When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. *
*/ private java.util.Date arrivalDate; /** ** Additional X-headers to include in the DSN. *
*/ private com.amazonaws.internal.SdkInternalList
* The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value
* is dns; inbound-smtp.[region].amazonaws.com
.
*
mta-name-type; mta-name
). The
* default value is dns; inbound-smtp.[region].amazonaws.com
.
*/
public void setReportingMta(String reportingMta) {
this.reportingMta = reportingMta;
}
/**
*
* The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value
* is dns; inbound-smtp.[region].amazonaws.com
.
*
mta-name-type; mta-name
). The
* default value is dns; inbound-smtp.[region].amazonaws.com
.
*/
public String getReportingMta() {
return this.reportingMta;
}
/**
*
* The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value
* is dns; inbound-smtp.[region].amazonaws.com
.
*
mta-name-type; mta-name
). The
* default value is dns; inbound-smtp.[region].amazonaws.com
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MessageDsn withReportingMta(String reportingMta) {
setReportingMta(reportingMta);
return this;
}
/**
* * When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. *
* * @param arrivalDate * When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. */ public void setArrivalDate(java.util.Date arrivalDate) { this.arrivalDate = arrivalDate; } /** ** When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. *
* * @return When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. */ public java.util.Date getArrivalDate() { return this.arrivalDate; } /** ** When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. *
* * @param arrivalDate * When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageDsn withArrivalDate(java.util.Date arrivalDate) { setArrivalDate(arrivalDate); return this; } /** ** Additional X-headers to include in the DSN. *
* * @return Additional X-headers to include in the DSN. */ public java.util.List* Additional X-headers to include in the DSN. *
* * @param extensionFields * Additional X-headers to include in the DSN. */ public void setExtensionFields(java.util.Collection* Additional X-headers to include in the DSN. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExtensionFields(java.util.Collection)} or {@link #withExtensionFields(java.util.Collection)} if you * want to override the existing values. *
* * @param extensionFields * Additional X-headers to include in the DSN. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageDsn withExtensionFields(ExtensionField... extensionFields) { if (this.extensionFields == null) { setExtensionFields(new com.amazonaws.internal.SdkInternalList* Additional X-headers to include in the DSN. *
* * @param extensionFields * Additional X-headers to include in the DSN. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageDsn withExtensionFields(java.util.Collection