AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
TokenBalance.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/BlockchainChainId.h>
9#include <aws/bedrock-agentcore/model/CryptoWalletNetwork.h>
10#include <aws/bedrock-agentcore/model/InstrumentBalanceToken.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentCore {
23namespace Model {
24
31 public:
32 AWS_BEDROCKAGENTCORE_API TokenBalance() = default;
33 AWS_BEDROCKAGENTCORE_API TokenBalance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API TokenBalance& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAmount() const { return m_amount; }
43 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
44 template <typename AmountT = Aws::String>
45 void SetAmount(AmountT&& value) {
46 m_amountHasBeenSet = true;
47 m_amount = std::forward<AmountT>(value);
48 }
49 template <typename AmountT = Aws::String>
50 TokenBalance& WithAmount(AmountT&& value) {
51 SetAmount(std::forward<AmountT>(value));
52 return *this;
53 }
55
57
60 inline int GetDecimals() const { return m_decimals; }
61 inline bool DecimalsHasBeenSet() const { return m_decimalsHasBeenSet; }
62 inline void SetDecimals(int value) {
63 m_decimalsHasBeenSet = true;
64 m_decimals = value;
65 }
66 inline TokenBalance& WithDecimals(int value) {
67 SetDecimals(value);
68 return *this;
69 }
71
73
76 inline InstrumentBalanceToken GetToken() const { return m_token; }
77 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
78 inline void SetToken(InstrumentBalanceToken value) {
79 m_tokenHasBeenSet = true;
80 m_token = value;
81 }
83 SetToken(value);
84 return *this;
85 }
87
89
92 inline CryptoWalletNetwork GetNetwork() const { return m_network; }
93 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
94 inline void SetNetwork(CryptoWalletNetwork value) {
95 m_networkHasBeenSet = true;
96 m_network = value;
97 }
99 SetNetwork(value);
100 return *this;
101 }
103
105
108 inline BlockchainChainId GetChain() const { return m_chain; }
109 inline bool ChainHasBeenSet() const { return m_chainHasBeenSet; }
110 inline void SetChain(BlockchainChainId value) {
111 m_chainHasBeenSet = true;
112 m_chain = value;
113 }
115 SetChain(value);
116 return *this;
117 }
119 private:
120 Aws::String m_amount;
121
122 int m_decimals{0};
123
125
127
129 bool m_amountHasBeenSet = false;
130 bool m_decimalsHasBeenSet = false;
131 bool m_tokenHasBeenSet = false;
132 bool m_networkHasBeenSet = false;
133 bool m_chainHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace BedrockAgentCore
138} // namespace Aws
AWS_BEDROCKAGENTCORE_API TokenBalance()=default
TokenBalance & WithToken(InstrumentBalanceToken value)
void SetNetwork(CryptoWalletNetwork value)
TokenBalance & WithAmount(AmountT &&value)
InstrumentBalanceToken GetToken() const
const Aws::String & GetAmount() const
AWS_BEDROCKAGENTCORE_API TokenBalance(Aws::Utils::Json::JsonView jsonValue)
TokenBalance & WithChain(BlockchainChainId value)
void SetChain(BlockchainChainId value)
void SetToken(InstrumentBalanceToken value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
TokenBalance & WithNetwork(CryptoWalletNetwork value)
CryptoWalletNetwork GetNetwork() const
TokenBalance & WithDecimals(int value)
AWS_BEDROCKAGENTCORE_API TokenBalance & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue