AWS SDK for C++  1.9.108
AWS SDK for C++
UsageTotal.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Macie2
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
49  inline const Currency& GetCurrency() const{ return m_currency; }
50 
55  inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
56 
61  inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
62 
67  inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
68 
73  inline UsageTotal& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
74 
79  inline UsageTotal& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
80 
81 
85  inline const Aws::String& GetEstimatedCost() const{ return m_estimatedCost; }
86 
90  inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
91 
95  inline void SetEstimatedCost(const Aws::String& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = value; }
96 
100  inline void SetEstimatedCost(Aws::String&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::move(value); }
101 
105  inline void SetEstimatedCost(const char* value) { m_estimatedCostHasBeenSet = true; m_estimatedCost.assign(value); }
106 
110  inline UsageTotal& WithEstimatedCost(const Aws::String& value) { SetEstimatedCost(value); return *this;}
111 
115  inline UsageTotal& WithEstimatedCost(Aws::String&& value) { SetEstimatedCost(std::move(value)); return *this;}
116 
120  inline UsageTotal& WithEstimatedCost(const char* value) { SetEstimatedCost(value); return *this;}
121 
122 
128  inline const UsageType& GetType() const{ return m_type; }
129 
135  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 
142  inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
143 
149  inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
150 
156  inline UsageTotal& WithType(const UsageType& value) { SetType(value); return *this;}
157 
163  inline UsageTotal& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
164 
165  private:
166 
167  Currency m_currency;
168  bool m_currencyHasBeenSet;
169 
170  Aws::String m_estimatedCost;
171  bool m_estimatedCostHasBeenSet;
172 
173  UsageType m_type;
174  bool m_typeHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace Macie2
179 } // namespace Aws
Aws::Macie2::Model::UsageTotal::SetCurrency
void SetCurrency(Currency &&value)
Definition: UsageTotal.h:67
Aws::Macie2::Model::UsageTotal::GetType
const UsageType & GetType() const
Definition: UsageTotal.h:128
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::UsageTotal::SetType
void SetType(UsageType &&value)
Definition: UsageTotal.h:149
Macie2_EXPORTS.h
Aws::Macie2::Model::UsageTotal::operator=
UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
Currency.h
Aws::Macie2::Model::UsageTotal::SetEstimatedCost
void SetEstimatedCost(const Aws::String &value)
Definition: UsageTotal.h:95
Aws::Macie2::Model::UsageTotal::WithType
UsageTotal & WithType(UsageType &&value)
Definition: UsageTotal.h:163
Aws::Macie2::Model::UsageTotal::GetCurrency
const Currency & GetCurrency() const
Definition: UsageTotal.h:49
Aws::Macie2::Model::UsageTotal::SetEstimatedCost
void SetEstimatedCost(const char *value)
Definition: UsageTotal.h:105
Aws::Macie2::Model::UsageTotal::SetType
void SetType(const UsageType &value)
Definition: UsageTotal.h:142
Aws::Macie2::Model::UsageTotal::SetCurrency
void SetCurrency(const Currency &value)
Definition: UsageTotal.h:61
Aws::Macie2::Model::UsageType
UsageType
Definition: UsageType.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Macie2::Model::UsageTotal::SetEstimatedCost
void SetEstimatedCost(Aws::String &&value)
Definition: UsageTotal.h:100
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::UsageTotal::UsageTotal
UsageTotal()
Aws::Macie2::Model::UsageTotal::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UsageTotal.h:135
Aws::Macie2::Model::UsageTotal::WithCurrency
UsageTotal & WithCurrency(Currency &&value)
Definition: UsageTotal.h:79
Aws::Macie2::Model::UsageTotal::WithEstimatedCost
UsageTotal & WithEstimatedCost(Aws::String &&value)
Definition: UsageTotal.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::UsageTotal::UsageTotal
UsageTotal(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::UsageTotal::EstimatedCostHasBeenSet
bool EstimatedCostHasBeenSet() const
Definition: UsageTotal.h:90
Aws::Macie2::Model::UsageTotal::WithEstimatedCost
UsageTotal & WithEstimatedCost(const Aws::String &value)
Definition: UsageTotal.h:110
Aws::Macie2::Model::UsageTotal::GetEstimatedCost
const Aws::String & GetEstimatedCost() const
Definition: UsageTotal.h:85
Aws::Macie2::Model::UsageTotal::CurrencyHasBeenSet
bool CurrencyHasBeenSet() const
Definition: UsageTotal.h:55
Aws::Macie2::Model::UsageTotal
Definition: UsageTotal.h:37
Aws::Macie2::Model::Currency
Currency
Definition: Currency.h:17
UsageType.h
Aws::Macie2::Model::UsageTotal::WithCurrency
UsageTotal & WithCurrency(const Currency &value)
Definition: UsageTotal.h:73
Aws::Macie2::Model::UsageTotal::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::UsageTotal::WithEstimatedCost
UsageTotal & WithEstimatedCost(const char *value)
Definition: UsageTotal.h:120
Aws::Macie2::Model::UsageTotal::WithType
UsageTotal & WithType(const UsageType &value)
Definition: UsageTotal.h:156