/*
* Copyright 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 sms-voice-2018-09-05.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.PinpointSMSVoice.Model
{
///
/// An object that defines a single event destination.
///
public partial class EventDestinationDefinition
{
private CloudWatchLogsDestination _cloudWatchLogsDestination;
private bool? _enabled;
private KinesisFirehoseDestination _kinesisFirehoseDestination;
private List _matchingEventTypes = new List();
private SnsDestination _snsDestination;
///
/// Gets and sets the property CloudWatchLogsDestination.
///
public CloudWatchLogsDestination CloudWatchLogsDestination
{
get { return this._cloudWatchLogsDestination; }
set { this._cloudWatchLogsDestination = value; }
}
// Check to see if CloudWatchLogsDestination property is set
internal bool IsSetCloudWatchLogsDestination()
{
return this._cloudWatchLogsDestination != null;
}
///
/// Gets and sets the property Enabled. Indicates whether or not the event destination
/// is enabled. If the event destination is enabled, then Amazon Pinpoint sends response
/// data to the specified event destination.
///
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.
///
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.
///
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 SnsDestination.
///
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;
}
}
}