/* * 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 codeguruprofiler-2019-07-18.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.CodeGuruProfiler.Model { /// /// Notification medium for users to get alerted for events that occur in application /// profile. We support SNS topic as a notification channel. /// public partial class Channel { private List _eventPublishers = new List(); private string _id; private string _uri; /// /// Gets and sets the property EventPublishers. /// /// List of publishers for different type of events that may be detected in an application /// from the profile. Anomaly detection is the only event publisher in Profiler. /// /// [AWSProperty(Required=true, Min=1, Max=1)] public List EventPublishers { get { return this._eventPublishers; } set { this._eventPublishers = value; } } // Check to see if EventPublishers property is set internal bool IsSetEventPublishers() { return this._eventPublishers != null && this._eventPublishers.Count > 0; } /// /// Gets and sets the property Id. /// /// Unique identifier for each Channel in the notification configuration /// of a Profiling Group. A random UUID for channelId is used when adding a channel to /// the notification configuration if not specified in the request. /// /// public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property Uri. /// /// Unique arn of the resource to be used for notifications. We support a valid SNS topic /// arn as a channel uri. /// /// [AWSProperty(Required=true)] public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }