AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
RevenueBreakdown.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/Currency.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 RevenueBreakdown() = default;
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
41 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
42 template <typename TotalAmountT = Aws::String>
43 void SetTotalAmount(TotalAmountT&& value) {
44 m_totalAmountHasBeenSet = true;
45 m_totalAmount = std::forward<TotalAmountT>(value);
46 }
47 template <typename TotalAmountT = Aws::String>
48 RevenueBreakdown& WithTotalAmount(TotalAmountT&& value) {
49 SetTotalAmount(std::forward<TotalAmountT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVerifiedAmount() const { return m_verifiedAmount; }
59 inline bool VerifiedAmountHasBeenSet() const { return m_verifiedAmountHasBeenSet; }
60 template <typename VerifiedAmountT = Aws::String>
61 void SetVerifiedAmount(VerifiedAmountT&& value) {
62 m_verifiedAmountHasBeenSet = true;
63 m_verifiedAmount = std::forward<VerifiedAmountT>(value);
64 }
65 template <typename VerifiedAmountT = Aws::String>
66 RevenueBreakdown& WithVerifiedAmount(VerifiedAmountT&& value) {
67 SetVerifiedAmount(std::forward<VerifiedAmountT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetUnverifiedAmount() const { return m_unverifiedAmount; }
77 inline bool UnverifiedAmountHasBeenSet() const { return m_unverifiedAmountHasBeenSet; }
78 template <typename UnverifiedAmountT = Aws::String>
79 void SetUnverifiedAmount(UnverifiedAmountT&& value) {
80 m_unverifiedAmountHasBeenSet = true;
81 m_unverifiedAmount = std::forward<UnverifiedAmountT>(value);
82 }
83 template <typename UnverifiedAmountT = Aws::String>
84 RevenueBreakdown& WithUnverifiedAmount(UnverifiedAmountT&& value) {
85 SetUnverifiedAmount(std::forward<UnverifiedAmountT>(value));
86 return *this;
87 }
89
91
94 inline Currency GetCurrency() const { return m_currency; }
95 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
96 inline void SetCurrency(Currency value) {
97 m_currencyHasBeenSet = true;
98 m_currency = value;
99 }
101 SetCurrency(value);
102 return *this;
103 }
105
107
110 inline long long GetTotalSettled() const { return m_totalSettled; }
111 inline bool TotalSettledHasBeenSet() const { return m_totalSettledHasBeenSet; }
112 inline void SetTotalSettled(long long value) {
113 m_totalSettledHasBeenSet = true;
114 m_totalSettled = value;
115 }
116 inline RevenueBreakdown& WithTotalSettled(long long value) {
117 SetTotalSettled(value);
118 return *this;
119 }
121
123
127 inline long long GetTotalMonetizeServed() const { return m_totalMonetizeServed; }
128 inline bool TotalMonetizeServedHasBeenSet() const { return m_totalMonetizeServedHasBeenSet; }
129 inline void SetTotalMonetizeServed(long long value) {
130 m_totalMonetizeServedHasBeenSet = true;
131 m_totalMonetizeServed = value;
132 }
133 inline RevenueBreakdown& WithTotalMonetizeServed(long long value) {
135 return *this;
136 }
138 private:
139 Aws::String m_totalAmount;
140
141 Aws::String m_verifiedAmount;
142
143 Aws::String m_unverifiedAmount;
144
145 Currency m_currency{Currency::NOT_SET};
146
147 long long m_totalSettled{0};
148
149 long long m_totalMonetizeServed{0};
150 bool m_totalAmountHasBeenSet = false;
151 bool m_verifiedAmountHasBeenSet = false;
152 bool m_unverifiedAmountHasBeenSet = false;
153 bool m_currencyHasBeenSet = false;
154 bool m_totalSettledHasBeenSet = false;
155 bool m_totalMonetizeServedHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace WAFV2
160} // namespace Aws
AWS_WAFV2_API RevenueBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
RevenueBreakdown & WithTotalAmount(TotalAmountT &&value)
RevenueBreakdown & WithTotalMonetizeServed(long long value)
RevenueBreakdown & WithVerifiedAmount(VerifiedAmountT &&value)
AWS_WAFV2_API RevenueBreakdown(Aws::Utils::Json::JsonView jsonValue)
RevenueBreakdown & WithUnverifiedAmount(UnverifiedAmountT &&value)
AWS_WAFV2_API RevenueBreakdown()=default
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTotalMonetizeServed(long long value)
const Aws::String & GetUnverifiedAmount() const
RevenueBreakdown & WithTotalSettled(long long value)
void SetTotalAmount(TotalAmountT &&value)
void SetVerifiedAmount(VerifiedAmountT &&value)
const Aws::String & GetVerifiedAmount() const
RevenueBreakdown & WithCurrency(Currency value)
void SetUnverifiedAmount(UnverifiedAmountT &&value)
const Aws::String & GetTotalAmount() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue