AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CostOutcome.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/BreakEvenRange.h>
9#include <aws/appmonetization/model/CostCover.h>
10#include <aws/appmonetization/model/CostCoverStatus.h>
11#include <aws/appmonetization/model/PlanRecommendationCostStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMonetization {
24namespace Model {
25
33 public:
34 AWS_APPMONETIZATION_API CostOutcome() = default;
35 AWS_APPMONETIZATION_API CostOutcome(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API CostOutcome& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline PlanRecommendationCostStatus GetStatus() const { return m_status; }
45 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 m_statusHasBeenSet = true;
48 m_status = value;
49 }
51 SetStatus(value);
52 return *this;
53 }
55
57
61 inline CostCoverStatus GetCoverStatus() const { return m_coverStatus; }
62 inline bool CoverStatusHasBeenSet() const { return m_coverStatusHasBeenSet; }
63 inline void SetCoverStatus(CostCoverStatus value) {
64 m_coverStatusHasBeenSet = true;
65 m_coverStatus = value;
66 }
68 SetCoverStatus(value);
69 return *this;
70 }
72
74
78 inline const Aws::Vector<CostCover>& GetCoverPrices() const { return m_coverPrices; }
79 inline bool CoverPricesHasBeenSet() const { return m_coverPricesHasBeenSet; }
80 template <typename CoverPricesT = Aws::Vector<CostCover>>
81 void SetCoverPrices(CoverPricesT&& value) {
82 m_coverPricesHasBeenSet = true;
83 m_coverPrices = std::forward<CoverPricesT>(value);
84 }
85 template <typename CoverPricesT = Aws::Vector<CostCover>>
86 CostOutcome& WithCoverPrices(CoverPricesT&& value) {
87 SetCoverPrices(std::forward<CoverPricesT>(value));
88 return *this;
89 }
90 template <typename CoverPricesT = CostCover>
91 CostOutcome& AddCoverPrices(CoverPricesT&& value) {
92 m_coverPricesHasBeenSet = true;
93 m_coverPrices.emplace_back(std::forward<CoverPricesT>(value));
94 return *this;
95 }
97
99
103 inline const BreakEvenRange& GetBreakEven() const { return m_breakEven; }
104 inline bool BreakEvenHasBeenSet() const { return m_breakEvenHasBeenSet; }
105 template <typename BreakEvenT = BreakEvenRange>
106 void SetBreakEven(BreakEvenT&& value) {
107 m_breakEvenHasBeenSet = true;
108 m_breakEven = std::forward<BreakEvenT>(value);
109 }
110 template <typename BreakEvenT = BreakEvenRange>
111 CostOutcome& WithBreakEven(BreakEvenT&& value) {
112 SetBreakEven(std::forward<BreakEvenT>(value));
113 return *this;
114 }
116
118
122 inline double GetImpliedMargin() const { return m_impliedMargin; }
123 inline bool ImpliedMarginHasBeenSet() const { return m_impliedMarginHasBeenSet; }
124 inline void SetImpliedMargin(double value) {
125 m_impliedMarginHasBeenSet = true;
126 m_impliedMargin = value;
127 }
128 inline CostOutcome& WithImpliedMargin(double value) {
129 SetImpliedMargin(value);
130 return *this;
131 }
133 private:
135
137
138 Aws::Vector<CostCover> m_coverPrices;
139
140 BreakEvenRange m_breakEven;
141
142 double m_impliedMargin{0.0};
143 bool m_statusHasBeenSet = false;
144 bool m_coverStatusHasBeenSet = false;
145 bool m_coverPricesHasBeenSet = false;
146 bool m_breakEvenHasBeenSet = false;
147 bool m_impliedMarginHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace AppMonetization
152} // namespace Aws
void SetBreakEven(BreakEvenT &&value)
const BreakEvenRange & GetBreakEven() const
void SetCoverPrices(CoverPricesT &&value)
Definition CostOutcome.h:81
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCoverStatus(CostCoverStatus value)
Definition CostOutcome.h:63
const Aws::Vector< CostCover > & GetCoverPrices() const
Definition CostOutcome.h:78
CostOutcome & WithImpliedMargin(double value)
AWS_APPMONETIZATION_API CostOutcome & operator=(Aws::Utils::Json::JsonView jsonValue)
CostOutcome & WithCoverStatus(CostCoverStatus value)
Definition CostOutcome.h:67
AWS_APPMONETIZATION_API CostOutcome()=default
AWS_APPMONETIZATION_API CostOutcome(Aws::Utils::Json::JsonView jsonValue)
CostOutcome & WithCoverPrices(CoverPricesT &&value)
Definition CostOutcome.h:86
CostOutcome & WithStatus(PlanRecommendationCostStatus value)
Definition CostOutcome.h:50
CostOutcome & AddCoverPrices(CoverPricesT &&value)
Definition CostOutcome.h:91
void SetStatus(PlanRecommendationCostStatus value)
Definition CostOutcome.h:46
CostOutcome & WithBreakEven(BreakEvenT &&value)
CostCoverStatus GetCoverStatus() const
Definition CostOutcome.h:61
PlanRecommendationCostStatus GetStatus() const
Definition CostOutcome.h:44
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue