/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// The rules and actions for the rule group. /// public partial class RuleGroupSource { private RuleGroupSourceListDetails _rulesSourceList; private string _rulesString; private List _statefulRules = new List(); private RuleGroupSourceStatelessRulesAndCustomActionsDetails _statelessRulesAndCustomActions; /// /// Gets and sets the property RulesSourceList. /// /// Stateful inspection criteria for a domain list rule group. A domain list rule group /// determines access by specific protocols to specific domains. /// /// public RuleGroupSourceListDetails RulesSourceList { get { return this._rulesSourceList; } set { this._rulesSourceList = value; } } // Check to see if RulesSourceList property is set internal bool IsSetRulesSourceList() { return this._rulesSourceList != null; } /// /// Gets and sets the property RulesString. /// /// Stateful inspection criteria, provided in Suricata compatible intrusion prevention /// system (IPS) rules. /// /// public string RulesString { get { return this._rulesString; } set { this._rulesString = value; } } // Check to see if RulesString property is set internal bool IsSetRulesString() { return this._rulesString != null; } /// /// Gets and sets the property StatefulRules. /// /// Suricata rule specifications. /// /// public List StatefulRules { get { return this._statefulRules; } set { this._statefulRules = value; } } // Check to see if StatefulRules property is set internal bool IsSetStatefulRules() { return this._statefulRules != null && this._statefulRules.Count > 0; } /// /// Gets and sets the property StatelessRulesAndCustomActions. /// /// The stateless rules and custom actions used by a stateless rule group. /// /// public RuleGroupSourceStatelessRulesAndCustomActionsDetails StatelessRulesAndCustomActions { get { return this._statelessRulesAndCustomActions; } set { this._statelessRulesAndCustomActions = value; } } // Check to see if StatelessRulesAndCustomActions property is set internal bool IsSetStatelessRulesAndCustomActions() { return this._statelessRulesAndCustomActions != null; } } }