AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UsageByAccount.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/ServiceLimit.h>
11#include <aws/macie2/model/UsageType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Macie2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MACIE2_API UsageByAccount() = default;
39 AWS_MACIE2_API UsageByAccount(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline Currency GetCurrency() const { return m_currency; }
50 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
51 inline void SetCurrency(Currency value) { m_currencyHasBeenSet = true; m_currency = value; }
52 inline UsageByAccount& WithCurrency(Currency value) { SetCurrency(value); return *this;}
54
56
59 inline const Aws::String& GetEstimatedCost() const { return m_estimatedCost; }
60 inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
61 template<typename EstimatedCostT = Aws::String>
62 void SetEstimatedCost(EstimatedCostT&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::forward<EstimatedCostT>(value); }
63 template<typename EstimatedCostT = Aws::String>
64 UsageByAccount& WithEstimatedCost(EstimatedCostT&& value) { SetEstimatedCost(std::forward<EstimatedCostT>(value)); return *this;}
66
68
72 inline const ServiceLimit& GetServiceLimit() const { return m_serviceLimit; }
73 inline bool ServiceLimitHasBeenSet() const { return m_serviceLimitHasBeenSet; }
74 template<typename ServiceLimitT = ServiceLimit>
75 void SetServiceLimit(ServiceLimitT&& value) { m_serviceLimitHasBeenSet = true; m_serviceLimit = std::forward<ServiceLimitT>(value); }
76 template<typename ServiceLimitT = ServiceLimit>
77 UsageByAccount& WithServiceLimit(ServiceLimitT&& value) { SetServiceLimit(std::forward<ServiceLimitT>(value)); return *this;}
79
81
88 inline UsageType GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(UsageType value) { m_typeHasBeenSet = true; m_type = value; }
91 inline UsageByAccount& WithType(UsageType value) { SetType(value); return *this;}
93 private:
94
95 Currency m_currency{Currency::NOT_SET};
96 bool m_currencyHasBeenSet = false;
97
98 Aws::String m_estimatedCost;
99 bool m_estimatedCostHasBeenSet = false;
100
101 ServiceLimit m_serviceLimit;
102 bool m_serviceLimitHasBeenSet = false;
103
105 bool m_typeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Macie2
110} // namespace Aws
void SetServiceLimit(ServiceLimitT &&value)
AWS_MACIE2_API UsageByAccount(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API UsageByAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API UsageByAccount()=default
void SetEstimatedCost(EstimatedCostT &&value)
const ServiceLimit & GetServiceLimit() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageByAccount & WithEstimatedCost(EstimatedCostT &&value)
UsageByAccount & WithCurrency(Currency value)
UsageByAccount & WithType(UsageType value)
const Aws::String & GetEstimatedCost() const
UsageByAccount & WithServiceLimit(ServiceLimitT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue