/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Details about an Amazon RDS event notification subscription. The subscription allows /// Amazon RDS to post events to an SNS topic. /// public partial class AwsRdsEventSubscriptionDetails { private string _customerAwsId; private string _custSubscriptionId; private bool? _enabled; private List _eventCategoriesList = new List(); private string _eventSubscriptionArn; private string _snsTopicArn; private List _sourceIdsList = new List(); private string _sourceType; private string _status; private string _subscriptionCreationTime; /// /// Gets and sets the property CustomerAwsId. /// /// The identifier of the 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 identifier of the account that is associated with the event notification subscription. /// /// 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. /// /// Whether the event notification 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 event categories for the event notification subscription. /// /// 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 EventSubscriptionArn. /// /// The ARN of the event notification subscription. /// /// public string EventSubscriptionArn { get { return this._eventSubscriptionArn; } set { this._eventSubscriptionArn = value; } } // Check to see if EventSubscriptionArn property is set internal bool IsSetEventSubscriptionArn() { return this._eventSubscriptionArn != null; } /// /// Gets and sets the property SnsTopicArn. /// /// The ARN of the SNS topic to post the event notifications to. /// /// 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 identifiers for the 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 for the event notification subscription. /// /// 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 event notification subscription. /// /// /// /// Valid values: creating | modifying | deleting /// | active | no-permission | topic-not-exist /// /// /// 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 datetime when the event notification subscription was created. /// /// /// /// Uses the date-time format specified in RFC /// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, /// and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z. /// /// 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; } } }