/*
* 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 status code. 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 ResponseInspectionStatusCode
{
private List _failureCodes = new List();
private List _successCodes = new List();
///
/// Gets and sets the property FailureCodes.
///
/// Status codes in the response that indicate a failed login or account creation attempt.
/// To be counted as a failure, the response status code must match one of these. Each
/// code must be unique among the success and failure status codes.
///
///
///
/// JSON example: "FailureCodes": [ 400, 404 ]
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List FailureCodes
{
get { return this._failureCodes; }
set { this._failureCodes = value; }
}
// Check to see if FailureCodes property is set
internal bool IsSetFailureCodes()
{
return this._failureCodes != null && this._failureCodes.Count > 0;
}
///
/// Gets and sets the property SuccessCodes.
///
/// Status codes in the response that indicate a successful login or account creation
/// attempt. To be counted as a success, the response status code must match one of these.
/// Each code must be unique among the success and failure status codes.
///
///
///
/// JSON example: "SuccessCodes": [ 200, 201 ]
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List SuccessCodes
{
get { return this._successCodes; }
set { this._successCodes = value; }
}
// Check to see if SuccessCodes property is set
internal bool IsSetSuccessCodes()
{
return this._successCodes != null && this._successCodes.Count > 0;
}
}
}