AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RevenueGroup.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMonetization {
20namespace Model {
21
29 public:
30 AWS_APPMONETIZATION_API RevenueGroup() = default;
31 AWS_APPMONETIZATION_API RevenueGroup(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API RevenueGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKey() const { return m_key; }
40 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
41 template <typename KeyT = Aws::String>
42 void SetKey(KeyT&& value) {
43 m_keyHasBeenSet = true;
44 m_key = std::forward<KeyT>(value);
45 }
46 template <typename KeyT = Aws::String>
47 RevenueGroup& WithKey(KeyT&& value) {
48 SetKey(std::forward<KeyT>(value));
49 return *this;
50 }
52
54
57 inline int GetUsers() const { return m_users; }
58 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
59 inline void SetUsers(int value) {
60 m_usersHasBeenSet = true;
61 m_users = value;
62 }
63 inline RevenueGroup& WithUsers(int value) {
64 SetUsers(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetSubscriptionRevenue() const { return m_subscriptionRevenue; }
74 inline bool SubscriptionRevenueHasBeenSet() const { return m_subscriptionRevenueHasBeenSet; }
75 template <typename SubscriptionRevenueT = Aws::String>
76 void SetSubscriptionRevenue(SubscriptionRevenueT&& value) {
77 m_subscriptionRevenueHasBeenSet = true;
78 m_subscriptionRevenue = std::forward<SubscriptionRevenueT>(value);
79 }
80 template <typename SubscriptionRevenueT = Aws::String>
81 RevenueGroup& WithSubscriptionRevenue(SubscriptionRevenueT&& value) {
82 SetSubscriptionRevenue(std::forward<SubscriptionRevenueT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetUsageRevenue() const { return m_usageRevenue; }
92 inline bool UsageRevenueHasBeenSet() const { return m_usageRevenueHasBeenSet; }
93 template <typename UsageRevenueT = Aws::String>
94 void SetUsageRevenue(UsageRevenueT&& value) {
95 m_usageRevenueHasBeenSet = true;
96 m_usageRevenue = std::forward<UsageRevenueT>(value);
97 }
98 template <typename UsageRevenueT = Aws::String>
99 RevenueGroup& WithUsageRevenue(UsageRevenueT&& value) {
100 SetUsageRevenue(std::forward<UsageRevenueT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetTotalRevenue() const { return m_totalRevenue; }
110 inline bool TotalRevenueHasBeenSet() const { return m_totalRevenueHasBeenSet; }
111 template <typename TotalRevenueT = Aws::String>
112 void SetTotalRevenue(TotalRevenueT&& value) {
113 m_totalRevenueHasBeenSet = true;
114 m_totalRevenue = std::forward<TotalRevenueT>(value);
115 }
116 template <typename TotalRevenueT = Aws::String>
117 RevenueGroup& WithTotalRevenue(TotalRevenueT&& value) {
118 SetTotalRevenue(std::forward<TotalRevenueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_key;
124
125 int m_users{0};
126
127 Aws::String m_subscriptionRevenue;
128
129 Aws::String m_usageRevenue;
130
131 Aws::String m_totalRevenue;
132 bool m_keyHasBeenSet = false;
133 bool m_usersHasBeenSet = false;
134 bool m_subscriptionRevenueHasBeenSet = false;
135 bool m_usageRevenueHasBeenSet = false;
136 bool m_totalRevenueHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace AppMonetization
141} // namespace Aws
AWS_APPMONETIZATION_API RevenueGroup(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
RevenueGroup & WithSubscriptionRevenue(SubscriptionRevenueT &&value)
RevenueGroup & WithUsageRevenue(UsageRevenueT &&value)
const Aws::String & GetUsageRevenue() const
const Aws::String & GetTotalRevenue() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
RevenueGroup & WithUsers(int value)
RevenueGroup & WithTotalRevenue(TotalRevenueT &&value)
AWS_APPMONETIZATION_API RevenueGroup()=default
void SetSubscriptionRevenue(SubscriptionRevenueT &&value)
AWS_APPMONETIZATION_API RevenueGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTotalRevenue(TotalRevenueT &&value)
RevenueGroup & WithKey(KeyT &&value)
const Aws::String & GetSubscriptionRevenue() const
void SetUsageRevenue(UsageRevenueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue