AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
BreakEvenPoint.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
28 public:
29 AWS_APPMONETIZATION_API BreakEvenPoint() = default;
30 AWS_APPMONETIZATION_API BreakEvenPoint(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API BreakEvenPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Price& GetCostPerPayer() const { return m_costPerPayer; }
40 inline bool CostPerPayerHasBeenSet() const { return m_costPerPayerHasBeenSet; }
41 template <typename CostPerPayerT = Price>
42 void SetCostPerPayer(CostPerPayerT&& value) {
43 m_costPerPayerHasBeenSet = true;
44 m_costPerPayer = std::forward<CostPerPayerT>(value);
45 }
46 template <typename CostPerPayerT = Price>
47 BreakEvenPoint& WithCostPerPayer(CostPerPayerT&& value) {
48 SetCostPerPayer(std::forward<CostPerPayerT>(value));
49 return *this;
50 }
52
54
57 inline double GetPayers() const { return m_payers; }
58 inline bool PayersHasBeenSet() const { return m_payersHasBeenSet; }
59 inline void SetPayers(double value) {
60 m_payersHasBeenSet = true;
61 m_payers = value;
62 }
63 inline BreakEvenPoint& WithPayers(double value) {
64 SetPayers(value);
65 return *this;
66 }
68 private:
69 Price m_costPerPayer;
70
71 double m_payers{0.0};
72 bool m_costPerPayerHasBeenSet = false;
73 bool m_payersHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AppMonetization
78} // namespace Aws
AWS_APPMONETIZATION_API BreakEvenPoint(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API BreakEvenPoint()=default
BreakEvenPoint & WithPayers(double value)
BreakEvenPoint & WithCostPerPayer(CostPerPayerT &&value)
AWS_APPMONETIZATION_API BreakEvenPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCostPerPayer(CostPerPayerT &&value)
Aws::Utils::Json::JsonValue JsonValue