AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
MonetaryValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace PartnerCentralMarketing {
20namespace Model {
21
31 public:
32 AWS_PARTNERCENTRALMARKETING_API MonetaryValue() = default;
33 AWS_PARTNERCENTRALMARKETING_API MonetaryValue(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_PARTNERCENTRALMARKETING_API MonetaryValue& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetAmount() const { return m_amount; }
42 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
43 template <typename AmountT = Aws::String>
44 void SetAmount(AmountT&& value) {
45 m_amountHasBeenSet = true;
46 m_amount = std::forward<AmountT>(value);
47 }
48 template <typename AmountT = Aws::String>
49 MonetaryValue& WithAmount(AmountT&& value) {
50 SetAmount(std::forward<AmountT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
60 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
61 template <typename CurrencyCodeT = Aws::String>
62 void SetCurrencyCode(CurrencyCodeT&& value) {
63 m_currencyCodeHasBeenSet = true;
64 m_currencyCode = std::forward<CurrencyCodeT>(value);
65 }
66 template <typename CurrencyCodeT = Aws::String>
67 MonetaryValue& WithCurrencyCode(CurrencyCodeT&& value) {
68 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_amount;
74
75 Aws::String m_currencyCode;
76 bool m_amountHasBeenSet = false;
77 bool m_currencyCodeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace PartnerCentralMarketing
82} // namespace Aws
MonetaryValue & WithAmount(AmountT &&value)
AWS_PARTNERCENTRALMARKETING_API MonetaryValue()=default
MonetaryValue & WithCurrencyCode(CurrencyCodeT &&value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PARTNERCENTRALMARKETING_API MonetaryValue & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API MonetaryValue(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String