/* * 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 an HTTPRequest /// complex type that appears as Request in the response syntax. HTTPRequest /// contains information about one of the web requests that were returned by GetSampledRequests. /// /// /// public partial class HTTPRequest { private string _clientIP; private string _country; private List _headers = new List(); private string _httpVersion; private string _method; private string _uri; /// /// Gets and sets the property ClientIP. /// /// The IP address that the request originated from. If the WebACL is associated /// with a CloudFront distribution, this is the value of one of the following fields in /// CloudFront access logs: /// ///
  • /// /// c-ip, if the viewer did not use an HTTP proxy or a load balancer to /// send the request /// ///
  • /// /// x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer /// to send the request /// ///
///
public string ClientIP { get { return this._clientIP; } set { this._clientIP = value; } } // Check to see if ClientIP property is set internal bool IsSetClientIP() { return this._clientIP != null; } /// /// Gets and sets the property Country. /// /// The two-letter country code for the country that the request originated from. For /// a current list of country codes, see the Wikipedia entry ISO /// 3166-1 alpha-2. /// /// public string Country { get { return this._country; } set { this._country = value; } } // Check to see if Country property is set internal bool IsSetCountry() { return this._country != null; } /// /// Gets and sets the property Headers. /// /// A complex type that contains two values for each header in the sampled web request: /// the name of the header and the value of the header. /// /// public List Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null && this._headers.Count > 0; } /// /// Gets and sets the property HTTPVersion. /// /// The HTTP version specified in the sampled web request, for example, HTTP/1.1. /// /// public string HTTPVersion { get { return this._httpVersion; } set { this._httpVersion = value; } } // Check to see if HTTPVersion property is set internal bool IsSetHTTPVersion() { return this._httpVersion != null; } /// /// Gets and sets the property Method. /// /// The HTTP method specified in the sampled web request. CloudFront supports the following /// methods: DELETE, GET, HEAD, OPTIONS, /// PATCH, POST, and PUT. /// /// public string Method { get { return this._method; } set { this._method = value; } } // Check to see if Method property is set internal bool IsSetMethod() { return this._method != null; } /// /// Gets and sets the property URI. /// /// The part of a web request that identifies the resource, for example, /images/daily-ad.jpg. /// /// public string URI { get { return this._uri; } set { this._uri = value; } } // Check to see if URI property is set internal bool IsSetURI() { return this._uri != null; } } }