/* * 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 codestar-notifications-2019-10-15.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.CodeStarNotifications.Model { /// /// Container for the parameters to the UpdateNotificationRule operation. /// Updates a notification rule for a resource. You can change the events that trigger /// the notification rule, the status of the rule, and the targets that receive the notifications. /// /// /// /// To add or remove tags for a notification rule, you must use TagResource and /// UntagResource. /// /// /// public partial class UpdateNotificationRuleRequest : AmazonCodeStarNotificationsRequest { private string _arn; private DetailType _detailType; private List _eventTypeIds = new List(); private string _name; private NotificationRuleStatus _status; private List _targets = new List(); /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the notification rule. /// /// [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property DetailType. /// /// The level of detail to include in the notifications for this resource. BASIC will /// include only the contents of the event as it would appear in Amazon CloudWatch. FULL /// will include any supplemental information provided by AWS CodeStar Notifications and/or /// the service for the resource for which the notification is created. /// /// public DetailType DetailType { get { return this._detailType; } set { this._detailType = value; } } // Check to see if DetailType property is set internal bool IsSetDetailType() { return this._detailType != null; } /// /// Gets and sets the property EventTypeIds. /// /// A list of event types associated with this notification rule. For a complete list /// of event types and IDs, see Notification /// concepts in the Developer Tools Console User Guide. /// /// public List EventTypeIds { get { return this._eventTypeIds; } set { this._eventTypeIds = value; } } // Check to see if EventTypeIds property is set internal bool IsSetEventTypeIds() { return this._eventTypeIds != null && this._eventTypeIds.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the notification rule. /// /// [AWSProperty(Sensitive=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Status. /// /// The status of the notification rule. Valid statuses include enabled (sending notifications) /// or disabled (not sending notifications). /// /// public NotificationRuleStatus 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 Targets. /// /// The address and type of the targets to receive notifications from this notification /// rule. /// /// [AWSProperty(Max=10)] public List Targets { get { return this._targets; } set { this._targets = value; } } // Check to see if Targets property is set internal bool IsSetTargets() { return this._targets != null && this._targets.Count > 0; } } }