/* * 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 accessanalyzer-2019-11-01.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.AccessAnalyzer.Model { /// /// The criteria to use in the filter that defines the archive rule. For more information /// on available filter keys, see IAM /// Access Analyzer filter keys. /// public partial class Criterion { private List _contains = new List(); private List _eq = new List(); private bool? _exists; private List _neq = new List(); /// /// Gets and sets the property Contains. /// /// A "contains" operator to match for the filter used to create the rule. /// /// [AWSProperty(Min=1, Max=20)] public List Contains { get { return this._contains; } set { this._contains = value; } } // Check to see if Contains property is set internal bool IsSetContains() { return this._contains != null && this._contains.Count > 0; } /// /// Gets and sets the property Eq. /// /// An "equals" operator to match for the filter used to create the rule. /// /// [AWSProperty(Min=1, Max=20)] public List Eq { get { return this._eq; } set { this._eq = value; } } // Check to see if Eq property is set internal bool IsSetEq() { return this._eq != null && this._eq.Count > 0; } /// /// Gets and sets the property Exists. /// /// An "exists" operator to match for the filter used to create the rule. /// /// public bool Exists { get { return this._exists.GetValueOrDefault(); } set { this._exists = value; } } // Check to see if Exists property is set internal bool IsSetExists() { return this._exists.HasValue; } /// /// Gets and sets the property Neq. /// /// A "not equals" operator to match for the filter used to create the rule. /// /// [AWSProperty(Min=1, Max=20)] public List Neq { get { return this._neq; } set { this._neq = value; } } // Check to see if Neq property is set internal bool IsSetNeq() { return this._neq != null && this._neq.Count > 0; } } }