AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SubscriptionSummary.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
33 public:
34 AWS_APPMONETIZATION_API SubscriptionSummary() = default;
35 AWS_APPMONETIZATION_API SubscriptionSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API SubscriptionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAppId() const { return m_appId; }
44 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
45 template <typename AppIdT = Aws::String>
46 void SetAppId(AppIdT&& value) {
47 m_appIdHasBeenSet = true;
48 m_appId = std::forward<AppIdT>(value);
49 }
50 template <typename AppIdT = Aws::String>
51 SubscriptionSummary& WithAppId(AppIdT&& value) {
52 SetAppId(std::forward<AppIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetUserId() const { return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 template <typename UserIdT = Aws::String>
64 void SetUserId(UserIdT&& value) {
65 m_userIdHasBeenSet = true;
66 m_userId = std::forward<UserIdT>(value);
67 }
68 template <typename UserIdT = Aws::String>
69 SubscriptionSummary& WithUserId(UserIdT&& value) {
70 SetUserId(std::forward<UserIdT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetPlanId() const { return m_planId; }
83 inline bool PlanIdHasBeenSet() const { return m_planIdHasBeenSet; }
84 template <typename PlanIdT = Aws::String>
85 void SetPlanId(PlanIdT&& value) {
86 m_planIdHasBeenSet = true;
87 m_planId = std::forward<PlanIdT>(value);
88 }
89 template <typename PlanIdT = Aws::String>
90 SubscriptionSummary& WithPlanId(PlanIdT&& value) {
91 SetPlanId(std::forward<PlanIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetEffectiveAt() const { return m_effectiveAt; }
101 inline bool EffectiveAtHasBeenSet() const { return m_effectiveAtHasBeenSet; }
102 template <typename EffectiveAtT = Aws::Utils::DateTime>
103 void SetEffectiveAt(EffectiveAtT&& value) {
104 m_effectiveAtHasBeenSet = true;
105 m_effectiveAt = std::forward<EffectiveAtT>(value);
106 }
107 template <typename EffectiveAtT = Aws::Utils::DateTime>
108 SubscriptionSummary& WithEffectiveAt(EffectiveAtT&& value) {
109 SetEffectiveAt(std::forward<EffectiveAtT>(value));
110 return *this;
111 }
113
115
123 inline const Aws::Utils::DateTime& GetBillingAnchorDate() const { return m_billingAnchorDate; }
124 inline bool BillingAnchorDateHasBeenSet() const { return m_billingAnchorDateHasBeenSet; }
125 template <typename BillingAnchorDateT = Aws::Utils::DateTime>
126 void SetBillingAnchorDate(BillingAnchorDateT&& value) {
127 m_billingAnchorDateHasBeenSet = true;
128 m_billingAnchorDate = std::forward<BillingAnchorDateT>(value);
129 }
130 template <typename BillingAnchorDateT = Aws::Utils::DateTime>
131 SubscriptionSummary& WithBillingAnchorDate(BillingAnchorDateT&& value) {
132 SetBillingAnchorDate(std::forward<BillingAnchorDateT>(value));
133 return *this;
134 }
136
138
141 inline BillingCycle GetBillingCycle() const { return m_billingCycle; }
142 inline bool BillingCycleHasBeenSet() const { return m_billingCycleHasBeenSet; }
143 inline void SetBillingCycle(BillingCycle value) {
144 m_billingCycleHasBeenSet = true;
145 m_billingCycle = value;
146 }
148 SetBillingCycle(value);
149 return *this;
150 }
152 private:
153 Aws::String m_appId;
154
155 Aws::String m_userId;
156
157 Aws::String m_planId;
158
159 Aws::Utils::DateTime m_effectiveAt{};
160
161 Aws::Utils::DateTime m_billingAnchorDate{};
162
163 BillingCycle m_billingCycle{BillingCycle::NOT_SET};
164 bool m_appIdHasBeenSet = false;
165 bool m_userIdHasBeenSet = false;
166 bool m_planIdHasBeenSet = false;
167 bool m_effectiveAtHasBeenSet = false;
168 bool m_billingAnchorDateHasBeenSet = false;
169 bool m_billingCycleHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace AppMonetization
174} // namespace Aws
SubscriptionSummary & WithEffectiveAt(EffectiveAtT &&value)
const Aws::Utils::DateTime & GetBillingAnchorDate() const
AWS_APPMONETIZATION_API SubscriptionSummary()=default
SubscriptionSummary & WithUserId(UserIdT &&value)
SubscriptionSummary & WithBillingAnchorDate(BillingAnchorDateT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionSummary & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API SubscriptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionSummary & WithPlanId(PlanIdT &&value)
AWS_APPMONETIZATION_API SubscriptionSummary(Aws::Utils::Json::JsonView jsonValue)
SubscriptionSummary & WithBillingCycle(BillingCycle value)
const Aws::Utils::DateTime & GetEffectiveAt() const
void SetBillingAnchorDate(BillingAnchorDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue