AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UsageTotal.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/Currency.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/model/UsageType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Macie2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_MACIE2_API UsageTotal() = default;
40 AWS_MACIE2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline Currency GetCurrency() const { return m_currency; }
51 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
52 inline void SetCurrency(Currency value) { m_currencyHasBeenSet = true; m_currency = value; }
53 inline UsageTotal& WithCurrency(Currency value) { SetCurrency(value); return *this;}
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) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::forward<EstimatedCostT>(value); }
64 template<typename EstimatedCostT = Aws::String>
65 UsageTotal& WithEstimatedCost(EstimatedCostT&& value) { SetEstimatedCost(std::forward<EstimatedCostT>(value)); return *this;}
67
69
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 UsageTotal& WithType(UsageType value) { SetType(value); return *this;}
81 private:
82
83 Currency m_currency{Currency::NOT_SET};
84 bool m_currencyHasBeenSet = false;
85
86 Aws::String m_estimatedCost;
87 bool m_estimatedCostHasBeenSet = false;
88
90 bool m_typeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Macie2
95} // namespace Aws
AWS_MACIE2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
UsageTotal & WithType(UsageType value)
Definition UsageTotal.h:79
UsageType GetType() const
Definition UsageTotal.h:76
void SetType(UsageType value)
Definition UsageTotal.h:78
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:52
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTotal & WithEstimatedCost(EstimatedCostT &&value)
Definition UsageTotal.h:65
const Aws::String & GetEstimatedCost() const
Definition UsageTotal.h:60
Currency GetCurrency() const
Definition UsageTotal.h:50
UsageTotal & WithCurrency(Currency value)
Definition UsageTotal.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue