AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
SourceStatistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAFV2 {
20namespace Model {
21
30 public:
31 AWS_WAFV2_API SourceStatistics() = default;
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSourceName() const { return m_sourceName; }
41 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
42 template <typename SourceNameT = Aws::String>
43 void SetSourceName(SourceNameT&& value) {
44 m_sourceNameHasBeenSet = true;
45 m_sourceName = std::forward<SourceNameT>(value);
46 }
47 template <typename SourceNameT = Aws::String>
48 SourceStatistics& WithSourceName(SourceNameT&& value) {
49 SetSourceName(std::forward<SourceNameT>(value));
50 return *this;
51 }
53
55
58 inline double GetPercentage() const { return m_percentage; }
59 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
60 inline void SetPercentage(double value) {
61 m_percentageHasBeenSet = true;
62 m_percentage = value;
63 }
64 inline SourceStatistics& WithPercentage(double value) {
65 SetPercentage(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAmount() const { return m_amount; }
75 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
76 template <typename AmountT = Aws::String>
77 void SetAmount(AmountT&& value) {
78 m_amountHasBeenSet = true;
79 m_amount = std::forward<AmountT>(value);
80 }
81 template <typename AmountT = Aws::String>
82 SourceStatistics& WithAmount(AmountT&& value) {
83 SetAmount(std::forward<AmountT>(value));
84 return *this;
85 }
87
89
92 inline long long GetRequestCount() const { return m_requestCount; }
93 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
94 inline void SetRequestCount(long long value) {
95 m_requestCountHasBeenSet = true;
96 m_requestCount = value;
97 }
98 inline SourceStatistics& WithRequestCount(long long value) {
99 SetRequestCount(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetSourceCategory() const { return m_sourceCategory; }
109 inline bool SourceCategoryHasBeenSet() const { return m_sourceCategoryHasBeenSet; }
110 template <typename SourceCategoryT = Aws::String>
111 void SetSourceCategory(SourceCategoryT&& value) {
112 m_sourceCategoryHasBeenSet = true;
113 m_sourceCategory = std::forward<SourceCategoryT>(value);
114 }
115 template <typename SourceCategoryT = Aws::String>
116 SourceStatistics& WithSourceCategory(SourceCategoryT&& value) {
117 SetSourceCategory(std::forward<SourceCategoryT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetIntent() const { return m_intent; }
128 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
129 template <typename IntentT = Aws::String>
130 void SetIntent(IntentT&& value) {
131 m_intentHasBeenSet = true;
132 m_intent = std::forward<IntentT>(value);
133 }
134 template <typename IntentT = Aws::String>
135 SourceStatistics& WithIntent(IntentT&& value) {
136 SetIntent(std::forward<IntentT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetOrganization() const { return m_organization; }
146 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
147 template <typename OrganizationT = Aws::String>
148 void SetOrganization(OrganizationT&& value) {
149 m_organizationHasBeenSet = true;
150 m_organization = std::forward<OrganizationT>(value);
151 }
152 template <typename OrganizationT = Aws::String>
153 SourceStatistics& WithOrganization(OrganizationT&& value) {
154 SetOrganization(std::forward<OrganizationT>(value));
155 return *this;
156 }
158
160
170 inline bool GetVerified() const { return m_verified; }
171 inline bool VerifiedHasBeenSet() const { return m_verifiedHasBeenSet; }
172 inline void SetVerified(bool value) {
173 m_verifiedHasBeenSet = true;
174 m_verified = value;
175 }
176 inline SourceStatistics& WithVerified(bool value) {
177 SetVerified(value);
178 return *this;
179 }
181
183
186 inline const Aws::String& GetGroupByValue() const { return m_groupByValue; }
187 inline bool GroupByValueHasBeenSet() const { return m_groupByValueHasBeenSet; }
188 template <typename GroupByValueT = Aws::String>
189 void SetGroupByValue(GroupByValueT&& value) {
190 m_groupByValueHasBeenSet = true;
191 m_groupByValue = std::forward<GroupByValueT>(value);
192 }
193 template <typename GroupByValueT = Aws::String>
194 SourceStatistics& WithGroupByValue(GroupByValueT&& value) {
195 SetGroupByValue(std::forward<GroupByValueT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_sourceName;
201
202 double m_percentage{0.0};
203
204 Aws::String m_amount;
205
206 long long m_requestCount{0};
207
208 Aws::String m_sourceCategory;
209
210 Aws::String m_intent;
211
212 Aws::String m_organization;
213
214 bool m_verified{false};
215
216 Aws::String m_groupByValue;
217 bool m_sourceNameHasBeenSet = false;
218 bool m_percentageHasBeenSet = false;
219 bool m_amountHasBeenSet = false;
220 bool m_requestCountHasBeenSet = false;
221 bool m_sourceCategoryHasBeenSet = false;
222 bool m_intentHasBeenSet = false;
223 bool m_organizationHasBeenSet = false;
224 bool m_verifiedHasBeenSet = false;
225 bool m_groupByValueHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace WAFV2
230} // namespace Aws
void SetSourceName(SourceNameT &&value)
AWS_WAFV2_API SourceStatistics(Aws::Utils::Json::JsonView jsonValue)
SourceStatistics & WithSourceName(SourceNameT &&value)
AWS_WAFV2_API SourceStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceStatistics & WithIntent(IntentT &&value)
void SetSourceCategory(SourceCategoryT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
SourceStatistics & WithVerified(bool value)
SourceStatistics & WithGroupByValue(GroupByValueT &&value)
AWS_WAFV2_API SourceStatistics()=default
SourceStatistics & WithPercentage(double value)
void SetOrganization(OrganizationT &&value)
SourceStatistics & WithAmount(AmountT &&value)
const Aws::String & GetGroupByValue() const
const Aws::String & GetIntent() const
SourceStatistics & WithRequestCount(long long value)
const Aws::String & GetOrganization() const
const Aws::String & GetSourceName() const
const Aws::String & GetAmount() const
SourceStatistics & WithSourceCategory(SourceCategoryT &&value)
void SetGroupByValue(GroupByValueT &&value)
SourceStatistics & WithOrganization(OrganizationT &&value)
const Aws::String & GetSourceCategory() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue