AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CheckoutDropOff.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AppMonetization {
17namespace Model {
18
27 public:
28 AWS_APPMONETIZATION_API CheckoutDropOff() = default;
29 AWS_APPMONETIZATION_API CheckoutDropOff(Aws::Utils::Json::JsonView jsonValue);
30 AWS_APPMONETIZATION_API CheckoutDropOff& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline double GetFreePlan() const { return m_freePlan; }
39 inline bool FreePlanHasBeenSet() const { return m_freePlanHasBeenSet; }
40 inline void SetFreePlan(double value) {
41 m_freePlanHasBeenSet = true;
42 m_freePlan = value;
43 }
44 inline CheckoutDropOff& WithFreePlan(double value) {
45 SetFreePlan(value);
46 return *this;
47 }
49
51
55 inline double GetFlat() const { return m_flat; }
56 inline bool FlatHasBeenSet() const { return m_flatHasBeenSet; }
57 inline void SetFlat(double value) {
58 m_flatHasBeenSet = true;
59 m_flat = value;
60 }
61 inline CheckoutDropOff& WithFlat(double value) {
62 SetFlat(value);
63 return *this;
64 }
66
68
73 inline double GetPerUse() const { return m_perUse; }
74 inline bool PerUseHasBeenSet() const { return m_perUseHasBeenSet; }
75 inline void SetPerUse(double value) {
76 m_perUseHasBeenSet = true;
77 m_perUse = value;
78 }
79 inline CheckoutDropOff& WithPerUse(double value) {
80 SetPerUse(value);
81 return *this;
82 }
84
86
91 inline double GetTiered() const { return m_tiered; }
92 inline bool TieredHasBeenSet() const { return m_tieredHasBeenSet; }
93 inline void SetTiered(double value) {
94 m_tieredHasBeenSet = true;
95 m_tiered = value;
96 }
97 inline CheckoutDropOff& WithTiered(double value) {
98 SetTiered(value);
99 return *this;
100 }
102 private:
103 double m_freePlan{0.0};
104
105 double m_flat{0.0};
106
107 double m_perUse{0.0};
108
109 double m_tiered{0.0};
110 bool m_freePlanHasBeenSet = false;
111 bool m_flatHasBeenSet = false;
112 bool m_perUseHasBeenSet = false;
113 bool m_tieredHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AppMonetization
118} // namespace Aws
CheckoutDropOff & WithFlat(double value)
CheckoutDropOff & WithPerUse(double value)
AWS_APPMONETIZATION_API CheckoutDropOff(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API CheckoutDropOff & operator=(Aws::Utils::Json::JsonView jsonValue)
CheckoutDropOff & WithTiered(double value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API CheckoutDropOff()=default
CheckoutDropOff & WithFreePlan(double value)
Aws::Utils::Json::JsonValue JsonValue