AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
PathStatistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/BotStatistics.h>
11#include <aws/wafv2/model/FilterSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2 {
23namespace Model {
24
33 public:
34 AWS_WAFV2_API PathStatistics() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const FilterSource& GetSource() const { return m_source; }
46 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
47 template <typename SourceT = FilterSource>
48 void SetSource(SourceT&& value) {
49 m_sourceHasBeenSet = true;
50 m_source = std::forward<SourceT>(value);
51 }
52 template <typename SourceT = FilterSource>
53 PathStatistics& WithSource(SourceT&& value) {
54 SetSource(std::forward<SourceT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetPath() const { return m_path; }
65 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
66 template <typename PathT = Aws::String>
67 void SetPath(PathT&& value) {
68 m_pathHasBeenSet = true;
69 m_path = std::forward<PathT>(value);
70 }
71 template <typename PathT = Aws::String>
72 PathStatistics& WithPath(PathT&& value) {
73 SetPath(std::forward<PathT>(value));
74 return *this;
75 }
77
79
82 inline long long GetRequestCount() const { return m_requestCount; }
83 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
84 inline void SetRequestCount(long long value) {
85 m_requestCountHasBeenSet = true;
86 m_requestCount = value;
87 }
88 inline PathStatistics& WithRequestCount(long long value) {
89 SetRequestCount(value);
90 return *this;
91 }
93
95
98 inline double GetPercentage() const { return m_percentage; }
99 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
100 inline void SetPercentage(double value) {
101 m_percentageHasBeenSet = true;
102 m_percentage = value;
103 }
104 inline PathStatistics& WithPercentage(double value) {
105 SetPercentage(value);
106 return *this;
107 }
109
111
116 inline const Aws::Vector<BotStatistics>& GetTopBots() const { return m_topBots; }
117 inline bool TopBotsHasBeenSet() const { return m_topBotsHasBeenSet; }
118 template <typename TopBotsT = Aws::Vector<BotStatistics>>
119 void SetTopBots(TopBotsT&& value) {
120 m_topBotsHasBeenSet = true;
121 m_topBots = std::forward<TopBotsT>(value);
122 }
123 template <typename TopBotsT = Aws::Vector<BotStatistics>>
124 PathStatistics& WithTopBots(TopBotsT&& value) {
125 SetTopBots(std::forward<TopBotsT>(value));
126 return *this;
127 }
128 template <typename TopBotsT = BotStatistics>
129 PathStatistics& AddTopBots(TopBotsT&& value) {
130 m_topBotsHasBeenSet = true;
131 m_topBots.emplace_back(std::forward<TopBotsT>(value));
132 return *this;
133 }
135 private:
136 FilterSource m_source;
137
138 Aws::String m_path;
139
140 long long m_requestCount{0};
141
142 double m_percentage{0.0};
143
145 bool m_sourceHasBeenSet = false;
146 bool m_pathHasBeenSet = false;
147 bool m_requestCountHasBeenSet = false;
148 bool m_percentageHasBeenSet = false;
149 bool m_topBotsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace WAFV2
154} // namespace Aws
void SetRequestCount(long long value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
PathStatistics & WithPercentage(double value)
AWS_WAFV2_API PathStatistics(Aws::Utils::Json::JsonView jsonValue)
PathStatistics & AddTopBots(TopBotsT &&value)
PathStatistics & WithSource(SourceT &&value)
PathStatistics & WithRequestCount(long long value)
void SetTopBots(TopBotsT &&value)
const FilterSource & GetSource() const
PathStatistics & WithPath(PathT &&value)
void SetSource(SourceT &&value)
AWS_WAFV2_API PathStatistics()=default
const Aws::String & GetPath() const
PathStatistics & WithTopBots(TopBotsT &&value)
AWS_WAFV2_API PathStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BotStatistics > & GetTopBots() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue