AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostExplorer {
20namespace Model {
21
28 public:
29 AWS_COSTEXPLORER_API MetricValue() = default;
30 AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue);
31 AWS_COSTEXPLORER_API MetricValue& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAmount() const { return m_amount; }
39 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
40 template <typename AmountT = Aws::String>
41 void SetAmount(AmountT&& value) {
42 m_amountHasBeenSet = true;
43 m_amount = std::forward<AmountT>(value);
44 }
45 template <typename AmountT = Aws::String>
46 MetricValue& WithAmount(AmountT&& value) {
47 SetAmount(std::forward<AmountT>(value));
48 return *this;
49 }
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) {
60 m_unitHasBeenSet = true;
61 m_unit = std::forward<UnitT>(value);
62 }
63 template <typename UnitT = Aws::String>
64 MetricValue& WithUnit(UnitT&& value) {
65 SetUnit(std::forward<UnitT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_amount;
71
72 Aws::String m_unit;
73 bool m_amountHasBeenSet = false;
74 bool m_unitHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CostExplorer
79} // namespace Aws
MetricValue & WithAmount(AmountT &&value)
Definition MetricValue.h:46
AWS_COSTEXPLORER_API MetricValue()=default
MetricValue & WithUnit(UnitT &&value)
Definition MetricValue.h:64
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAmount() const
Definition MetricValue.h:38
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