AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
DataPointEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
30 public:
31 AWS_WAFV2_API DataPointEntry() = default;
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
41 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
42 template <typename DateT = Aws::Utils::DateTime>
43 void SetDate(DateT&& value) {
44 m_dateHasBeenSet = true;
45 m_date = std::forward<DateT>(value);
46 }
47 template <typename DateT = Aws::Utils::DateTime>
48 DataPointEntry& WithDate(DateT&& value) {
49 SetDate(std::forward<DateT>(value));
50 return *this;
51 }
53
55
59 inline long long GetMonetizeServedCount() const { return m_monetizeServedCount; }
60 inline bool MonetizeServedCountHasBeenSet() const { return m_monetizeServedCountHasBeenSet; }
61 inline void SetMonetizeServedCount(long long value) {
62 m_monetizeServedCountHasBeenSet = true;
63 m_monetizeServedCount = value;
64 }
65 inline DataPointEntry& WithMonetizeServedCount(long long value) {
67 return *this;
68 }
70
72
75 inline long long GetSettledCount() const { return m_settledCount; }
76 inline bool SettledCountHasBeenSet() const { return m_settledCountHasBeenSet; }
77 inline void SetSettledCount(long long value) {
78 m_settledCountHasBeenSet = true;
79 m_settledCount = value;
80 }
81 inline DataPointEntry& WithSettledCount(long long value) {
82 SetSettledCount(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
92 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
93 template <typename TotalAmountT = Aws::String>
94 void SetTotalAmount(TotalAmountT&& value) {
95 m_totalAmountHasBeenSet = true;
96 m_totalAmount = std::forward<TotalAmountT>(value);
97 }
98 template <typename TotalAmountT = Aws::String>
99 DataPointEntry& WithTotalAmount(TotalAmountT&& value) {
100 SetTotalAmount(std::forward<TotalAmountT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetCategory() const { return m_category; }
110 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
111 template <typename CategoryT = Aws::String>
112 void SetCategory(CategoryT&& value) {
113 m_categoryHasBeenSet = true;
114 m_category = std::forward<CategoryT>(value);
115 }
116 template <typename CategoryT = Aws::String>
117 DataPointEntry& WithCategory(CategoryT&& value) {
118 SetCategory(std::forward<CategoryT>(value));
119 return *this;
120 }
122
124
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 DataPointEntry& WithIntent(IntentT&& value) {
136 SetIntent(std::forward<IntentT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetGroupByValue() const { return m_groupByValue; }
146 inline bool GroupByValueHasBeenSet() const { return m_groupByValueHasBeenSet; }
147 template <typename GroupByValueT = Aws::String>
148 void SetGroupByValue(GroupByValueT&& value) {
149 m_groupByValueHasBeenSet = true;
150 m_groupByValue = std::forward<GroupByValueT>(value);
151 }
152 template <typename GroupByValueT = Aws::String>
153 DataPointEntry& WithGroupByValue(GroupByValueT&& value) {
154 SetGroupByValue(std::forward<GroupByValueT>(value));
155 return *this;
156 }
158 private:
159 Aws::Utils::DateTime m_date{};
160
161 long long m_monetizeServedCount{0};
162
163 long long m_settledCount{0};
164
165 Aws::String m_totalAmount;
166
167 Aws::String m_category;
168
169 Aws::String m_intent;
170
171 Aws::String m_groupByValue;
172 bool m_dateHasBeenSet = false;
173 bool m_monetizeServedCountHasBeenSet = false;
174 bool m_settledCountHasBeenSet = false;
175 bool m_totalAmountHasBeenSet = false;
176 bool m_categoryHasBeenSet = false;
177 bool m_intentHasBeenSet = false;
178 bool m_groupByValueHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace WAFV2
183} // namespace Aws
DataPointEntry & WithMonetizeServedCount(long long value)
const Aws::String & GetGroupByValue() const
void SetTotalAmount(TotalAmountT &&value)
void SetCategory(CategoryT &&value)
long long GetSettledCount() const
bool IntentHasBeenSet() const
DataPointEntry & WithIntent(IntentT &&value)
bool CategoryHasBeenSet() const
DataPointEntry & WithGroupByValue(GroupByValueT &&value)
const Aws::String & GetCategory() const
DataPointEntry & WithSettledCount(long long value)
bool MonetizeServedCountHasBeenSet() const
const Aws::String & GetIntent() const
long long GetMonetizeServedCount() const
bool DateHasBeenSet() const
bool TotalAmountHasBeenSet() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSettledCount(long long value)
void SetDate(DateT &&value)
DataPointEntry & WithDate(DateT &&value)
AWS_WAFV2_API DataPointEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GroupByValueHasBeenSet() const
DataPointEntry & WithCategory(CategoryT &&value)
void SetGroupByValue(GroupByValueT &&value)
void SetMonetizeServedCount(long long value)
const Aws::String & GetTotalAmount() const
AWS_WAFV2_API DataPointEntry(Aws::Utils::Json::JsonView jsonValue)
void SetIntent(IntentT &&value)
AWS_WAFV2_API DataPointEntry()=default
const Aws::Utils::DateTime & GetDate() const
bool SettledCountHasBeenSet() const
DataPointEntry & WithTotalAmount(TotalAmountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue