AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MonetaryValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/CurrencyCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
29 public:
30 AWS_PARTNERCENTRALSELLING_API MonetaryValue() = default;
31 AWS_PARTNERCENTRALSELLING_API MonetaryValue(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API MonetaryValue& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAmount() const { return m_amount; }
40 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
41 template <typename AmountT = Aws::String>
42 void SetAmount(AmountT&& value) {
43 m_amountHasBeenSet = true;
44 m_amount = std::forward<AmountT>(value);
45 }
46 template <typename AmountT = Aws::String>
47 MonetaryValue& WithAmount(AmountT&& value) {
48 SetAmount(std::forward<AmountT>(value));
49 return *this;
50 }
52
54
57 inline CurrencyCode GetCurrencyCode() const { return m_currencyCode; }
58 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
59 inline void SetCurrencyCode(CurrencyCode value) {
60 m_currencyCodeHasBeenSet = true;
61 m_currencyCode = value;
62 }
64 SetCurrencyCode(value);
65 return *this;
66 }
68 private:
69 Aws::String m_amount;
70
71 CurrencyCode m_currencyCode{CurrencyCode::NOT_SET};
72 bool m_amountHasBeenSet = false;
73 bool m_currencyCodeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace PartnerCentralSelling
78} // 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