AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PriceRange.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.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 PriceRange() = default;
30 AWS_APPMONETIZATION_API PriceRange(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API PriceRange& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Price& GetLow() const { return m_low; }
39 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
40 template <typename LowT = Price>
41 void SetLow(LowT&& value) {
42 m_lowHasBeenSet = true;
43 m_low = std::forward<LowT>(value);
44 }
45 template <typename LowT = Price>
46 PriceRange& WithLow(LowT&& value) {
47 SetLow(std::forward<LowT>(value));
48 return *this;
49 }
51
53
56 inline const Price& GetHigh() const { return m_high; }
57 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
58 template <typename HighT = Price>
59 void SetHigh(HighT&& value) {
60 m_highHasBeenSet = true;
61 m_high = std::forward<HighT>(value);
62 }
63 template <typename HighT = Price>
64 PriceRange& WithHigh(HighT&& value) {
65 SetHigh(std::forward<HighT>(value));
66 return *this;
67 }
69 private:
70 Price m_low;
71
72 Price m_high;
73 bool m_lowHasBeenSet = false;
74 bool m_highHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace AppMonetization
79} // namespace Aws
PriceRange & WithHigh(HighT &&value)
Definition PriceRange.h:64
AWS_APPMONETIZATION_API PriceRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API PriceRange(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API PriceRange()=default
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
PriceRange & WithLow(LowT &&value)
Definition PriceRange.h:46
Aws::Utils::Json::JsonValue JsonValue