AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
RevenuePathStatistics.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 RevenuePathStatistics() = default;
33 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetPath() const { return m_path; }
40 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
41 template <typename PathT = Aws::String>
42 void SetPath(PathT&& value) {
43 m_pathHasBeenSet = true;
44 m_path = std::forward<PathT>(value);
45 }
46 template <typename PathT = Aws::String>
48 SetPath(std::forward<PathT>(value));
49 return *this;
50 }
52
54
57 inline double GetPercentage() const { return m_percentage; }
58 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
59 inline void SetPercentage(double value) {
60 m_percentageHasBeenSet = true;
61 m_percentage = value;
62 }
63 inline RevenuePathStatistics& WithPercentage(double value) {
64 SetPercentage(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetAmount() const { return m_amount; }
74 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
75 template <typename AmountT = Aws::String>
76 void SetAmount(AmountT&& value) {
77 m_amountHasBeenSet = true;
78 m_amount = std::forward<AmountT>(value);
79 }
80 template <typename AmountT = Aws::String>
82 SetAmount(std::forward<AmountT>(value));
83 return *this;
84 }
86
88
91 inline long long GetRequestCount() const { return m_requestCount; }
92 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
93 inline void SetRequestCount(long long value) {
94 m_requestCountHasBeenSet = true;
95 m_requestCount = value;
96 }
97 inline RevenuePathStatistics& WithRequestCount(long long value) {
98 SetRequestCount(value);
99 return *this;
100 }
102 private:
103 Aws::String m_path;
104
105 double m_percentage{0.0};
106
107 Aws::String m_amount;
108
109 long long m_requestCount{0};
110 bool m_pathHasBeenSet = false;
111 bool m_percentageHasBeenSet = false;
112 bool m_amountHasBeenSet = false;
113 bool m_requestCountHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace WAFV2
118} // namespace Aws
RevenuePathStatistics & WithAmount(AmountT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RevenuePathStatistics & WithPercentage(double value)
AWS_WAFV2_API RevenuePathStatistics()=default
AWS_WAFV2_API RevenuePathStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
RevenuePathStatistics & WithPath(PathT &&value)
AWS_WAFV2_API RevenuePathStatistics(Aws::Utils::Json::JsonView jsonValue)
RevenuePathStatistics & WithRequestCount(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue