AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CurrencyExchangeDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/invoicing/Invoicing_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Invoicing {
20namespace Model {
21
28 public:
29 AWS_INVOICING_API CurrencyExchangeDetails() = default;
32 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetSourceCurrencyCode() const { return m_sourceCurrencyCode; }
39 inline bool SourceCurrencyCodeHasBeenSet() const { return m_sourceCurrencyCodeHasBeenSet; }
40 template <typename SourceCurrencyCodeT = Aws::String>
41 void SetSourceCurrencyCode(SourceCurrencyCodeT&& value) {
42 m_sourceCurrencyCodeHasBeenSet = true;
43 m_sourceCurrencyCode = std::forward<SourceCurrencyCodeT>(value);
44 }
45 template <typename SourceCurrencyCodeT = Aws::String>
46 CurrencyExchangeDetails& WithSourceCurrencyCode(SourceCurrencyCodeT&& value) {
47 SetSourceCurrencyCode(std::forward<SourceCurrencyCodeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTargetCurrencyCode() const { return m_targetCurrencyCode; }
57 inline bool TargetCurrencyCodeHasBeenSet() const { return m_targetCurrencyCodeHasBeenSet; }
58 template <typename TargetCurrencyCodeT = Aws::String>
59 void SetTargetCurrencyCode(TargetCurrencyCodeT&& value) {
60 m_targetCurrencyCodeHasBeenSet = true;
61 m_targetCurrencyCode = std::forward<TargetCurrencyCodeT>(value);
62 }
63 template <typename TargetCurrencyCodeT = Aws::String>
64 CurrencyExchangeDetails& WithTargetCurrencyCode(TargetCurrencyCodeT&& value) {
65 SetTargetCurrencyCode(std::forward<TargetCurrencyCodeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRate() const { return m_rate; }
75 inline bool RateHasBeenSet() const { return m_rateHasBeenSet; }
76 template <typename RateT = Aws::String>
77 void SetRate(RateT&& value) {
78 m_rateHasBeenSet = true;
79 m_rate = std::forward<RateT>(value);
80 }
81 template <typename RateT = Aws::String>
83 SetRate(std::forward<RateT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_sourceCurrencyCode;
89
90 Aws::String m_targetCurrencyCode;
91
92 Aws::String m_rate;
93 bool m_sourceCurrencyCodeHasBeenSet = false;
94 bool m_targetCurrencyCodeHasBeenSet = false;
95 bool m_rateHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Invoicing
100} // namespace Aws
void SetSourceCurrencyCode(SourceCurrencyCodeT &&value)
AWS_INVOICING_API CurrencyExchangeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetCurrencyCode(TargetCurrencyCodeT &&value)
AWS_INVOICING_API CurrencyExchangeDetails()=default
AWS_INVOICING_API CurrencyExchangeDetails(Aws::Utils::Json::JsonView jsonValue)
CurrencyExchangeDetails & WithTargetCurrencyCode(TargetCurrencyCodeT &&value)
CurrencyExchangeDetails & WithSourceCurrencyCode(SourceCurrencyCodeT &&value)
CurrencyExchangeDetails & WithRate(RateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue