AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSampledRequestsResult.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/waf/model/TimeWindow.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/waf/model/SampledHTTPRequest.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace WAF
27{
28namespace Model
29{
31 {
32 public:
36
37
39
43 inline const Aws::Vector<SampledHTTPRequest>& GetSampledRequests() const{ return m_sampledRequests; }
44 inline void SetSampledRequests(const Aws::Vector<SampledHTTPRequest>& value) { m_sampledRequests = value; }
45 inline void SetSampledRequests(Aws::Vector<SampledHTTPRequest>&& value) { m_sampledRequests = std::move(value); }
48 inline GetSampledRequestsResult& AddSampledRequests(const SampledHTTPRequest& value) { m_sampledRequests.push_back(value); return *this; }
49 inline GetSampledRequestsResult& AddSampledRequests(SampledHTTPRequest&& value) { m_sampledRequests.push_back(std::move(value)); return *this; }
51
53
59 inline long long GetPopulationSize() const{ return m_populationSize; }
60 inline void SetPopulationSize(long long value) { m_populationSize = value; }
61 inline GetSampledRequestsResult& WithPopulationSize(long long value) { SetPopulationSize(value); return *this;}
63
65
72 inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; }
73 inline void SetTimeWindow(const TimeWindow& value) { m_timeWindow = value; }
74 inline void SetTimeWindow(TimeWindow&& value) { m_timeWindow = std::move(value); }
75 inline GetSampledRequestsResult& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;}
76 inline GetSampledRequestsResult& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;}
78
80
81 inline const Aws::String& GetRequestId() const{ return m_requestId; }
82 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
83 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
84 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
85 inline GetSampledRequestsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
86 inline GetSampledRequestsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
87 inline GetSampledRequestsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
89 private:
90
91 Aws::Vector<SampledHTTPRequest> m_sampledRequests;
92
93 long long m_populationSize;
94
95 TimeWindow m_timeWindow;
96
97 Aws::String m_requestId;
98 };
99
100} // namespace Model
101} // namespace WAF
102} // namespace Aws
GetSampledRequestsResult & WithRequestId(const Aws::String &value)
GetSampledRequestsResult & AddSampledRequests(const SampledHTTPRequest &value)
AWS_WAF_API GetSampledRequestsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSampledRequestsResult & WithTimeWindow(const TimeWindow &value)
GetSampledRequestsResult & WithSampledRequests(Aws::Vector< SampledHTTPRequest > &&value)
GetSampledRequestsResult & WithRequestId(const char *value)
GetSampledRequestsResult & AddSampledRequests(SampledHTTPRequest &&value)
void SetSampledRequests(const Aws::Vector< SampledHTTPRequest > &value)
AWS_WAF_API GetSampledRequestsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< SampledHTTPRequest > & GetSampledRequests() const
GetSampledRequestsResult & WithTimeWindow(TimeWindow &&value)
void SetSampledRequests(Aws::Vector< SampledHTTPRequest > &&value)
GetSampledRequestsResult & WithRequestId(Aws::String &&value)
GetSampledRequestsResult & WithSampledRequests(const Aws::Vector< SampledHTTPRequest > &value)
GetSampledRequestsResult & WithPopulationSize(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue