/*
* 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
{
///
/// This is the response object from the GetSampledRequests operation.
///
public partial class GetSampledRequestsResponse : AmazonWebServiceResponse
{
private long? _populationSize;
private List _sampledRequests = new List();
private TimeWindow _timeWindow;
///
/// Gets and sets the property PopulationSize.
///
/// The total number of requests from which GetSampledRequests
got a sample
/// of MaxItems
requests. If PopulationSize
is less than MaxItems
,
/// the sample includes every request that your Amazon Web Services resource received
/// during the specified time range.
///
///
public long PopulationSize
{
get { return this._populationSize.GetValueOrDefault(); }
set { this._populationSize = value; }
}
// Check to see if PopulationSize property is set
internal bool IsSetPopulationSize()
{
return this._populationSize.HasValue;
}
///
/// Gets and sets the property SampledRequests.
///
/// A complex type that contains detailed information about each of the requests in the
/// sample.
///
///
public List SampledRequests
{
get { return this._sampledRequests; }
set { this._sampledRequests = value; }
}
// Check to see if SampledRequests property is set
internal bool IsSetSampledRequests()
{
return this._sampledRequests != null && this._sampledRequests.Count > 0;
}
///
/// Gets and sets the property TimeWindow.
///
/// Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
/// request. However, if your Amazon Web Services resource received more than 5,000 requests
/// during the time range that you specified in the request, GetSampledRequests
/// returns the time range for the first 5,000 requests. Times are in Coordinated Universal
/// Time (UTC) format.
///
///
public TimeWindow TimeWindow
{
get { return this._timeWindow; }
set { this._timeWindow = value; }
}
// Check to see if TimeWindow property is set
internal bool IsSetTimeWindow()
{
return this._timeWindow != null;
}
}
}