/*
* 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
{
///
/// The action to use in the place of the action that results from the rule group evaluation.
/// Set the override action to none to leave the result of the rule group alone. Set it
/// to count to override the result to count only.
///
///
///
/// You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement
/// and ManagedRuleGroupStatement
.
///
///
///
/// This option is usually set to none. It does not affect how the rules in the rule group
/// are evaluated. If you want the rules in the rule group to only count matches, do not
/// use this and instead use the rule action override option, with Count
/// action, in your rule group reference statement settings.
///
///
///
public partial class OverrideAction
{
private CountAction _count;
private NoneAction _none;
///
/// Gets and sets the property Count.
///
/// Override the rule group evaluation result to count only.
///
///
///
/// This option is usually set to none. It does not affect how the rules in the rule group
/// are evaluated. If you want the rules in the rule group to only count matches, do not
/// use this and instead use the rule action override option, with Count
/// action, in your rule group reference statement settings.
///
///
///
public CountAction Count
{
get { return this._count; }
set { this._count = value; }
}
// Check to see if Count property is set
internal bool IsSetCount()
{
return this._count != null;
}
///
/// Gets and sets the property None.
///
/// Don't override the rule group evaluation result. This is the most common setting.
///
///
public NoneAction None
{
get { return this._none; }
set { this._none = value; }
}
// Check to see if None property is set
internal bool IsSetNone()
{
return this._none != null;
}
}
}