AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
EntitlementMetricStatus.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
29 public:
30 AWS_APPMONETIZATION_API EntitlementMetricStatus() = default;
31 AWS_APPMONETIZATION_API EntitlementMetricStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMetricId() const { return m_metricId; }
40 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
41 template <typename MetricIdT = Aws::String>
42 void SetMetricId(MetricIdT&& value) {
43 m_metricIdHasBeenSet = true;
44 m_metricId = std::forward<MetricIdT>(value);
45 }
46 template <typename MetricIdT = Aws::String>
48 SetMetricId(std::forward<MetricIdT>(value));
49 return *this;
50 }
52
54
57 inline long long GetUsedQuantity() const { return m_usedQuantity; }
58 inline bool UsedQuantityHasBeenSet() const { return m_usedQuantityHasBeenSet; }
59 inline void SetUsedQuantity(long long value) {
60 m_usedQuantityHasBeenSet = true;
61 m_usedQuantity = value;
62 }
63 inline EntitlementMetricStatus& WithUsedQuantity(long long value) {
64 SetUsedQuantity(value);
65 return *this;
66 }
68
70
74 inline long long GetIncludedQuantity() const { return m_includedQuantity; }
75 inline bool IncludedQuantityHasBeenSet() const { return m_includedQuantityHasBeenSet; }
76 inline void SetIncludedQuantity(long long value) {
77 m_includedQuantityHasBeenSet = true;
78 m_includedQuantity = value;
79 }
82 return *this;
83 }
85
87
90 inline long long GetRemainingQuantity() const { return m_remainingQuantity; }
91 inline bool RemainingQuantityHasBeenSet() const { return m_remainingQuantityHasBeenSet; }
92 inline void SetRemainingQuantity(long long value) {
93 m_remainingQuantityHasBeenSet = true;
94 m_remainingQuantity = value;
95 }
98 return *this;
99 }
101 private:
102 Aws::String m_metricId;
103
104 long long m_usedQuantity{0};
105
106 long long m_includedQuantity{0};
107
108 long long m_remainingQuantity{0};
109 bool m_metricIdHasBeenSet = false;
110 bool m_usedQuantityHasBeenSet = false;
111 bool m_includedQuantityHasBeenSet = false;
112 bool m_remainingQuantityHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace AppMonetization
117} // namespace Aws
EntitlementMetricStatus & WithRemainingQuantity(long long value)
AWS_APPMONETIZATION_API EntitlementMetricStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API EntitlementMetricStatus()=default
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API EntitlementMetricStatus(Aws::Utils::Json::JsonView jsonValue)
EntitlementMetricStatus & WithMetricId(MetricIdT &&value)
EntitlementMetricStatus & WithUsedQuantity(long long value)
EntitlementMetricStatus & WithIncludedQuantity(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue