AWS SDK for C++  1.9.106
AWS SDK for C++
UsageByAccount.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Macie2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const Currency& GetCurrency() const{ return m_currency; }
49 
54  inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
55 
60  inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
61 
66  inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
67 
72  inline UsageByAccount& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
73 
78  inline UsageByAccount& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
79 
80 
84  inline const Aws::String& GetEstimatedCost() const{ return m_estimatedCost; }
85 
89  inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
90 
94  inline void SetEstimatedCost(const Aws::String& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = value; }
95 
99  inline void SetEstimatedCost(Aws::String&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::move(value); }
100 
104  inline void SetEstimatedCost(const char* value) { m_estimatedCostHasBeenSet = true; m_estimatedCost.assign(value); }
105 
109  inline UsageByAccount& WithEstimatedCost(const Aws::String& value) { SetEstimatedCost(value); return *this;}
110 
114  inline UsageByAccount& WithEstimatedCost(Aws::String&& value) { SetEstimatedCost(std::move(value)); return *this;}
115 
119  inline UsageByAccount& WithEstimatedCost(const char* value) { SetEstimatedCost(value); return *this;}
120 
121 
126  inline const ServiceLimit& GetServiceLimit() const{ return m_serviceLimit; }
127 
132  inline bool ServiceLimitHasBeenSet() const { return m_serviceLimitHasBeenSet; }
133 
138  inline void SetServiceLimit(const ServiceLimit& value) { m_serviceLimitHasBeenSet = true; m_serviceLimit = value; }
139 
144  inline void SetServiceLimit(ServiceLimit&& value) { m_serviceLimitHasBeenSet = true; m_serviceLimit = std::move(value); }
145 
150  inline UsageByAccount& WithServiceLimit(const ServiceLimit& value) { SetServiceLimit(value); return *this;}
151 
156  inline UsageByAccount& WithServiceLimit(ServiceLimit&& value) { SetServiceLimit(std::move(value)); return *this;}
157 
158 
164  inline const UsageType& GetType() const{ return m_type; }
165 
171  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
172 
178  inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
179 
185  inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
186 
192  inline UsageByAccount& WithType(const UsageType& value) { SetType(value); return *this;}
193 
199  inline UsageByAccount& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
200 
201  private:
202 
203  Currency m_currency;
204  bool m_currencyHasBeenSet;
205 
206  Aws::String m_estimatedCost;
207  bool m_estimatedCostHasBeenSet;
208 
209  ServiceLimit m_serviceLimit;
210  bool m_serviceLimitHasBeenSet;
211 
212  UsageType m_type;
213  bool m_typeHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace Macie2
218 } // namespace Aws
Aws::Macie2::Model::UsageByAccount::UsageByAccount
UsageByAccount(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::UsageByAccount::GetType
const UsageType & GetType() const
Definition: UsageByAccount.h:164
Aws::Macie2::Model::UsageByAccount::SetCurrency
void SetCurrency(const Currency &value)
Definition: UsageByAccount.h:60
Aws::Macie2::Model::UsageByAccount::WithCurrency
UsageByAccount & WithCurrency(Currency &&value)
Definition: UsageByAccount.h:78
Aws::Macie2::Model::UsageByAccount
Definition: UsageByAccount.h:36
Macie2_EXPORTS.h
Aws::Macie2::Model::UsageByAccount::SetCurrency
void SetCurrency(Currency &&value)
Definition: UsageByAccount.h:66
Aws::Macie2::Model::UsageByAccount::CurrencyHasBeenSet
bool CurrencyHasBeenSet() const
Definition: UsageByAccount.h:54
Aws::Macie2::Model::UsageByAccount::WithServiceLimit
UsageByAccount & WithServiceLimit(ServiceLimit &&value)
Definition: UsageByAccount.h:156
Aws::Macie2::Model::UsageByAccount::SetEstimatedCost
void SetEstimatedCost(const Aws::String &value)
Definition: UsageByAccount.h:94
Aws::Macie2::Model::UsageByAccount::SetServiceLimit
void SetServiceLimit(const ServiceLimit &value)
Definition: UsageByAccount.h:138
Currency.h
Aws::Macie2::Model::UsageByAccount::SetType
void SetType(UsageType &&value)
Definition: UsageByAccount.h:185
Aws::Macie2::Model::UsageByAccount::SetEstimatedCost
void SetEstimatedCost(const char *value)
Definition: UsageByAccount.h:104
Aws::Macie2::Model::UsageByAccount::ServiceLimitHasBeenSet
bool ServiceLimitHasBeenSet() const
Definition: UsageByAccount.h:132
Aws::Macie2::Model::UsageByAccount::SetEstimatedCost
void SetEstimatedCost(Aws::String &&value)
Definition: UsageByAccount.h:99
Aws::Macie2::Model::UsageByAccount::GetServiceLimit
const ServiceLimit & GetServiceLimit() const
Definition: UsageByAccount.h:126
Aws::Macie2::Model::UsageByAccount::SetType
void SetType(const UsageType &value)
Definition: UsageByAccount.h:178
Aws::Macie2::Model::UsageType
UsageType
Definition: UsageType.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Macie2::Model::UsageByAccount::operator=
UsageByAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::UsageByAccount::EstimatedCostHasBeenSet
bool EstimatedCostHasBeenSet() const
Definition: UsageByAccount.h:89
Aws::Macie2::Model::UsageByAccount::WithCurrency
UsageByAccount & WithCurrency(const Currency &value)
Definition: UsageByAccount.h:72
Aws::Macie2::Model::ServiceLimit
Definition: ServiceLimit.h:33
Aws::Macie2::Model::UsageByAccount::WithEstimatedCost
UsageByAccount & WithEstimatedCost(const char *value)
Definition: UsageByAccount.h:119
Aws::Macie2::Model::UsageByAccount::WithServiceLimit
UsageByAccount & WithServiceLimit(const ServiceLimit &value)
Definition: UsageByAccount.h:150
Aws::Macie2::Model::UsageByAccount::WithEstimatedCost
UsageByAccount & WithEstimatedCost(const Aws::String &value)
Definition: UsageByAccount.h:109
Aws::Macie2::Model::UsageByAccount::GetCurrency
const Currency & GetCurrency() const
Definition: UsageByAccount.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::UsageByAccount::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::UsageByAccount::GetEstimatedCost
const Aws::String & GetEstimatedCost() const
Definition: UsageByAccount.h:84
Aws::Macie2::Model::UsageByAccount::SetServiceLimit
void SetServiceLimit(ServiceLimit &&value)
Definition: UsageByAccount.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::UsageByAccount::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UsageByAccount.h:171
Aws::Macie2::Model::UsageByAccount::UsageByAccount
UsageByAccount()
Aws::Macie2::Model::UsageByAccount::WithType
UsageByAccount & WithType(UsageType &&value)
Definition: UsageByAccount.h:199
Aws::Macie2::Model::UsageByAccount::WithEstimatedCost
UsageByAccount & WithEstimatedCost(Aws::String &&value)
Definition: UsageByAccount.h:114
Aws::Macie2::Model::Currency
Currency
Definition: Currency.h:17
UsageType.h
ServiceLimit.h
Aws::Macie2::Model::UsageByAccount::WithType
UsageByAccount & WithType(const UsageType &value)
Definition: UsageByAccount.h:192