AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
PaymentNetwork.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/BlockchainChain.h>
11#include <aws/wafv2/model/Price.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2 {
23namespace Model {
24
33 public:
34 AWS_WAFV2_API PaymentNetwork() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline BlockchainChain GetChain() const { return m_chain; }
47 inline bool ChainHasBeenSet() const { return m_chainHasBeenSet; }
48 inline void SetChain(BlockchainChain value) {
49 m_chainHasBeenSet = true;
50 m_chain = value;
51 }
53 SetChain(value);
54 return *this;
55 }
57
59
68 inline const Aws::String& GetWalletAddress() const { return m_walletAddress; }
69 inline bool WalletAddressHasBeenSet() const { return m_walletAddressHasBeenSet; }
70 template <typename WalletAddressT = Aws::String>
71 void SetWalletAddress(WalletAddressT&& value) {
72 m_walletAddressHasBeenSet = true;
73 m_walletAddress = std::forward<WalletAddressT>(value);
74 }
75 template <typename WalletAddressT = Aws::String>
76 PaymentNetwork& WithWalletAddress(WalletAddressT&& value) {
77 SetWalletAddress(std::forward<WalletAddressT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Price>& GetPrices() const { return m_prices; }
88 inline bool PricesHasBeenSet() const { return m_pricesHasBeenSet; }
89 template <typename PricesT = Aws::Vector<Price>>
90 void SetPrices(PricesT&& value) {
91 m_pricesHasBeenSet = true;
92 m_prices = std::forward<PricesT>(value);
93 }
94 template <typename PricesT = Aws::Vector<Price>>
95 PaymentNetwork& WithPrices(PricesT&& value) {
96 SetPrices(std::forward<PricesT>(value));
97 return *this;
98 }
99 template <typename PricesT = Price>
100 PaymentNetwork& AddPrices(PricesT&& value) {
101 m_pricesHasBeenSet = true;
102 m_prices.emplace_back(std::forward<PricesT>(value));
103 return *this;
104 }
106 private:
108
109 Aws::String m_walletAddress;
110
111 Aws::Vector<Price> m_prices;
112 bool m_chainHasBeenSet = false;
113 bool m_walletAddressHasBeenSet = false;
114 bool m_pricesHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace WAFV2
119} // namespace Aws
PaymentNetwork & WithPrices(PricesT &&value)
AWS_WAFV2_API PaymentNetwork(Aws::Utils::Json::JsonView jsonValue)
void SetPrices(PricesT &&value)
const Aws::String & GetWalletAddress() const
PaymentNetwork & WithChain(BlockchainChain value)
BlockchainChain GetChain() const
PaymentNetwork & WithWalletAddress(WalletAddressT &&value)
PaymentNetwork & AddPrices(PricesT &&value)
AWS_WAFV2_API PaymentNetwork()=default
void SetWalletAddress(WalletAddressT &&value)
void SetChain(BlockchainChain value)
AWS_WAFV2_API PaymentNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Price > & GetPrices() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue