/*
* 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
{
///
/// Contains information about the event destination that the specified email sending
/// events will be published to.
///
///
///
/// When you create or update an event destination, you must provide one, and only one,
/// destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or
/// Amazon Simple Notification Service (Amazon SNS).
///
///
///
/// Event destinations are associated with configuration sets, which enable you to publish
/// email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple
/// Notification Service (Amazon SNS). For information about using configuration sets,
/// see the Amazon
/// SES Developer Guide.
///
///
public partial class EventDestination
{
private CloudWatchDestination _cloudWatchDestination;
private bool? _enabled;
private KinesisFirehoseDestination _kinesisFirehoseDestination;
private List _matchingEventTypes = new List();
private string _name;
private SNSDestination _snsDestination;
///
/// Gets and sets the property CloudWatchDestination.
///
/// An object that contains the names, default values, and sources of the dimensions associated
/// with an Amazon CloudWatch event destination.
///
///
public CloudWatchDestination CloudWatchDestination
{
get { return this._cloudWatchDestination; }
set { this._cloudWatchDestination = value; }
}
// Check to see if CloudWatchDestination property is set
internal bool IsSetCloudWatchDestination()
{
return this._cloudWatchDestination != null;
}
///
/// Gets and sets the property Enabled.
///
/// Sets whether Amazon SES publishes events to this destination when you send an email
/// with the associated configuration set. Set to true
to enable publishing
/// to this destination; set to false
to prevent publishing to this destination.
/// The default value is false
.
///
///
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
///
/// Gets and sets the property KinesisFirehoseDestination.
///
/// An object that contains the delivery stream ARN and the IAM role ARN associated with
/// an Amazon Kinesis Firehose event destination.
///
///
public KinesisFirehoseDestination KinesisFirehoseDestination
{
get { return this._kinesisFirehoseDestination; }
set { this._kinesisFirehoseDestination = value; }
}
// Check to see if KinesisFirehoseDestination property is set
internal bool IsSetKinesisFirehoseDestination()
{
return this._kinesisFirehoseDestination != null;
}
///
/// Gets and sets the property MatchingEventTypes.
///
/// The type of email sending events to publish to the event destination.
///
///
[AWSProperty(Required=true)]
public List MatchingEventTypes
{
get { return this._matchingEventTypes; }
set { this._matchingEventTypes = value; }
}
// Check to see if MatchingEventTypes property is set
internal bool IsSetMatchingEventTypes()
{
return this._matchingEventTypes != null && this._matchingEventTypes.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the event destination. The name must:
///
/// -
///
/// This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_),
/// or dashes (-).
///
///
-
///
/// Contain less than 64 characters.
///
///
///
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property SNSDestination.
///
/// An object that contains the topic ARN associated with an Amazon Simple Notification
/// Service (Amazon SNS) event destination.
///
///
public SNSDestination SNSDestination
{
get { return this._snsDestination; }
set { this._snsDestination = value; }
}
// Check to see if SNSDestination property is set
internal bool IsSetSNSDestination()
{
return this._snsDestination != null;
}
}
}