AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MetricValue.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_COSTEXPLORER_API MetricValue() = default;
35 AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTEXPLORER_API MetricValue& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAmount() const { return m_amount; }
45 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
46 template<typename AmountT = Aws::String>
47 void SetAmount(AmountT&& value) { m_amountHasBeenSet = true; m_amount = std::forward<AmountT>(value); }
48 template<typename AmountT = Aws::String>
49 MetricValue& WithAmount(AmountT&& value) { SetAmount(std::forward<AmountT>(value)); return *this;}
51
53
56 inline const Aws::String& GetUnit() const { return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 template<typename UnitT = Aws::String>
59 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
60 template<typename UnitT = Aws::String>
61 MetricValue& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
63 private:
64
65 Aws::String m_amount;
66 bool m_amountHasBeenSet = false;
67
68 Aws::String m_unit;
69 bool m_unitHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CostExplorer
74} // namespace Aws
MetricValue & WithAmount(AmountT &&value)
Definition MetricValue.h:49
AWS_COSTEXPLORER_API MetricValue()=default
MetricValue & WithUnit(UnitT &&value)
Definition MetricValue.h:61
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAmount() const
Definition MetricValue.h:44
AWS_COSTEXPLORER_API MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition MetricValue.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue