AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Currency& GetCurrency() const{ return m_currency; }
51 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
52 inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
53 inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
54 inline UsageTotal& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
55 inline UsageTotal& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetEstimatedCost() const{ return m_estimatedCost; }
63 inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
64 inline void SetEstimatedCost(const Aws::String& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = value; }
65 inline void SetEstimatedCost(Aws::String&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::move(value); }
66 inline void SetEstimatedCost(const char* value) { m_estimatedCostHasBeenSet = true; m_estimatedCost.assign(value); }
67 inline UsageTotal& WithEstimatedCost(const Aws::String& value) { SetEstimatedCost(value); return *this;}
68 inline UsageTotal& WithEstimatedCost(Aws::String&& value) { SetEstimatedCost(std::move(value)); return *this;}
69 inline UsageTotal& WithEstimatedCost(const char* value) { SetEstimatedCost(value); return *this;}
71
73
80 inline const UsageType& GetType() const{ return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
83 inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
84 inline UsageTotal& WithType(const UsageType& value) { SetType(value); return *this;}
85 inline UsageTotal& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
87 private:
88
89 Currency m_currency;
90 bool m_currencyHasBeenSet = false;
91
92 Aws::String m_estimatedCost;
93 bool m_estimatedCostHasBeenSet = false;
94
95 UsageType m_type;
96 bool m_typeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Macie2
101} // namespace Aws
void SetEstimatedCost(const char *value)
Definition UsageTotal.h:66
AWS_MACIE2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
UsageTotal & WithEstimatedCost(const Aws::String &value)
Definition UsageTotal.h:67
void SetCurrency(Currency &&value)
Definition UsageTotal.h:53
const UsageType & GetType() const
Definition UsageTotal.h:80
UsageTotal & WithEstimatedCost(const char *value)
Definition UsageTotal.h:69
UsageTotal & WithCurrency(Currency &&value)
Definition UsageTotal.h:55
AWS_MACIE2_API UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EstimatedCostHasBeenSet() const
Definition UsageTotal.h:63
UsageTotal & WithType(const UsageType &value)
Definition UsageTotal.h:84
void SetEstimatedCost(Aws::String &&value)
Definition UsageTotal.h:65
void SetType(UsageType &&value)
Definition UsageTotal.h:83
void SetEstimatedCost(const Aws::String &value)
Definition UsageTotal.h:64
UsageTotal & WithCurrency(const Currency &value)
Definition UsageTotal.h:54
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCurrency(const Currency &value)
Definition UsageTotal.h:52
const Aws::String & GetEstimatedCost() const
Definition UsageTotal.h:62
UsageTotal & WithEstimatedCost(Aws::String &&value)
Definition UsageTotal.h:68
void SetType(const UsageType &value)
Definition UsageTotal.h:82
UsageTotal & WithType(UsageType &&value)
Definition UsageTotal.h:85
const Currency & GetCurrency() const
Definition UsageTotal.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue