AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Usage.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/Currency.h>
9#include <aws/inspector2/model/UsageType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
33 class Usage
34 {
35 public:
36 AWS_INSPECTOR2_API Usage() = default;
37 AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Usage& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline Currency GetCurrency() const { return m_currency; }
47 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
48 inline void SetCurrency(Currency value) { m_currencyHasBeenSet = true; m_currency = value; }
49 inline Usage& WithCurrency(Currency value) { SetCurrency(value); return *this;}
51
53
56 inline double GetEstimatedMonthlyCost() const { return m_estimatedMonthlyCost; }
57 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
58 inline void SetEstimatedMonthlyCost(double value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = value; }
59 inline Usage& WithEstimatedMonthlyCost(double value) { SetEstimatedMonthlyCost(value); return *this;}
61
63
66 inline double GetTotal() const { return m_total; }
67 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
68 inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; }
69 inline Usage& WithTotal(double value) { SetTotal(value); return *this;}
71
73
76 inline UsageType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(UsageType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline Usage& WithType(UsageType value) { SetType(value); return *this;}
81 private:
82
83 Currency m_currency{Currency::NOT_SET};
84 bool m_currencyHasBeenSet = false;
85
86 double m_estimatedMonthlyCost{0.0};
87 bool m_estimatedMonthlyCostHasBeenSet = false;
88
89 double m_total{0.0};
90 bool m_totalHasBeenSet = false;
91
93 bool m_typeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Inspector2
98} // namespace Aws
void SetType(UsageType value)
Definition Usage.h:78
double GetEstimatedMonthlyCost() const
Definition Usage.h:56
AWS_INSPECTOR2_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageType GetType() const
Definition Usage.h:76
bool EstimatedMonthlyCostHasBeenSet() const
Definition Usage.h:57
bool CurrencyHasBeenSet() const
Definition Usage.h:47
Usage & WithTotal(double value)
Definition Usage.h:69
void SetEstimatedMonthlyCost(double value)
Definition Usage.h:58
Usage & WithCurrency(Currency value)
Definition Usage.h:49
AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue)
Currency GetCurrency() const
Definition Usage.h:46
bool TotalHasBeenSet() const
Definition Usage.h:67
void SetTotal(double value)
Definition Usage.h:68
bool TypeHasBeenSet() const
Definition Usage.h:77
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API Usage()=default
void SetCurrency(Currency value)
Definition Usage.h:48
Usage & WithType(UsageType value)
Definition Usage.h:79
Usage & WithEstimatedMonthlyCost(double value)
Definition Usage.h:59
double GetTotal() const
Definition Usage.h:66
Aws::Utils::Json::JsonValue JsonValue