AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CurrencyExchangeDetails.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Invoicing
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_INVOICING_API CurrencyExchangeDetails() = default;
37 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetSourceCurrencyCode() const { return m_sourceCurrencyCode; }
45 inline bool SourceCurrencyCodeHasBeenSet() const { return m_sourceCurrencyCodeHasBeenSet; }
46 template<typename SourceCurrencyCodeT = Aws::String>
47 void SetSourceCurrencyCode(SourceCurrencyCodeT&& value) { m_sourceCurrencyCodeHasBeenSet = true; m_sourceCurrencyCode = std::forward<SourceCurrencyCodeT>(value); }
48 template<typename SourceCurrencyCodeT = Aws::String>
49 CurrencyExchangeDetails& WithSourceCurrencyCode(SourceCurrencyCodeT&& value) { SetSourceCurrencyCode(std::forward<SourceCurrencyCodeT>(value)); return *this;}
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) { m_targetCurrencyCodeHasBeenSet = true; m_targetCurrencyCode = std::forward<TargetCurrencyCodeT>(value); }
60 template<typename TargetCurrencyCodeT = Aws::String>
61 CurrencyExchangeDetails& WithTargetCurrencyCode(TargetCurrencyCodeT&& value) { SetTargetCurrencyCode(std::forward<TargetCurrencyCodeT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRate() const { return m_rate; }
69 inline bool RateHasBeenSet() const { return m_rateHasBeenSet; }
70 template<typename RateT = Aws::String>
71 void SetRate(RateT&& value) { m_rateHasBeenSet = true; m_rate = std::forward<RateT>(value); }
72 template<typename RateT = Aws::String>
73 CurrencyExchangeDetails& WithRate(RateT&& value) { SetRate(std::forward<RateT>(value)); return *this;}
75 private:
76
77 Aws::String m_sourceCurrencyCode;
78 bool m_sourceCurrencyCodeHasBeenSet = false;
79
80 Aws::String m_targetCurrencyCode;
81 bool m_targetCurrencyCodeHasBeenSet = false;
82
83 Aws::String m_rate;
84 bool m_rateHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Invoicing
89} // 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