AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
BotStatistics.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
29 public:
30 AWS_WAFV2_API BotStatistics() = default;
31 AWS_WAFV2_API BotStatistics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetBotName() const { return m_botName; }
41 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
42 template <typename BotNameT = Aws::String>
43 void SetBotName(BotNameT&& value) {
44 m_botNameHasBeenSet = true;
45 m_botName = std::forward<BotNameT>(value);
46 }
47 template <typename BotNameT = Aws::String>
48 BotStatistics& WithBotName(BotNameT&& value) {
49 SetBotName(std::forward<BotNameT>(value));
50 return *this;
51 }
53
55
59 inline long long GetRequestCount() const { return m_requestCount; }
60 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
61 inline void SetRequestCount(long long value) {
62 m_requestCountHasBeenSet = true;
63 m_requestCount = value;
64 }
65 inline BotStatistics& WithRequestCount(long long value) {
66 SetRequestCount(value);
67 return *this;
68 }
70
72
76 inline double GetPercentage() const { return m_percentage; }
77 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
78 inline void SetPercentage(double value) {
79 m_percentageHasBeenSet = true;
80 m_percentage = value;
81 }
82 inline BotStatistics& WithPercentage(double value) {
83 SetPercentage(value);
84 return *this;
85 }
87 private:
88 Aws::String m_botName;
89
90 long long m_requestCount{0};
91
92 double m_percentage{0.0};
93 bool m_botNameHasBeenSet = false;
94 bool m_requestCountHasBeenSet = false;
95 bool m_percentageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace WAFV2
100} // namespace Aws
AWS_WAFV2_API BotStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
BotStatistics & WithPercentage(double value)
BotStatistics & WithBotName(BotNameT &&value)
const Aws::String & GetBotName() const
BotStatistics & WithRequestCount(long long value)
AWS_WAFV2_API BotStatistics()=default
AWS_WAFV2_API BotStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetRequestCount(long long value)
void SetBotName(BotNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue