AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
OneTimePriceDefinition.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
30 public:
31 AWS_APPMONETIZATION_API OneTimePriceDefinition() = default;
32 AWS_APPMONETIZATION_API OneTimePriceDefinition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API OneTimePriceDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Price& GetPrice() const { return m_price; }
59 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
60 template <typename PriceT = Price>
61 void SetPrice(PriceT&& value) {
62 m_priceHasBeenSet = true;
63 m_price = std::forward<PriceT>(value);
64 }
65 template <typename PriceT = Price>
67 SetPrice(std::forward<PriceT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMetricId() const { return m_metricId; }
77 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
78 template <typename MetricIdT = Aws::String>
79 void SetMetricId(MetricIdT&& value) {
80 m_metricIdHasBeenSet = true;
81 m_metricId = std::forward<MetricIdT>(value);
82 }
83 template <typename MetricIdT = Aws::String>
85 SetMetricId(std::forward<MetricIdT>(value));
86 return *this;
87 }
89
91
94 inline long long GetCapacity() const { return m_capacity; }
95 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
96 inline void SetCapacity(long long value) {
97 m_capacityHasBeenSet = true;
98 m_capacity = value;
99 }
100 inline OneTimePriceDefinition& WithCapacity(long long value) {
101 SetCapacity(value);
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107
108 Price m_price;
109
110 Aws::String m_metricId;
111
112 long long m_capacity{0};
113 bool m_nameHasBeenSet = false;
114 bool m_priceHasBeenSet = false;
115 bool m_metricIdHasBeenSet = false;
116 bool m_capacityHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace AppMonetization
121} // namespace Aws
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
OneTimePriceDefinition & WithMetricId(MetricIdT &&value)
OneTimePriceDefinition & WithCapacity(long long value)
OneTimePriceDefinition & WithName(NameT &&value)
AWS_APPMONETIZATION_API OneTimePriceDefinition()=default
OneTimePriceDefinition & WithPrice(PriceT &&value)
AWS_APPMONETIZATION_API OneTimePriceDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API OneTimePriceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue