/* * 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 dms-2016-01-01.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.DatabaseMigrationService.Model { /// /// Describes an event notification subscription created by the CreateEventSubscription /// operation. /// public partial class EventSubscription { private string _customerAwsId; private string _custSubscriptionId; private bool? _enabled; private List _eventCategoriesList = new List(); private string _snsTopicArn; private List _sourceIdsList = new List(); private string _sourceType; private string _status; private string _subscriptionCreationTime; /// /// Gets and sets the property CustomerAwsId. /// /// The Amazon Web Services customer account associated with the DMS event notification /// subscription. /// /// public string CustomerAwsId { get { return this._customerAwsId; } set { this._customerAwsId = value; } } // Check to see if CustomerAwsId property is set internal bool IsSetCustomerAwsId() { return this._customerAwsId != null; } /// /// Gets and sets the property CustSubscriptionId. /// /// The DMS event notification subscription Id. /// /// public string CustSubscriptionId { get { return this._custSubscriptionId; } set { this._custSubscriptionId = value; } } // Check to see if CustSubscriptionId property is set internal bool IsSetCustSubscriptionId() { return this._custSubscriptionId != null; } /// /// Gets and sets the property Enabled. /// /// Boolean value that indicates if the event subscription is enabled. /// /// 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 EventCategoriesList. /// /// A lists of event categories. /// /// public List EventCategoriesList { get { return this._eventCategoriesList; } set { this._eventCategoriesList = value; } } // Check to see if EventCategoriesList property is set internal bool IsSetEventCategoriesList() { return this._eventCategoriesList != null && this._eventCategoriesList.Count > 0; } /// /// Gets and sets the property SnsTopicArn. /// /// The topic ARN of the DMS event notification subscription. /// /// public string SnsTopicArn { get { return this._snsTopicArn; } set { this._snsTopicArn = value; } } // Check to see if SnsTopicArn property is set internal bool IsSetSnsTopicArn() { return this._snsTopicArn != null; } /// /// Gets and sets the property SourceIdsList. /// /// A list of source Ids for the event subscription. /// /// public List SourceIdsList { get { return this._sourceIdsList; } set { this._sourceIdsList = value; } } // Check to see if SourceIdsList property is set internal bool IsSetSourceIdsList() { return this._sourceIdsList != null && this._sourceIdsList.Count > 0; } /// /// Gets and sets the property SourceType. /// /// The type of DMS resource that generates events. /// /// /// /// Valid values: replication-instance | replication-server | security-group | replication-task /// /// public string SourceType { get { return this._sourceType; } set { this._sourceType = value; } } // Check to see if SourceType property is set internal bool IsSetSourceType() { return this._sourceType != null; } /// /// Gets and sets the property Status. /// /// The status of the DMS event notification subscription. /// /// /// /// Constraints: /// /// /// /// Can be one of the following: creating | modifying | deleting | active | no-permission /// | topic-not-exist /// /// /// /// The status "no-permission" indicates that DMS no longer has permission to post to /// the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after /// the subscription was created. /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property SubscriptionCreationTime. /// /// The time the DMS event notification subscription was created. /// /// public string SubscriptionCreationTime { get { return this._subscriptionCreationTime; } set { this._subscriptionCreationTime = value; } } // Check to see if SubscriptionCreationTime property is set internal bool IsSetSubscriptionCreationTime() { return this._subscriptionCreationTime != null; } } }