/*
* 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 waf-2015-08-24.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.WAF.Model
{
///
///
///
/// This is AWS WAF Classic documentation. For more information, see AWS
/// WAF Classic in the developer guide.
///
///
///
/// For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS
/// WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints
/// for regional and global use.
///
///
///
/// The response from a GetSampledRequests request includes a SampledHTTPRequests
/// complex type that appears as SampledRequests
in the response syntax.
/// SampledHTTPRequests
contains one SampledHTTPRequest
object
/// for each web request that is returned by GetSampledRequests
.
///
///
public partial class SampledHTTPRequest
{
private string _action;
private HTTPRequest _request;
private string _ruleWithinRuleGroup;
private DateTime? _timestamp;
private long? _weight;
///
/// Gets and sets the property Action.
///
/// The action for the Rule
that the request matched: ALLOW
,
/// BLOCK
, or COUNT
.
///
///
public string Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
///
/// Gets and sets the property Request.
///
/// A complex type that contains detailed information about the request.
///
///
[AWSProperty(Required=true)]
public HTTPRequest Request
{
get { return this._request; }
set { this._request = value; }
}
// Check to see if Request property is set
internal bool IsSetRequest()
{
return this._request != null;
}
///
/// Gets and sets the property RuleWithinRuleGroup.
///
/// This value is returned if the GetSampledRequests
request specifies the
/// ID of a RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
/// is the rule within the specified RuleGroup
that matched the request listed
/// in the response.
///
///
[AWSProperty(Min=1, Max=128)]
public string RuleWithinRuleGroup
{
get { return this._ruleWithinRuleGroup; }
set { this._ruleWithinRuleGroup = value; }
}
// Check to see if RuleWithinRuleGroup property is set
internal bool IsSetRuleWithinRuleGroup()
{
return this._ruleWithinRuleGroup != null;
}
///
/// Gets and sets the property Timestamp.
///
/// The time at which AWS WAF received the request from your AWS resource, in Unix time
/// format (in seconds).
///
///
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
///
/// Gets and sets the property Weight.
///
/// A value that indicates how one result in the response relates proportionally to other
/// results in the response. A result that has a weight of 2
represents roughly
/// twice as many CloudFront web requests as a result that has a weight of 1
.
///
///
[AWSProperty(Required=true, Min=0)]
public long Weight
{
get { return this._weight.GetValueOrDefault(); }
set { this._weight = value; }
}
// Check to see if Weight property is set
internal bool IsSetWeight()
{
return this._weight.HasValue;
}
}
}