/*
 * 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 wafv2-2019-07-29.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.WAFV2.Model
{
    /// 
    /// A rule statement used to run the rules that are defined in a RuleGroup. To
    /// use this, create a rule group with your rules, then provide the ARN of the rule group
    /// in this statement.
    /// 
    ///  
    /// 
    /// You cannot nest a RuleGroupReferenceStatement, for example for use inside
    /// a NotStatement or OrStatement. You can only use a rule group
    /// reference statement at the top level inside a web ACL. 
    /// 
    /// 
    public partial class RuleGroupReferenceStatement
    {
        private string _arn;
        private List _excludedRules = new List();
        private List _ruleActionOverrides = new List();
        /// 
        /// Gets and sets the property ARN. 
        /// 
        /// The Amazon Resource Name (ARN) of the entity.
        /// 
        /// 
        [AWSProperty(Required=true, Min=20, Max=2048)]
        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 ExcludedRules. 
        /// 
        /// Rules in the referenced rule group whose actions are set to Count. 
        /// 
        ///   
        /// 
        /// Instead of this option, use RuleActionOverrides. It accepts any valid
        /// action setting, including Count.
        /// 
        ///  
        /// 
        [AWSProperty(Max=100)]
        public List ExcludedRules
        {
            get { return this._excludedRules; }
            set { this._excludedRules = value; }
        }
        // Check to see if ExcludedRules property is set
        internal bool IsSetExcludedRules()
        {
            return this._excludedRules != null && this._excludedRules.Count > 0; 
        }
        /// 
        /// Gets and sets the property RuleActionOverrides. 
        /// 
        /// Action settings to use in the place of the rule actions that are configured inside
        /// the rule group. You specify one override for each rule whose action you want to change.
        /// 
        /// 
        ///  
        /// 
        /// You can use overrides for testing, for example you can override all of rule actions
        /// to Count and then monitor the resulting count metrics to understand how
        /// the rule group would handle your web traffic. You can also permanently override some
        /// or all actions, to modify how the rule group manages your web traffic.
        /// 
        /// 
        [AWSProperty(Min=1, Max=100)]
        public List RuleActionOverrides
        {
            get { return this._ruleActionOverrides; }
            set { this._ruleActionOverrides = value; }
        }
        // Check to see if RuleActionOverrides property is set
        internal bool IsSetRuleActionOverrides()
        {
            return this._ruleActionOverrides != null && this._ruleActionOverrides.Count > 0; 
        }
    }
}