7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
19namespace CostExplorer {
40 template <
typename AmountT = Aws::String>
42 m_amountHasBeenSet =
true;
43 m_amount = std::forward<AmountT>(value);
45 template <
typename AmountT = Aws::String>
58 template <
typename UnitT = Aws::String>
60 m_unitHasBeenSet =
true;
61 m_unit = std::forward<UnitT>(value);
63 template <
typename UnitT = Aws::String>
65 SetUnit(std::forward<UnitT>(value));
73 bool m_amountHasBeenSet =
false;
74 bool m_unitHasBeenSet =
false;
MetricValue & WithAmount(AmountT &&value)
AWS_COSTEXPLORER_API MetricValue()=default
MetricValue & WithUnit(UnitT &&value)
bool AmountHasBeenSet() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAmount() const
void SetAmount(AmountT &&value)
AWS_COSTEXPLORER_API MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
bool UnitHasBeenSet() const
void SetUnit(UnitT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue