/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { class GetSampledRequestsResult { public: AWS_WAFV2_API GetSampledRequestsResult(); AWS_WAFV2_API GetSampledRequestsResult(const Aws::AmazonWebServiceResult& result); AWS_WAFV2_API 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 Amazon * Web Services 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 Amazon * Web Services 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 Amazon * Web Services 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 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.

*/ inline const TimeWindow& GetTimeWindow() const{ return m_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.

*/ 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 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.

*/ 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 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.

*/ 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 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.

*/ inline GetSampledRequestsResult& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSampledRequestsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSampledRequestsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSampledRequestsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_sampledRequests; long long m_populationSize; TimeWindow m_timeWindow; Aws::String m_requestId; }; } // namespace Model } // namespace WAFV2 } // namespace Aws