AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; }
47 inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); }
48 inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); }
49 inline MetricValue& WithAmount(const Aws::String& value) { SetAmount(value); return *this;}
50 inline MetricValue& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;}
51 inline MetricValue& WithAmount(const char* value) { SetAmount(value); return *this;}
53
55
58 inline const Aws::String& GetUnit() const{ return m_unit; }
59 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
60 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
61 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
62 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
63 inline MetricValue& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
64 inline MetricValue& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
65 inline MetricValue& WithUnit(const char* value) { SetUnit(value); return *this;}
67 private:
68
69 Aws::String m_amount;
70 bool m_amountHasBeenSet = false;
71
72 Aws::String m_unit;
73 bool m_unitHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CostExplorer
78} // namespace Aws
MetricValue & WithAmount(Aws::String &&value)
Definition MetricValue.h:50
MetricValue & WithAmount(const char *value)
Definition MetricValue.h:51
MetricValue & WithAmount(const Aws::String &value)
Definition MetricValue.h:49
void SetUnit(Aws::String &&value)
Definition MetricValue.h:61
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
MetricValue & WithUnit(const char *value)
Definition MetricValue.h:65
void SetAmount(const Aws::String &value)
Definition MetricValue.h:46
const Aws::String & GetAmount() const
Definition MetricValue.h:44
void SetAmount(const char *value)
Definition MetricValue.h:48
MetricValue & WithUnit(const Aws::String &value)
Definition MetricValue.h:63
void SetUnit(const Aws::String &value)
Definition MetricValue.h:60
AWS_COSTEXPLORER_API MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API MetricValue()
MetricValue & WithUnit(Aws::String &&value)
Definition MetricValue.h:64
void SetAmount(Aws::String &&value)
Definition MetricValue.h:47
AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition MetricValue.h:58
void SetUnit(const char *value)
Definition MetricValue.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue