/*
* 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 JSON. WAF can inspect the first 65,536 bytes
/// (64 KB) of the response JSON. 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 ResponseInspectionJson
{
private List _failureValues = new List();
private string _identifier;
private List _successValues = new List();
///
/// Gets and sets the property FailureValues.
///
/// Values for the specified identifier in the response JSON 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 example: "FailureValues": [ "False", "Failed" ]
///
///
[AWSProperty(Required=true, Min=1, Max=5)]
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 Identifier.
///
/// The identifier for the value to match against in the JSON. The identifier must be
/// an exact match, including case.
///
///
///
/// JSON examples: "Identifier": [ "/login/success" ]
and "Identifier":
/// [ "/sign-up/success" ]
///
///
[AWSProperty(Required=true, Min=1, Max=512)]
public string Identifier
{
get { return this._identifier; }
set { this._identifier = value; }
}
// Check to see if Identifier property is set
internal bool IsSetIdentifier()
{
return this._identifier != null;
}
///
/// Gets and sets the property SuccessValues.
///
/// Values for the specified identifier in the response JSON 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 example: "SuccessValues": [ "True", "Succeeded" ]
///
///
[AWSProperty(Required=true, Min=1, Max=5)]
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;
}
}
}