AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UsageTotal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/Currency.h>
10#include <aws/macie2/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 Macie2 {
22namespace Model {
23
33 public:
34 AWS_MACIE2_API UsageTotal() = default;
35 AWS_MACIE2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline Currency GetCurrency() const { return m_currency; }
45 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
46 inline void SetCurrency(Currency value) {
47 m_currencyHasBeenSet = true;
48 m_currency = value;
49 }
51 SetCurrency(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEstimatedCost() const { return m_estimatedCost; }
61 inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
62 template <typename EstimatedCostT = Aws::String>
63 void SetEstimatedCost(EstimatedCostT&& value) {
64 m_estimatedCostHasBeenSet = true;
65 m_estimatedCost = std::forward<EstimatedCostT>(value);
66 }
67 template <typename EstimatedCostT = Aws::String>
68 UsageTotal& WithEstimatedCost(EstimatedCostT&& value) {
69 SetEstimatedCost(std::forward<EstimatedCostT>(value));
70 return *this;
71 }
73
75
82 inline UsageType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(UsageType value) {
85 m_typeHasBeenSet = true;
86 m_type = value;
87 }
88 inline UsageTotal& WithType(UsageType value) {
89 SetType(value);
90 return *this;
91 }
93 private:
94 Currency m_currency{Currency::NOT_SET};
95
96 Aws::String m_estimatedCost;
97
99 bool m_currencyHasBeenSet = false;
100 bool m_estimatedCostHasBeenSet = false;
101 bool m_typeHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Macie2
106} // namespace Aws
AWS_MACIE2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
UsageTotal & WithType(UsageType value)
Definition UsageTotal.h:88
UsageType GetType() const
Definition UsageTotal.h:82
void SetType(UsageType value)
Definition UsageTotal.h:84
AWS_MACIE2_API UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API UsageTotal()=default
bool EstimatedCostHasBeenSet() const
Definition UsageTotal.h:61
void SetEstimatedCost(EstimatedCostT &&value)
Definition UsageTotal.h:63
void SetCurrency(Currency value)
Definition UsageTotal.h:46
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTotal & WithEstimatedCost(EstimatedCostT &&value)
Definition UsageTotal.h:68
const Aws::String & GetEstimatedCost() const
Definition UsageTotal.h:60
Currency GetCurrency() const
Definition UsageTotal.h:44
UsageTotal & WithCurrency(Currency value)
Definition UsageTotal.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue