AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
Usage.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/CloudProvider.h>
9#include <aws/inspector2/model/Currency.h>
10#include <aws/inspector2/model/UsageType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30class Usage {
31 public:
32 AWS_INSPECTOR2_API Usage() = default;
33 AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Usage& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline UsageType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(UsageType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
47 inline Usage& WithType(UsageType value) {
48 SetType(value);
49 return *this;
50 }
52
54
57 inline double GetTotal() const { return m_total; }
58 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
59 inline void SetTotal(double value) {
60 m_totalHasBeenSet = true;
61 m_total = value;
62 }
63 inline Usage& WithTotal(double value) {
64 SetTotal(value);
65 return *this;
66 }
68
70
73 inline double GetEstimatedMonthlyCost() const { return m_estimatedMonthlyCost; }
74 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
75 inline void SetEstimatedMonthlyCost(double value) {
76 m_estimatedMonthlyCostHasBeenSet = true;
77 m_estimatedMonthlyCost = value;
78 }
79 inline Usage& WithEstimatedMonthlyCost(double value) {
81 return *this;
82 }
84
86
89 inline Currency GetCurrency() const { return m_currency; }
90 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
91 inline void SetCurrency(Currency value) {
92 m_currencyHasBeenSet = true;
93 m_currency = value;
94 }
95 inline Usage& WithCurrency(Currency value) {
96 SetCurrency(value);
97 return *this;
98 }
100
102
105 inline CloudProvider GetCloudProvider() const { return m_cloudProvider; }
106 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
107 inline void SetCloudProvider(CloudProvider value) {
108 m_cloudProviderHasBeenSet = true;
109 m_cloudProvider = value;
110 }
112 SetCloudProvider(value);
113 return *this;
114 }
116 private:
118
119 double m_total{0.0};
120
121 double m_estimatedMonthlyCost{0.0};
122
123 Currency m_currency{Currency::NOT_SET};
124
125 CloudProvider m_cloudProvider{CloudProvider::NOT_SET};
126 bool m_typeHasBeenSet = false;
127 bool m_totalHasBeenSet = false;
128 bool m_estimatedMonthlyCostHasBeenSet = false;
129 bool m_currencyHasBeenSet = false;
130 bool m_cloudProviderHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Inspector2
135} // namespace Aws
void SetType(UsageType value)
Definition Usage.h:43
double GetEstimatedMonthlyCost() const
Definition Usage.h:73
AWS_INSPECTOR2_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CloudProviderHasBeenSet() const
Definition Usage.h:106
UsageType GetType() const
Definition Usage.h:41
void SetCloudProvider(CloudProvider value)
Definition Usage.h:107
bool EstimatedMonthlyCostHasBeenSet() const
Definition Usage.h:74
bool CurrencyHasBeenSet() const
Definition Usage.h:90
Usage & WithTotal(double value)
Definition Usage.h:63
void SetEstimatedMonthlyCost(double value)
Definition Usage.h:75
Usage & WithCurrency(Currency value)
Definition Usage.h:95
AWS_INSPECTOR2_API Usage(Aws::Utils::Json::JsonView jsonValue)
Currency GetCurrency() const
Definition Usage.h:89
bool TotalHasBeenSet() const
Definition Usage.h:58
void SetTotal(double value)
Definition Usage.h:59
bool TypeHasBeenSet() const
Definition Usage.h:42
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API Usage()=default
void SetCurrency(Currency value)
Definition Usage.h:91
CloudProvider GetCloudProvider() const
Definition Usage.h:105
Usage & WithType(UsageType value)
Definition Usage.h:47
Usage & WithEstimatedMonthlyCost(double value)
Definition Usage.h:79
double GetTotal() const
Definition Usage.h:57
Usage & WithCloudProvider(CloudProvider value)
Definition Usage.h:111
Aws::Utils::Json::JsonValue JsonValue