AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MonetaryValue.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/model/CurrencyCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PARTNERCENTRALSELLING_API MonetaryValue() = default;
36 AWS_PARTNERCENTRALSELLING_API MonetaryValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API MonetaryValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAmount() const { return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 template<typename AmountT = Aws::String>
48 void SetAmount(AmountT&& value) { m_amountHasBeenSet = true; m_amount = std::forward<AmountT>(value); }
49 template<typename AmountT = Aws::String>
50 MonetaryValue& WithAmount(AmountT&& value) { SetAmount(std::forward<AmountT>(value)); return *this;}
52
54
57 inline CurrencyCode GetCurrencyCode() const { return m_currencyCode; }
58 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
59 inline void SetCurrencyCode(CurrencyCode value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
60 inline MonetaryValue& WithCurrencyCode(CurrencyCode value) { SetCurrencyCode(value); return *this;}
62 private:
63
64 Aws::String m_amount;
65 bool m_amountHasBeenSet = false;
66
67 CurrencyCode m_currencyCode{CurrencyCode::NOT_SET};
68 bool m_currencyCodeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace PartnerCentralSelling
73} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API MonetaryValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API MonetaryValue(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API MonetaryValue()=default
MonetaryValue & WithCurrencyCode(CurrencyCode value)
MonetaryValue & WithAmount(AmountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue