/* * 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 to match against labels that have been added to the web request by /// rules that have already run in the web ACL. /// /// /// /// The label match statement provides the label or namespace string to search for. The /// label string can represent a part or all of the fully qualified label name that had /// been added to the web request. Fully qualified labels have a prefix, optional namespaces, /// and label name. The prefix identifies the rule group or web ACL context of the rule /// that added the label. If you do not provide the fully qualified name in your label /// match string, WAF performs the search for labels that were added in the same context /// as the label match statement. /// /// public partial class LabelMatchStatement { private string _key; private LabelMatchScope _scope; /// /// Gets and sets the property Key. /// /// The string to match against. The setting you provide for this depends on the match /// statement's Scope setting: /// /// /// /// Labels are case sensitive and components of a label must be separated by colon, for /// example NS1:NS2:name. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// /// Gets and sets the property Scope. /// /// Specify whether you want to match using the label name or just the namespace. /// /// [AWSProperty(Required=true)] public LabelMatchScope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } } }