AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PublishedPrice.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 PublishedPrice() = default;
31 AWS_APPMONETIZATION_API PublishedPrice(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API PublishedPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
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 PublishedPrice& WithCurrencyCode(CurrencyCodeT&& value) {
48 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAmount() const { return m_amount; }
58 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
59 template <typename AmountT = Aws::String>
60 void SetAmount(AmountT&& value) {
61 m_amountHasBeenSet = true;
62 m_amount = std::forward<AmountT>(value);
63 }
64 template <typename AmountT = Aws::String>
65 PublishedPrice& WithAmount(AmountT&& value) {
66 SetAmount(std::forward<AmountT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_currencyCode;
72
73 Aws::String m_amount;
74 bool m_currencyCodeHasBeenSet = false;
75 bool m_amountHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AppMonetization
80} // namespace Aws
AWS_APPMONETIZATION_API PublishedPrice(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API PublishedPrice()=default
PublishedPrice & WithAmount(AmountT &&value)
void SetCurrencyCode(CurrencyCodeT &&value)
PublishedPrice & WithCurrencyCode(CurrencyCodeT &&value)
AWS_APPMONETIZATION_API PublishedPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCurrencyCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue