AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Price.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
27class Price {
28 public:
29 AWS_APPMONETIZATION_API Price() = default;
30 AWS_APPMONETIZATION_API Price(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API Price& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
40 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
41 template <typename CurrencyCodeT = Aws::String>
42 void SetCurrencyCode(CurrencyCodeT&& value) {
43 m_currencyCodeHasBeenSet = true;
44 m_currencyCode = std::forward<CurrencyCodeT>(value);
45 }
46 template <typename CurrencyCodeT = Aws::String>
47 Price& WithCurrencyCode(CurrencyCodeT&& value) {
48 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetAmount() const { return m_amount; }
59 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
60 template <typename AmountT = Aws::String>
61 void SetAmount(AmountT&& value) {
62 m_amountHasBeenSet = true;
63 m_amount = std::forward<AmountT>(value);
64 }
65 template <typename AmountT = Aws::String>
66 Price& WithAmount(AmountT&& value) {
67 SetAmount(std::forward<AmountT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_currencyCode;
73
74 Aws::String m_amount;
75 bool m_currencyCodeHasBeenSet = false;
76 bool m_amountHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppMonetization
81} // namespace Aws
void SetAmount(AmountT &&value)
Definition Price.h:61
const Aws::String & GetCurrencyCode() const
Definition Price.h:39
const Aws::String & GetAmount() const
Definition Price.h:58
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
bool CurrencyCodeHasBeenSet() const
Definition Price.h:40
AWS_APPMONETIZATION_API Price()=default
void SetCurrencyCode(CurrencyCodeT &&value)
Definition Price.h:42
Price & WithAmount(AmountT &&value)
Definition Price.h:66
AWS_APPMONETIZATION_API Price(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Price & operator=(Aws::Utils::Json::JsonView jsonValue)
Price & WithCurrencyCode(CurrencyCodeT &&value)
Definition Price.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue