AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
FreeTierOutcome.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/FreeTierStatus.h>
9#include <aws/appmonetization/model/FreeTierStatusSource.h>
10#include <aws/appmonetization/model/Price.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
40 public:
41 AWS_APPMONETIZATION_API FreeTierOutcome() = default;
42 AWS_APPMONETIZATION_API FreeTierOutcome(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPMONETIZATION_API FreeTierOutcome& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline FreeTierStatus GetStatus() const { return m_status; }
51 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
52 inline void SetStatus(FreeTierStatus value) {
53 m_statusHasBeenSet = true;
54 m_status = value;
55 }
57 SetStatus(value);
58 return *this;
59 }
61
63
67 inline FreeTierStatusSource GetStatusSource() const { return m_statusSource; }
68 inline bool StatusSourceHasBeenSet() const { return m_statusSourceHasBeenSet; }
70 m_statusSourceHasBeenSet = true;
71 m_statusSource = value;
72 }
74 SetStatusSource(value);
75 return *this;
76 }
78
80
83 inline int GetTrialDays() const { return m_trialDays; }
84 inline bool TrialDaysHasBeenSet() const { return m_trialDaysHasBeenSet; }
85 inline void SetTrialDays(int value) {
86 m_trialDaysHasBeenSet = true;
87 m_trialDays = value;
88 }
89 inline FreeTierOutcome& WithTrialDays(int value) {
90 SetTrialDays(value);
91 return *this;
92 }
94
96
100 inline double GetFreeUsers() const { return m_freeUsers; }
101 inline bool FreeUsersHasBeenSet() const { return m_freeUsersHasBeenSet; }
102 inline void SetFreeUsers(double value) {
103 m_freeUsersHasBeenSet = true;
104 m_freeUsers = value;
105 }
106 inline FreeTierOutcome& WithFreeUsers(double value) {
107 SetFreeUsers(value);
108 return *this;
109 }
111
113
116 inline double GetConversion() const { return m_conversion; }
117 inline bool ConversionHasBeenSet() const { return m_conversionHasBeenSet; }
118 inline void SetConversion(double value) {
119 m_conversionHasBeenSet = true;
120 m_conversion = value;
121 }
122 inline FreeTierOutcome& WithConversion(double value) {
123 SetConversion(value);
124 return *this;
125 }
127
129
134 inline const Price& GetMonthlyCost() const { return m_monthlyCost; }
135 inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; }
136 template <typename MonthlyCostT = Price>
137 void SetMonthlyCost(MonthlyCostT&& value) {
138 m_monthlyCostHasBeenSet = true;
139 m_monthlyCost = std::forward<MonthlyCostT>(value);
140 }
141 template <typename MonthlyCostT = Price>
142 FreeTierOutcome& WithMonthlyCost(MonthlyCostT&& value) {
143 SetMonthlyCost(std::forward<MonthlyCostT>(value));
144 return *this;
145 }
147 private:
149
151
152 int m_trialDays{0};
153
154 double m_freeUsers{0.0};
155
156 double m_conversion{0.0};
157
158 Price m_monthlyCost;
159 bool m_statusHasBeenSet = false;
160 bool m_statusSourceHasBeenSet = false;
161 bool m_trialDaysHasBeenSet = false;
162 bool m_freeUsersHasBeenSet = false;
163 bool m_conversionHasBeenSet = false;
164 bool m_monthlyCostHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace AppMonetization
169} // namespace Aws
FreeTierStatusSource GetStatusSource() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTierOutcome & WithMonthlyCost(MonthlyCostT &&value)
FreeTierOutcome & WithTrialDays(int value)
AWS_APPMONETIZATION_API FreeTierOutcome & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API FreeTierOutcome(Aws::Utils::Json::JsonView jsonValue)
void SetStatusSource(FreeTierStatusSource value)
FreeTierOutcome & WithFreeUsers(double value)
FreeTierOutcome & WithStatus(FreeTierStatus value)
FreeTierOutcome & WithConversion(double value)
FreeTierOutcome & WithStatusSource(FreeTierStatusSource value)
AWS_APPMONETIZATION_API FreeTierOutcome()=default
Aws::Utils::Json::JsonValue JsonValue