AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UsageByAccount.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/ServiceLimit.h>
11#include <aws/macie2/model/UsageType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2 {
23namespace Model {
24
32 public:
33 AWS_MACIE2_API UsageByAccount() = default;
34 AWS_MACIE2_API UsageByAccount(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline Currency GetCurrency() const { return m_currency; }
44 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
45 inline void SetCurrency(Currency value) {
46 m_currencyHasBeenSet = true;
47 m_currency = value;
48 }
50 SetCurrency(value);
51 return *this;
52 }
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) {
63 m_estimatedCostHasBeenSet = true;
64 m_estimatedCost = std::forward<EstimatedCostT>(value);
65 }
66 template <typename EstimatedCostT = Aws::String>
67 UsageByAccount& WithEstimatedCost(EstimatedCostT&& value) {
68 SetEstimatedCost(std::forward<EstimatedCostT>(value));
69 return *this;
70 }
72
74
78 inline const ServiceLimit& GetServiceLimit() const { return m_serviceLimit; }
79 inline bool ServiceLimitHasBeenSet() const { return m_serviceLimitHasBeenSet; }
80 template <typename ServiceLimitT = ServiceLimit>
81 void SetServiceLimit(ServiceLimitT&& value) {
82 m_serviceLimitHasBeenSet = true;
83 m_serviceLimit = std::forward<ServiceLimitT>(value);
84 }
85 template <typename ServiceLimitT = ServiceLimit>
86 UsageByAccount& WithServiceLimit(ServiceLimitT&& value) {
87 SetServiceLimit(std::forward<ServiceLimitT>(value));
88 return *this;
89 }
91
93
100 inline UsageType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(UsageType value) {
103 m_typeHasBeenSet = true;
104 m_type = value;
105 }
107 SetType(value);
108 return *this;
109 }
111 private:
112 Currency m_currency{Currency::NOT_SET};
113
114 Aws::String m_estimatedCost;
115
116 ServiceLimit m_serviceLimit;
117
119 bool m_currencyHasBeenSet = false;
120 bool m_estimatedCostHasBeenSet = false;
121 bool m_serviceLimitHasBeenSet = false;
122 bool m_typeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Macie2
127} // 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