AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Currency& GetCurrency() const{ return m_currency; }
47 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
48 inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
49 inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
50 inline Usage& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
51 inline Usage& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
53
55
58 inline double GetEstimatedMonthlyCost() const{ return m_estimatedMonthlyCost; }
59 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
60 inline void SetEstimatedMonthlyCost(double value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = value; }
61 inline Usage& WithEstimatedMonthlyCost(double value) { SetEstimatedMonthlyCost(value); return *this;}
63
65
68 inline double GetTotal() const{ return m_total; }
69 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
70 inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; }
71 inline Usage& WithTotal(double value) { SetTotal(value); return *this;}
73
75
78 inline const UsageType& GetType() const{ return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
81 inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
82 inline Usage& WithType(const UsageType& value) { SetType(value); return *this;}
83 inline Usage& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
85 private:
86
87 Currency m_currency;
88 bool m_currencyHasBeenSet = false;
89
90 double m_estimatedMonthlyCost;
91 bool m_estimatedMonthlyCostHasBeenSet = false;
92
93 double m_total;
94 bool m_totalHasBeenSet = false;
95
96 UsageType m_type;
97 bool m_typeHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Inspector2
102} // namespace Aws
double GetEstimatedMonthlyCost() const
Definition Usage.h:58
AWS_INSPECTOR2_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
const UsageType & GetType() const
Definition Usage.h:78
Usage & WithCurrency(const Currency &value)
Definition Usage.h:50
void SetType(const UsageType &value)
Definition Usage.h:80
AWS_INSPECTOR2_API Usage()
Usage & WithCurrency(Currency &&value)
Definition Usage.h:51
void SetCurrency(Currency &&value)
Definition Usage.h:49
bool EstimatedMonthlyCostHasBeenSet() const
Definition Usage.h:59
bool CurrencyHasBeenSet() const
Definition Usage.h:47
void SetCurrency(const Currency &value)
Definition Usage.h:48
Usage & WithTotal(double value)
Definition Usage.h:71
Usage & WithType(const UsageType &value)
Definition Usage.h:82
void SetEstimatedMonthlyCost(double value)
Definition Usage.h:60
AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue)
const Currency & GetCurrency() const
Definition Usage.h:46
bool TotalHasBeenSet() const
Definition Usage.h:69
void SetTotal(double value)
Definition Usage.h:70
void SetType(UsageType &&value)
Definition Usage.h:81
bool TypeHasBeenSet() const
Definition Usage.h:79
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Usage & WithType(UsageType &&value)
Definition Usage.h:83
Usage & WithEstimatedMonthlyCost(double value)
Definition Usage.h:61
double GetTotal() const
Definition Usage.h:68
Aws::Utils::Json::JsonValue JsonValue