AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
29class Usage {
30 public:
31 AWS_INSPECTOR2_API Usage() = default;
32 AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Usage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline UsageType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(UsageType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
46 inline Usage& WithType(UsageType value) {
47 SetType(value);
48 return *this;
49 }
51
53
56 inline double GetTotal() const { return m_total; }
57 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
58 inline void SetTotal(double value) {
59 m_totalHasBeenSet = true;
60 m_total = value;
61 }
62 inline Usage& WithTotal(double value) {
63 SetTotal(value);
64 return *this;
65 }
67
69
72 inline double GetEstimatedMonthlyCost() const { return m_estimatedMonthlyCost; }
73 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
74 inline void SetEstimatedMonthlyCost(double value) {
75 m_estimatedMonthlyCostHasBeenSet = true;
76 m_estimatedMonthlyCost = value;
77 }
78 inline Usage& WithEstimatedMonthlyCost(double value) {
80 return *this;
81 }
83
85
88 inline Currency GetCurrency() const { return m_currency; }
89 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
90 inline void SetCurrency(Currency value) {
91 m_currencyHasBeenSet = true;
92 m_currency = value;
93 }
94 inline Usage& WithCurrency(Currency value) {
95 SetCurrency(value);
96 return *this;
97 }
99 private:
101
102 double m_total{0.0};
103
104 double m_estimatedMonthlyCost{0.0};
105
106 Currency m_currency{Currency::NOT_SET};
107 bool m_typeHasBeenSet = false;
108 bool m_totalHasBeenSet = false;
109 bool m_estimatedMonthlyCostHasBeenSet = false;
110 bool m_currencyHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Inspector2
115} // namespace Aws
void SetType(UsageType value)
Definition Usage.h:42
double GetEstimatedMonthlyCost() const
Definition Usage.h:72
AWS_INSPECTOR2_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageType GetType() const
Definition Usage.h:40
bool EstimatedMonthlyCostHasBeenSet() const
Definition Usage.h:73
bool CurrencyHasBeenSet() const
Definition Usage.h:89
Usage & WithTotal(double value)
Definition Usage.h:62
void SetEstimatedMonthlyCost(double value)
Definition Usage.h:74
Usage & WithCurrency(Currency value)
Definition Usage.h:94
AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue)
Currency GetCurrency() const
Definition Usage.h:88
bool TotalHasBeenSet() const
Definition Usage.h:57
void SetTotal(double value)
Definition Usage.h:58
bool TypeHasBeenSet() const
Definition Usage.h:41
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API Usage()=default
void SetCurrency(Currency value)
Definition Usage.h:90
Usage & WithType(UsageType value)
Definition Usage.h:46
Usage & WithEstimatedMonthlyCost(double value)
Definition Usage.h:78
double GetTotal() const
Definition Usage.h:56
Aws::Utils::Json::JsonValue JsonValue