AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
TierBand.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.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
28class TierBand {
29 public:
30 AWS_APPMONETIZATION_API TierBand() = default;
31 AWS_APPMONETIZATION_API TierBand(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API TierBand& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetFirstUnit() const { return m_firstUnit; }
40 inline bool FirstUnitHasBeenSet() const { return m_firstUnitHasBeenSet; }
41 inline void SetFirstUnit(long long value) {
42 m_firstUnitHasBeenSet = true;
43 m_firstUnit = value;
44 }
45 inline TierBand& WithFirstUnit(long long value) {
46 SetFirstUnit(value);
47 return *this;
48 }
50
52
55 inline long long GetLastUnit() const { return m_lastUnit; }
56 inline bool LastUnitHasBeenSet() const { return m_lastUnitHasBeenSet; }
57 inline void SetLastUnit(long long value) {
58 m_lastUnitHasBeenSet = true;
59 m_lastUnit = value;
60 }
61 inline TierBand& WithLastUnit(long long value) {
62 SetLastUnit(value);
63 return *this;
64 }
66
68
71 inline const Price& GetUnitPrice() const { return m_unitPrice; }
72 inline bool UnitPriceHasBeenSet() const { return m_unitPriceHasBeenSet; }
73 template <typename UnitPriceT = Price>
74 void SetUnitPrice(UnitPriceT&& value) {
75 m_unitPriceHasBeenSet = true;
76 m_unitPrice = std::forward<UnitPriceT>(value);
77 }
78 template <typename UnitPriceT = Price>
79 TierBand& WithUnitPrice(UnitPriceT&& value) {
80 SetUnitPrice(std::forward<UnitPriceT>(value));
81 return *this;
82 }
84 private:
85 long long m_firstUnit{0};
86
87 long long m_lastUnit{0};
88
89 Price m_unitPrice;
90 bool m_firstUnitHasBeenSet = false;
91 bool m_lastUnitHasBeenSet = false;
92 bool m_unitPriceHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace AppMonetization
97} // namespace Aws
TierBand & WithFirstUnit(long long value)
Definition TierBand.h:45
void SetUnitPrice(UnitPriceT &&value)
Definition TierBand.h:74
AWS_APPMONETIZATION_API TierBand(Aws::Utils::Json::JsonView jsonValue)
const Price & GetUnitPrice() const
Definition TierBand.h:71
TierBand & WithUnitPrice(UnitPriceT &&value)
Definition TierBand.h:79
TierBand & WithLastUnit(long long value)
Definition TierBand.h:61
void SetFirstUnit(long long value)
Definition TierBand.h:41
AWS_APPMONETIZATION_API TierBand & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUnit(long long value)
Definition TierBand.h:57
AWS_APPMONETIZATION_API TierBand()=default
Aws::Utils::Json::JsonValue JsonValue