AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
MonetaryValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
9#include <aws/partnercentral-benefits/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 PartnerCentralBenefits {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALBENEFITS_API MonetaryValue() = default;
32 AWS_PARTNERCENTRALBENEFITS_API MonetaryValue(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALBENEFITS_API MonetaryValue& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAmount() const { return m_amount; }
41 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
42 template <typename AmountT = Aws::String>
43 void SetAmount(AmountT&& value) {
44 m_amountHasBeenSet = true;
45 m_amount = std::forward<AmountT>(value);
46 }
47 template <typename AmountT = Aws::String>
48 MonetaryValue& WithAmount(AmountT&& value) {
49 SetAmount(std::forward<AmountT>(value));
50 return *this;
51 }
53
55
58 inline CurrencyCode GetCurrencyCode() const { return m_currencyCode; }
59 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
60 inline void SetCurrencyCode(CurrencyCode value) {
61 m_currencyCodeHasBeenSet = true;
62 m_currencyCode = value;
63 }
65 SetCurrencyCode(value);
66 return *this;
67 }
69 private:
70 Aws::String m_amount;
71
72 CurrencyCode m_currencyCode{CurrencyCode::NOT_SET};
73 bool m_amountHasBeenSet = false;
74 bool m_currencyCodeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace PartnerCentralBenefits
79} // namespace Aws
MonetaryValue & WithCurrencyCode(CurrencyCode value)
AWS_PARTNERCENTRALBENEFITS_API MonetaryValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MonetaryValue & WithAmount(AmountT &&value)
AWS_PARTNERCENTRALBENEFITS_API MonetaryValue()=default
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALBENEFITS_API MonetaryValue(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue