AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
MetricUsage.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_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 AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API MetricUsage() = default;
30 AWS_APPMONETIZATION_API MetricUsage(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API MetricUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetMetricId() const { return m_metricId; }
39 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
40 template <typename MetricIdT = Aws::String>
41 void SetMetricId(MetricIdT&& value) {
42 m_metricIdHasBeenSet = true;
43 m_metricId = std::forward<MetricIdT>(value);
44 }
45 template <typename MetricIdT = Aws::String>
46 MetricUsage& WithMetricId(MetricIdT&& value) {
47 SetMetricId(std::forward<MetricIdT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetQuantity() const { return m_quantity; }
60 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
61 template <typename QuantityT = Aws::String>
62 void SetQuantity(QuantityT&& value) {
63 m_quantityHasBeenSet = true;
64 m_quantity = std::forward<QuantityT>(value);
65 }
66 template <typename QuantityT = Aws::String>
67 MetricUsage& WithQuantity(QuantityT&& value) {
68 SetQuantity(std::forward<QuantityT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_metricId;
74
75 Aws::String m_quantity;
76 bool m_metricIdHasBeenSet = false;
77 bool m_quantityHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace AppMonetization
82} // namespace Aws
AWS_APPMONETIZATION_API MetricUsage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetricId() const
Definition MetricUsage.h:38
void SetQuantity(QuantityT &&value)
Definition MetricUsage.h:62
AWS_APPMONETIZATION_API MetricUsage()=default
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
MetricUsage & WithQuantity(QuantityT &&value)
Definition MetricUsage.h:67
MetricUsage & WithMetricId(MetricIdT &&value)
Definition MetricUsage.h:46
AWS_APPMONETIZATION_API MetricUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuantity() const
Definition MetricUsage.h:59
void SetMetricId(MetricIdT &&value)
Definition MetricUsage.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue