AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Impact.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CostExplorer {
17namespace Model {
18
24class Impact {
25 public:
26 AWS_COSTEXPLORER_API Impact() = default;
27 AWS_COSTEXPLORER_API Impact(Aws::Utils::Json::JsonView jsonValue);
28 AWS_COSTEXPLORER_API Impact& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline double GetMaxImpact() const { return m_maxImpact; }
36 inline bool MaxImpactHasBeenSet() const { return m_maxImpactHasBeenSet; }
37 inline void SetMaxImpact(double value) {
38 m_maxImpactHasBeenSet = true;
39 m_maxImpact = value;
40 }
41 inline Impact& WithMaxImpact(double value) {
42 SetMaxImpact(value);
43 return *this;
44 }
46
48
53 inline double GetTotalImpact() const { return m_totalImpact; }
54 inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; }
55 inline void SetTotalImpact(double value) {
56 m_totalImpactHasBeenSet = true;
57 m_totalImpact = value;
58 }
59 inline Impact& WithTotalImpact(double value) {
60 SetTotalImpact(value);
61 return *this;
62 }
64
66
69 inline double GetTotalActualSpend() const { return m_totalActualSpend; }
70 inline bool TotalActualSpendHasBeenSet() const { return m_totalActualSpendHasBeenSet; }
71 inline void SetTotalActualSpend(double value) {
72 m_totalActualSpendHasBeenSet = true;
73 m_totalActualSpend = value;
74 }
75 inline Impact& WithTotalActualSpend(double value) {
77 return *this;
78 }
80
82
87 inline double GetTotalExpectedSpend() const { return m_totalExpectedSpend; }
88 inline bool TotalExpectedSpendHasBeenSet() const { return m_totalExpectedSpendHasBeenSet; }
89 inline void SetTotalExpectedSpend(double value) {
90 m_totalExpectedSpendHasBeenSet = true;
91 m_totalExpectedSpend = value;
92 }
93 inline Impact& WithTotalExpectedSpend(double value) {
95 return *this;
96 }
98
100
107 inline double GetTotalImpactPercentage() const { return m_totalImpactPercentage; }
108 inline bool TotalImpactPercentageHasBeenSet() const { return m_totalImpactPercentageHasBeenSet; }
109 inline void SetTotalImpactPercentage(double value) {
110 m_totalImpactPercentageHasBeenSet = true;
111 m_totalImpactPercentage = value;
112 }
113 inline Impact& WithTotalImpactPercentage(double value) {
115 return *this;
116 }
118 private:
119 double m_maxImpact{0.0};
120
121 double m_totalImpact{0.0};
122
123 double m_totalActualSpend{0.0};
124
125 double m_totalExpectedSpend{0.0};
126
127 double m_totalImpactPercentage{0.0};
128 bool m_maxImpactHasBeenSet = false;
129 bool m_totalImpactHasBeenSet = false;
130 bool m_totalActualSpendHasBeenSet = false;
131 bool m_totalExpectedSpendHasBeenSet = false;
132 bool m_totalImpactPercentageHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace CostExplorer
137} // namespace Aws
void SetTotalActualSpend(double value)
Definition Impact.h:71
double GetTotalActualSpend() const
Definition Impact.h:69
void SetTotalImpactPercentage(double value)
Definition Impact.h:109
AWS_COSTEXPLORER_API Impact()=default
Impact & WithTotalActualSpend(double value)
Definition Impact.h:75
double GetMaxImpact() const
Definition Impact.h:35
Impact & WithTotalImpact(double value)
Definition Impact.h:59
Impact & WithMaxImpact(double value)
Definition Impact.h:41
Impact & WithTotalExpectedSpend(double value)
Definition Impact.h:93
double GetTotalImpactPercentage() const
Definition Impact.h:107
double GetTotalExpectedSpend() const
Definition Impact.h:87
bool TotalImpactPercentageHasBeenSet() const
Definition Impact.h:108
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API Impact & operator=(Aws::Utils::Json::JsonView jsonValue)
Impact & WithTotalImpactPercentage(double value)
Definition Impact.h:113
void SetMaxImpact(double value)
Definition Impact.h:37
double GetTotalImpact() const
Definition Impact.h:53
void SetTotalImpact(double value)
Definition Impact.h:55
void SetTotalExpectedSpend(double value)
Definition Impact.h:89
bool TotalImpactHasBeenSet() const
Definition Impact.h:54
bool TotalActualSpendHasBeenSet() const
Definition Impact.h:70
bool TotalExpectedSpendHasBeenSet() const
Definition Impact.h:88
bool MaxImpactHasBeenSet() const
Definition Impact.h:36
AWS_COSTEXPLORER_API Impact(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue