/*
* Copyright 2010-2014 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.
*/
/*
* Do not modify this file. This file is generated from the email-2010-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SimpleEmail.Model
{
///
/// Container for the parameters to the SendBounce operation.
/// Generates and sends a bounce message to the sender of an email you received through
/// Amazon SES. You can only use this API on an email up to 24 hours after you receive
/// it.
///
///
///
/// You cannot use this API to send generic bounces for mail that was not received by
/// Amazon SES.
///
///
///
/// For information about receiving email through Amazon SES, see the Amazon
/// SES Developer Guide.
///
///
///
/// You can execute this operation no more than once per second.
///
///
public partial class SendBounceRequest : AmazonSimpleEmailServiceRequest
{
private List _bouncedRecipientInfoList = new List();
private string _bounceSender;
private string _bounceSenderArn;
private string _explanation;
private MessageDsn _messageDsn;
private string _originalMessageId;
///
/// Gets and sets the property BouncedRecipientInfoList.
///
/// A list of recipients of the bounced message, including the information required to
/// create the Delivery Status Notifications (DSNs) for the recipients. You must specify
/// at least one BouncedRecipientInfo
in the list.
///
///
[AWSProperty(Required=true)]
public List BouncedRecipientInfoList
{
get { return this._bouncedRecipientInfoList; }
set { this._bouncedRecipientInfoList = value; }
}
// Check to see if BouncedRecipientInfoList property is set
internal bool IsSetBouncedRecipientInfoList()
{
return this._bouncedRecipientInfoList != null && this._bouncedRecipientInfoList.Count > 0;
}
///
/// Gets and sets the property BounceSender.
///
/// The address to use in the "From" header of the bounce message. This must be an identity
/// that you have verified with Amazon SES.
///
///
[AWSProperty(Required=true)]
public string BounceSender
{
get { return this._bounceSender; }
set { this._bounceSender = value; }
}
// Check to see if BounceSender property is set
internal bool IsSetBounceSender()
{
return this._bounceSender != null;
}
///
/// Gets and sets the property BounceSenderArn.
///
/// This parameter is used only for sending authorization. It is the ARN of the identity
/// that is associated with the sending authorization policy that permits you to use the
/// address in the "From" header of the bounce. For more information about sending authorization,
/// see the Amazon
/// SES Developer Guide.
///
///
public string BounceSenderArn
{
get { return this._bounceSenderArn; }
set { this._bounceSenderArn = value; }
}
// Check to see if BounceSenderArn property is set
internal bool IsSetBounceSenderArn()
{
return this._bounceSenderArn != null;
}
///
/// Gets and sets the property Explanation.
///
/// Human-readable text for the bounce message to explain the failure. If not specified,
/// the text will be auto-generated based on the bounced recipient information.
///
///
public string Explanation
{
get { return this._explanation; }
set { this._explanation = value; }
}
// Check to see if Explanation property is set
internal bool IsSetExplanation()
{
return this._explanation != null;
}
///
/// Gets and sets the property MessageDsn.
///
/// Message-related DSN fields. If not specified, Amazon SES will choose the values.
///
///
public MessageDsn MessageDsn
{
get { return this._messageDsn; }
set { this._messageDsn = value; }
}
// Check to see if MessageDsn property is set
internal bool IsSetMessageDsn()
{
return this._messageDsn != null;
}
///
/// Gets and sets the property OriginalMessageId.
///
/// The message ID of the message to be bounced.
///
///
[AWSProperty(Required=true)]
public string OriginalMessageId
{
get { return this._originalMessageId; }
set { this._originalMessageId = value; }
}
// Check to see if OriginalMessageId property is set
internal bool IsSetOriginalMessageId()
{
return this._originalMessageId != null;
}
}
}