AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/BillingCycle.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
30 public:
31 AWS_APPMONETIZATION_API Subscription() = default;
32 AWS_APPMONETIZATION_API Subscription(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAppId() const { return m_appId; }
41 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
42 template <typename AppIdT = Aws::String>
43 void SetAppId(AppIdT&& value) {
44 m_appIdHasBeenSet = true;
45 m_appId = std::forward<AppIdT>(value);
46 }
47 template <typename AppIdT = Aws::String>
48 Subscription& WithAppId(AppIdT&& value) {
49 SetAppId(std::forward<AppIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserId() const { return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 template <typename UserIdT = Aws::String>
61 void SetUserId(UserIdT&& value) {
62 m_userIdHasBeenSet = true;
63 m_userId = std::forward<UserIdT>(value);
64 }
65 template <typename UserIdT = Aws::String>
66 Subscription& WithUserId(UserIdT&& value) {
67 SetUserId(std::forward<UserIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPlanId() const { return m_planId; }
77 inline bool PlanIdHasBeenSet() const { return m_planIdHasBeenSet; }
78 template <typename PlanIdT = Aws::String>
79 void SetPlanId(PlanIdT&& value) {
80 m_planIdHasBeenSet = true;
81 m_planId = std::forward<PlanIdT>(value);
82 }
83 template <typename PlanIdT = Aws::String>
84 Subscription& WithPlanId(PlanIdT&& value) {
85 SetPlanId(std::forward<PlanIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetEffectiveAt() const { return m_effectiveAt; }
95 inline bool EffectiveAtHasBeenSet() const { return m_effectiveAtHasBeenSet; }
96 template <typename EffectiveAtT = Aws::Utils::DateTime>
97 void SetEffectiveAt(EffectiveAtT&& value) {
98 m_effectiveAtHasBeenSet = true;
99 m_effectiveAt = std::forward<EffectiveAtT>(value);
100 }
101 template <typename EffectiveAtT = Aws::Utils::DateTime>
102 Subscription& WithEffectiveAt(EffectiveAtT&& value) {
103 SetEffectiveAt(std::forward<EffectiveAtT>(value));
104 return *this;
105 }
107
109
117 inline const Aws::Utils::DateTime& GetBillingAnchorDate() const { return m_billingAnchorDate; }
118 inline bool BillingAnchorDateHasBeenSet() const { return m_billingAnchorDateHasBeenSet; }
119 template <typename BillingAnchorDateT = Aws::Utils::DateTime>
120 void SetBillingAnchorDate(BillingAnchorDateT&& value) {
121 m_billingAnchorDateHasBeenSet = true;
122 m_billingAnchorDate = std::forward<BillingAnchorDateT>(value);
123 }
124 template <typename BillingAnchorDateT = Aws::Utils::DateTime>
125 Subscription& WithBillingAnchorDate(BillingAnchorDateT&& value) {
126 SetBillingAnchorDate(std::forward<BillingAnchorDateT>(value));
127 return *this;
128 }
130
132
135 inline BillingCycle GetBillingCycle() const { return m_billingCycle; }
136 inline bool BillingCycleHasBeenSet() const { return m_billingCycleHasBeenSet; }
137 inline void SetBillingCycle(BillingCycle value) {
138 m_billingCycleHasBeenSet = true;
139 m_billingCycle = value;
140 }
142 SetBillingCycle(value);
143 return *this;
144 }
146 private:
147 Aws::String m_appId;
148
149 Aws::String m_userId;
150
151 Aws::String m_planId;
152
153 Aws::Utils::DateTime m_effectiveAt{};
154
155 Aws::Utils::DateTime m_billingAnchorDate{};
156
157 BillingCycle m_billingCycle{BillingCycle::NOT_SET};
158 bool m_appIdHasBeenSet = false;
159 bool m_userIdHasBeenSet = false;
160 bool m_planIdHasBeenSet = false;
161 bool m_effectiveAtHasBeenSet = false;
162 bool m_billingAnchorDateHasBeenSet = false;
163 bool m_billingCycleHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace AppMonetization
168} // namespace Aws
const Aws::Utils::DateTime & GetBillingAnchorDate() const
void SetBillingCycle(BillingCycle value)
AWS_APPMONETIZATION_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEffectiveAt(EffectiveAtT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithBillingAnchorDate(BillingAnchorDateT &&value)
Subscription & WithPlanId(PlanIdT &&value)
AWS_APPMONETIZATION_API Subscription()=default
const Aws::Utils::DateTime & GetEffectiveAt() const
const Aws::String & GetPlanId() const
const Aws::String & GetUserId() const
Subscription & WithUserId(UserIdT &&value)
Subscription & WithEffectiveAt(EffectiveAtT &&value)
void SetBillingAnchorDate(BillingAnchorDateT &&value)
Subscription & WithBillingCycle(BillingCycle value)
const Aws::String & GetAppId() const
Subscription & WithAppId(AppIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue