AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
Price.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/CryptoCurrency.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
29class Price {
30 public:
31 AWS_WAFV2_API Price() = default;
32 AWS_WAFV2_API Price(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WAFV2_API Price& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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 Price& WithAmount(AmountT&& value) {
50 SetAmount(std::forward<AmountT>(value));
51 return *this;
52 }
54
56
60 inline CryptoCurrency GetCurrency() const { return m_currency; }
61 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
62 inline void SetCurrency(CryptoCurrency value) {
63 m_currencyHasBeenSet = true;
64 m_currency = value;
65 }
67 SetCurrency(value);
68 return *this;
69 }
71 private:
72 Aws::String m_amount;
73
75 bool m_amountHasBeenSet = false;
76 bool m_currencyHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace WAFV2
81} // namespace Aws
void SetAmount(AmountT &&value)
Definition Price.h:44
void SetCurrency(CryptoCurrency value)
Definition Price.h:62
Price & WithCurrency(CryptoCurrency value)
Definition Price.h:66
bool CurrencyHasBeenSet() const
Definition Price.h:61
AWS_WAFV2_API Price()=default
Price & WithAmount(AmountT &&value)
Definition Price.h:49
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
CryptoCurrency GetCurrency() const
Definition Price.h:60
const Aws::String & GetAmount() const
Definition Price.h:41
bool AmountHasBeenSet() const
Definition Price.h:42
AWS_WAFV2_API Price & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Price(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue