/* * 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 frauddetector-2019-11-15.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.FraudDetector.Model { /// /// The details of the rule used for evaluating variable values. /// public partial class EvaluatedRule { private bool? _evaluated; private string _expression; private string _expressionWithValues; private bool? _matched; private List _outcomes = new List(); private string _ruleId; private string _ruleVersion; /// /// Gets and sets the property Evaluated. /// /// Indicates whether the rule was evaluated. /// /// public bool Evaluated { get { return this._evaluated.GetValueOrDefault(); } set { this._evaluated = value; } } // Check to see if Evaluated property is set internal bool IsSetEvaluated() { return this._evaluated.HasValue; } /// /// Gets and sets the property Expression. /// /// The rule expression. /// /// [AWSProperty(Sensitive=true)] public string Expression { get { return this._expression; } set { this._expression = value; } } // Check to see if Expression property is set internal bool IsSetExpression() { return this._expression != null; } /// /// Gets and sets the property ExpressionWithValues. /// /// The rule expression value. /// /// [AWSProperty(Sensitive=true)] public string ExpressionWithValues { get { return this._expressionWithValues; } set { this._expressionWithValues = value; } } // Check to see if ExpressionWithValues property is set internal bool IsSetExpressionWithValues() { return this._expressionWithValues != null; } /// /// Gets and sets the property Matched. /// /// Indicates whether the rule matched. /// /// public bool Matched { get { return this._matched.GetValueOrDefault(); } set { this._matched = value; } } // Check to see if Matched property is set internal bool IsSetMatched() { return this._matched.HasValue; } /// /// Gets and sets the property Outcomes. /// /// The rule outcome. /// /// public List Outcomes { get { return this._outcomes; } set { this._outcomes = value; } } // Check to see if Outcomes property is set internal bool IsSetOutcomes() { return this._outcomes != null && this._outcomes.Count > 0; } /// /// Gets and sets the property RuleId. /// /// The rule ID. /// /// [AWSProperty(Min=1, Max=64)] public string RuleId { get { return this._ruleId; } set { this._ruleId = value; } } // Check to see if RuleId property is set internal bool IsSetRuleId() { return this._ruleId != null; } /// /// Gets and sets the property RuleVersion. /// /// The rule version. /// /// [AWSProperty(Min=1, Max=5)] public string RuleVersion { get { return this._ruleVersion; } set { this._ruleVersion = value; } } // Check to see if RuleVersion property is set internal bool IsSetRuleVersion() { return this._ruleVersion != null; } } }