/* * 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 { /// /// Configures inspection of the response header. This is part of the ResponseInspection /// configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet. /// /// /// /// /// Response inspection is available only in web ACLs that protect Amazon CloudFront distributions. /// /// /// public partial class ResponseInspectionHeader { private List _failureValues = new List(); private string _name; private List _successValues = new List(); /// /// Gets and sets the property FailureValues. /// /// Values in the response header with the specified name that indicate a failed login /// or account creation attempt. To be counted as a failure, the value must be an exact /// match, including case. Each value must be unique among the success and failure values. /// /// /// /// /// JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and /// "FailureValues": [ "AccountCreationFailed" ] /// /// [AWSProperty(Required=true, Min=1, Max=3)] public List FailureValues { get { return this._failureValues; } set { this._failureValues = value; } } // Check to see if FailureValues property is set internal bool IsSetFailureValues() { return this._failureValues != null && this._failureValues.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the header to match against. The name must be an exact match, including /// case. /// /// /// /// JSON example: "Name": [ "RequestResult" ] /// /// [AWSProperty(Required=true, Min=1, Max=200)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property SuccessValues. /// /// Values in the response header with the specified name that indicate a successful login /// or account creation attempt. To be counted as a success, the value must be an exact /// match, including case. Each value must be unique among the success and failure values. /// /// /// /// /// JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] /// and "SuccessValues": [ "AccountCreated", "Successful account creation" ] /// /// /// [AWSProperty(Required=true, Min=1, Max=3)] public List SuccessValues { get { return this._successValues; } set { this._successValues = value; } } // Check to see if SuccessValues property is set internal bool IsSetSuccessValues() { return this._successValues != null && this._successValues.Count > 0; } } }