AWS SDK for C++  1.9.104
AWS SDK for C++
GetSampledRequestsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace WAFV2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<SampledHTTPRequest>& GetSampledRequests() const{ return m_sampledRequests; }
42 
47  inline void SetSampledRequests(const Aws::Vector<SampledHTTPRequest>& value) { m_sampledRequests = value; }
48 
53  inline void SetSampledRequests(Aws::Vector<SampledHTTPRequest>&& value) { m_sampledRequests = std::move(value); }
54 
59  inline GetSampledRequestsResult& WithSampledRequests(const Aws::Vector<SampledHTTPRequest>& value) { SetSampledRequests(value); return *this;}
60 
65  inline GetSampledRequestsResult& WithSampledRequests(Aws::Vector<SampledHTTPRequest>&& value) { SetSampledRequests(std::move(value)); return *this;}
66 
71  inline GetSampledRequestsResult& AddSampledRequests(const SampledHTTPRequest& value) { m_sampledRequests.push_back(value); return *this; }
72 
77  inline GetSampledRequestsResult& AddSampledRequests(SampledHTTPRequest&& value) { m_sampledRequests.push_back(std::move(value)); return *this; }
78 
79 
86  inline long long GetPopulationSize() const{ return m_populationSize; }
87 
94  inline void SetPopulationSize(long long value) { m_populationSize = value; }
95 
102  inline GetSampledRequestsResult& WithPopulationSize(long long value) { SetPopulationSize(value); return *this;}
103 
104 
113  inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
114 
123  inline void SetTimeWindow(const TimeWindow& value) { m_timeWindow = value; }
124 
133  inline void SetTimeWindow(TimeWindow&& value) { m_timeWindow = std::move(value); }
134 
143  inline GetSampledRequestsResult& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
144 
153  inline GetSampledRequestsResult& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
154 
155  private:
156 
157  Aws::Vector<SampledHTTPRequest> m_sampledRequests;
158 
159  long long m_populationSize;
160 
161  TimeWindow m_timeWindow;
162  };
163 
164 } // namespace Model
165 } // namespace WAFV2
166 } // namespace Aws
Aws::WAFV2::Model::GetSampledRequestsResult::SetTimeWindow
void SetTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsResult.h:133
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WAFV2::Model::GetSampledRequestsResult::WithTimeWindow
GetSampledRequestsResult & WithTimeWindow(TimeWindow &&value)
Definition: GetSampledRequestsResult.h:153
Aws::WAFV2::Model::GetSampledRequestsResult::SetTimeWindow
void SetTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsResult.h:123
Aws::WAFV2::Model::GetSampledRequestsResult::GetPopulationSize
long long GetPopulationSize() const
Definition: GetSampledRequestsResult.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::GetSampledRequestsResult::WithSampledRequests
GetSampledRequestsResult & WithSampledRequests(Aws::Vector< SampledHTTPRequest > &&value)
Definition: GetSampledRequestsResult.h:65
Aws::WAFV2::Model::GetSampledRequestsResult::GetSampledRequestsResult
GetSampledRequestsResult()
SampledHTTPRequest.h
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetSampledRequestsResult::SetSampledRequests
void SetSampledRequests(const Aws::Vector< SampledHTTPRequest > &value)
Definition: GetSampledRequestsResult.h:47
AWSVector.h
Aws::WAFV2::Model::GetSampledRequestsResult::GetSampledRequests
const Aws::Vector< SampledHTTPRequest > & GetSampledRequests() const
Definition: GetSampledRequestsResult.h:41
Aws::WAFV2::Model::GetSampledRequestsResult::GetTimeWindow
const TimeWindow & GetTimeWindow() const
Definition: GetSampledRequestsResult.h:113
Aws::WAFV2::Model::GetSampledRequestsResult::WithTimeWindow
GetSampledRequestsResult & WithTimeWindow(const TimeWindow &value)
Definition: GetSampledRequestsResult.h:143
WAFV2_EXPORTS.h
Aws::WAFV2::Model::SampledHTTPRequest
Definition: SampledHTTPRequest.h:41
TimeWindow.h
Aws::WAFV2::Model::GetSampledRequestsResult::WithPopulationSize
GetSampledRequestsResult & WithPopulationSize(long long value)
Definition: GetSampledRequestsResult.h:102
Aws::WAFV2::Model::GetSampledRequestsResult::operator=
GetSampledRequestsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAFV2::Model::GetSampledRequestsResult::GetSampledRequestsResult
GetSampledRequestsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAFV2::Model::GetSampledRequestsResult::WithSampledRequests
GetSampledRequestsResult & WithSampledRequests(const Aws::Vector< SampledHTTPRequest > &value)
Definition: GetSampledRequestsResult.h:59
Aws::WAFV2::Model::GetSampledRequestsResult::SetSampledRequests
void SetSampledRequests(Aws::Vector< SampledHTTPRequest > &&value)
Definition: GetSampledRequestsResult.h:53
Aws::WAFV2::Model::GetSampledRequestsResult
Definition: GetSampledRequestsResult.h:30
Aws::WAFV2::Model::GetSampledRequestsResult::SetPopulationSize
void SetPopulationSize(long long value)
Definition: GetSampledRequestsResult.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GetSampledRequestsResult::AddSampledRequests
GetSampledRequestsResult & AddSampledRequests(const SampledHTTPRequest &value)
Definition: GetSampledRequestsResult.h:71
Aws::WAFV2::Model::TimeWindow
Definition: TimeWindow.h:45
Aws::WAFV2::Model::GetSampledRequestsResult::AddSampledRequests
GetSampledRequestsResult & AddSampledRequests(SampledHTTPRequest &&value)
Definition: GetSampledRequestsResult.h:77