AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ModelComparison.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/appmonetization/model/PricingModel.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
30 public:
31 AWS_APPMONETIZATION_API ModelComparison() = default;
32 AWS_APPMONETIZATION_API ModelComparison(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API ModelComparison& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline PricingModel GetPricingModel() const { return m_pricingModel; }
43 inline bool PricingModelHasBeenSet() const { return m_pricingModelHasBeenSet; }
44 inline void SetPricingModel(PricingModel value) {
45 m_pricingModelHasBeenSet = true;
46 m_pricingModel = value;
47 }
49 SetPricingModel(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMonthlyProfit() const { return m_monthlyProfit; }
59 inline bool MonthlyProfitHasBeenSet() const { return m_monthlyProfitHasBeenSet; }
60 template <typename MonthlyProfitT = Aws::String>
61 void SetMonthlyProfit(MonthlyProfitT&& value) {
62 m_monthlyProfitHasBeenSet = true;
63 m_monthlyProfit = std::forward<MonthlyProfitT>(value);
64 }
65 template <typename MonthlyProfitT = Aws::String>
66 ModelComparison& WithMonthlyProfit(MonthlyProfitT&& value) {
67 SetMonthlyProfit(std::forward<MonthlyProfitT>(value));
68 return *this;
69 }
71
73
76 inline const Price& GetMonthlyRevenue() const { return m_monthlyRevenue; }
77 inline bool MonthlyRevenueHasBeenSet() const { return m_monthlyRevenueHasBeenSet; }
78 template <typename MonthlyRevenueT = Price>
79 void SetMonthlyRevenue(MonthlyRevenueT&& value) {
80 m_monthlyRevenueHasBeenSet = true;
81 m_monthlyRevenue = std::forward<MonthlyRevenueT>(value);
82 }
83 template <typename MonthlyRevenueT = Price>
84 ModelComparison& WithMonthlyRevenue(MonthlyRevenueT&& value) {
85 SetMonthlyRevenue(std::forward<MonthlyRevenueT>(value));
86 return *this;
87 }
89
91
95 inline double GetMargin() const { return m_margin; }
96 inline bool MarginHasBeenSet() const { return m_marginHasBeenSet; }
97 inline void SetMargin(double value) {
98 m_marginHasBeenSet = true;
99 m_margin = value;
100 }
101 inline ModelComparison& WithMargin(double value) {
102 SetMargin(value);
103 return *this;
104 }
106
108
111 inline double GetPaidShare() const { return m_paidShare; }
112 inline bool PaidShareHasBeenSet() const { return m_paidShareHasBeenSet; }
113 inline void SetPaidShare(double value) {
114 m_paidShareHasBeenSet = true;
115 m_paidShare = value;
116 }
117 inline ModelComparison& WithPaidShare(double value) {
118 SetPaidShare(value);
119 return *this;
120 }
122 private:
123 PricingModel m_pricingModel{PricingModel::NOT_SET};
124
125 Aws::String m_monthlyProfit;
126
127 Price m_monthlyRevenue;
128
129 double m_margin{0.0};
130
131 double m_paidShare{0.0};
132 bool m_pricingModelHasBeenSet = false;
133 bool m_monthlyProfitHasBeenSet = false;
134 bool m_monthlyRevenueHasBeenSet = false;
135 bool m_marginHasBeenSet = false;
136 bool m_paidShareHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace AppMonetization
141} // namespace Aws
void SetMonthlyRevenue(MonthlyRevenueT &&value)
AWS_APPMONETIZATION_API ModelComparison & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMonthlyProfit(MonthlyProfitT &&value)
ModelComparison & WithMargin(double value)
ModelComparison & WithPricingModel(PricingModel value)
const Aws::String & GetMonthlyProfit() const
ModelComparison & WithPaidShare(double value)
AWS_APPMONETIZATION_API ModelComparison()=default
ModelComparison & WithMonthlyRevenue(MonthlyRevenueT &&value)
AWS_APPMONETIZATION_API ModelComparison(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
ModelComparison & WithMonthlyProfit(MonthlyProfitT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue