/* * 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 redshift-2012-12-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.Redshift.Model { /// /// Describes event subscriptions. /// public partial class EventSubscription { private string _customerAwsId; private string _custSubscriptionId; private bool? _enabled; private List _eventCategoriesList = new List(); private string _severity; private string _snsTopicArn; private List _sourceIdsList = new List(); private string _sourceType; private string _status; private DateTime? _subscriptionCreationTime; private List _tags = new List(); /// /// Gets and sets the property CustomerAwsId. /// /// The Amazon Web Services account associated with the Amazon Redshift event notification /// subscription. /// /// [AWSProperty(Max=2147483647)] 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 name of the Amazon Redshift event notification subscription. /// /// [AWSProperty(Max=2147483647)] 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. /// /// A boolean value indicating whether the subscription is enabled; true /// indicates that the 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. /// /// The list of Amazon Redshift event categories specified in the event notification subscription. /// /// /// /// Values: Configuration, Management, Monitoring, Security, Pending /// /// 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 Severity. /// /// The event severity specified in the Amazon Redshift event notification subscription. /// /// /// /// Values: ERROR, INFO /// /// [AWSProperty(Max=2147483647)] public string Severity { get { return this._severity; } set { this._severity = value; } } // Check to see if Severity property is set internal bool IsSetSeverity() { return this._severity != null; } /// /// Gets and sets the property SnsTopicArn. /// /// The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification /// subscription. /// /// [AWSProperty(Max=2147483647)] 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 the sources that publish events to the Amazon Redshift event notification /// 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 source type of the events returned by the Amazon Redshift event notification, /// such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, /// or scheduled-action. /// /// [AWSProperty(Max=2147483647)] 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 Amazon Redshift event notification subscription. /// /// /// /// Constraints: /// ///
  • /// /// Can be one of the following: active | no-permission | topic-not-exist /// ///
  • /// /// The status "no-permission" indicates that Amazon Redshift no longer has permission /// to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic /// was deleted after the subscription was created. /// ///
///
[AWSProperty(Max=2147483647)] 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 date and time the Amazon Redshift event notification subscription was created. /// /// public DateTime SubscriptionCreationTime { get { return this._subscriptionCreationTime.GetValueOrDefault(); } set { this._subscriptionCreationTime = value; } } // Check to see if SubscriptionCreationTime property is set internal bool IsSetSubscriptionCreationTime() { return this._subscriptionCreationTime.HasValue; } /// /// Gets and sets the property Tags. /// /// The list of tags for the event subscription. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }