/* * 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 patterns to look for in the JSON body. WAF inspects the results of these pattern /// matches against the rule inspection criteria. This is used with the FieldToMatch /// option JsonBody. /// public partial class JsonMatchPattern { private All _all; private List _includedPaths = new List(); /// /// Gets and sets the property All. /// /// Match all of the elements. See also MatchScope in JsonBody. /// /// /// /// You must specify either this setting or the IncludedPaths setting, but /// not both. /// /// public All All { get { return this._all; } set { this._all = value; } } // Check to see if All property is set internal bool IsSetAll() { return this._all != null; } /// /// Gets and sets the property IncludedPaths. /// /// Match only the specified include paths. See also MatchScope in JsonBody. /// /// /// /// /// Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": /// ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the /// Internet Engineering Task Force (IETF) documentation JavaScript /// Object Notation (JSON) Pointer. /// /// /// /// You must specify either this setting or the All setting, but not both. /// /// /// /// Don't use this option to include all paths. Instead, use the All setting. /// /// /// /// [AWSProperty(Min=1)] public List IncludedPaths { get { return this._includedPaths; } set { this._includedPaths = value; } } // Check to see if IncludedPaths property is set internal bool IsSetIncludedPaths() { return this._includedPaths != null && this._includedPaths.Count > 0; } } }