/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WAF { namespace Model { class AWS_WAF_API GetSampledRequestsResult { public: GetSampledRequestsResult(); GetSampledRequestsResult(const Aws::AmazonWebServiceResult& result); GetSampledRequestsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline const Aws::Vector& GetSampledRequests() const{ return m_sampledRequests; } /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline void SetSampledRequests(const Aws::Vector& value) { m_sampledRequests = value; } /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline void SetSampledRequests(Aws::Vector&& value) { m_sampledRequests = std::move(value); } /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline GetSampledRequestsResult& WithSampledRequests(const Aws::Vector& value) { SetSampledRequests(value); return *this;} /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline GetSampledRequestsResult& WithSampledRequests(Aws::Vector&& value) { SetSampledRequests(std::move(value)); return *this;} /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline GetSampledRequestsResult& AddSampledRequests(const SampledHTTPRequest& value) { m_sampledRequests.push_back(value); return *this; } /** *

A complex type that contains detailed information about each of the requests * in the sample.

*/ inline GetSampledRequestsResult& AddSampledRequests(SampledHTTPRequest&& value) { m_sampledRequests.push_back(std::move(value)); return *this; } /** *

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 AWS * resource received during the specified time range.

*/ inline long long GetPopulationSize() const{ return m_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 AWS * resource received during the specified time range.

*/ inline void SetPopulationSize(long long value) { m_populationSize = value; } /** *

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 AWS * resource received during the specified time range.

*/ inline GetSampledRequestsResult& WithPopulationSize(long long value) { SetPopulationSize(value); return *this;} /** *

Usually, TimeWindow is the time range that you specified in the * GetSampledRequests request. However, if your AWS 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.

*/ inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; } /** *

Usually, TimeWindow is the time range that you specified in the * GetSampledRequests request. However, if your AWS 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.

*/ inline void SetTimeWindow(const TimeWindow& value) { m_timeWindow = value; } /** *

Usually, TimeWindow is the time range that you specified in the * GetSampledRequests request. However, if your AWS 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.

*/ inline void SetTimeWindow(TimeWindow&& value) { m_timeWindow = std::move(value); } /** *

Usually, TimeWindow is the time range that you specified in the * GetSampledRequests request. However, if your AWS 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.

*/ inline GetSampledRequestsResult& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;} /** *

Usually, TimeWindow is the time range that you specified in the * GetSampledRequests request. However, if your AWS 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.

*/ inline GetSampledRequestsResult& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;} private: Aws::Vector m_sampledRequests; long long m_populationSize; TimeWindow m_timeWindow; }; } // namespace Model } // namespace WAF } // namespace Aws