7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
19namespace PartnerCentralMarketing {
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;
43 template <
typename AmountT = Aws::String>
45 m_amountHasBeenSet =
true;
46 m_amount = std::forward<AmountT>(value);
48 template <
typename AmountT = Aws::String>
61 template <
typename CurrencyCodeT = Aws::String>
63 m_currencyCodeHasBeenSet =
true;
64 m_currencyCode = std::forward<CurrencyCodeT>(value);
66 template <
typename CurrencyCodeT = Aws::String>
76 bool m_amountHasBeenSet =
false;
77 bool m_currencyCodeHasBeenSet =
false;
MonetaryValue & WithAmount(AmountT &&value)
AWS_PARTNERCENTRALMARKETING_API MonetaryValue()=default
MonetaryValue & WithCurrencyCode(CurrencyCodeT &&value)
void SetCurrencyCode(CurrencyCodeT &&value)
const Aws::String & GetAmount() const
bool CurrencyCodeHasBeenSet() const
bool AmountHasBeenSet() const
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)
void SetAmount(AmountT &&value)
const Aws::String & GetCurrencyCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String