AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TokenBalance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
9#include <aws/managedblockchain-query/model/BlockchainInstant.h>
10#include <aws/managedblockchain-query/model/OwnerIdentifier.h>
11#include <aws/managedblockchain-query/model/TokenIdentifier.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedBlockchainQuery {
23namespace Model {
24
31 public:
32 AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance() = default;
33 AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const OwnerIdentifier& GetOwnerIdentifier() const { return m_ownerIdentifier; }
42 inline bool OwnerIdentifierHasBeenSet() const { return m_ownerIdentifierHasBeenSet; }
43 template <typename OwnerIdentifierT = OwnerIdentifier>
44 void SetOwnerIdentifier(OwnerIdentifierT&& value) {
45 m_ownerIdentifierHasBeenSet = true;
46 m_ownerIdentifier = std::forward<OwnerIdentifierT>(value);
47 }
48 template <typename OwnerIdentifierT = OwnerIdentifier>
49 TokenBalance& WithOwnerIdentifier(OwnerIdentifierT&& value) {
50 SetOwnerIdentifier(std::forward<OwnerIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const TokenIdentifier& GetTokenIdentifier() const { return m_tokenIdentifier; }
61 inline bool TokenIdentifierHasBeenSet() const { return m_tokenIdentifierHasBeenSet; }
62 template <typename TokenIdentifierT = TokenIdentifier>
63 void SetTokenIdentifier(TokenIdentifierT&& value) {
64 m_tokenIdentifierHasBeenSet = true;
65 m_tokenIdentifier = std::forward<TokenIdentifierT>(value);
66 }
67 template <typename TokenIdentifierT = TokenIdentifier>
68 TokenBalance& WithTokenIdentifier(TokenIdentifierT&& value) {
69 SetTokenIdentifier(std::forward<TokenIdentifierT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetBalance() const { return m_balance; }
79 inline bool BalanceHasBeenSet() const { return m_balanceHasBeenSet; }
80 template <typename BalanceT = Aws::String>
81 void SetBalance(BalanceT&& value) {
82 m_balanceHasBeenSet = true;
83 m_balance = std::forward<BalanceT>(value);
84 }
85 template <typename BalanceT = Aws::String>
86 TokenBalance& WithBalance(BalanceT&& value) {
87 SetBalance(std::forward<BalanceT>(value));
88 return *this;
89 }
91
93
98 inline const BlockchainInstant& GetAtBlockchainInstant() const { return m_atBlockchainInstant; }
99 inline bool AtBlockchainInstantHasBeenSet() const { return m_atBlockchainInstantHasBeenSet; }
100 template <typename AtBlockchainInstantT = BlockchainInstant>
101 void SetAtBlockchainInstant(AtBlockchainInstantT&& value) {
102 m_atBlockchainInstantHasBeenSet = true;
103 m_atBlockchainInstant = std::forward<AtBlockchainInstantT>(value);
104 }
105 template <typename AtBlockchainInstantT = BlockchainInstant>
106 TokenBalance& WithAtBlockchainInstant(AtBlockchainInstantT&& value) {
107 SetAtBlockchainInstant(std::forward<AtBlockchainInstantT>(value));
108 return *this;
109 }
111
113
117 inline const BlockchainInstant& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
118 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
119 template <typename LastUpdatedTimeT = BlockchainInstant>
120 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
121 m_lastUpdatedTimeHasBeenSet = true;
122 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
123 }
124 template <typename LastUpdatedTimeT = BlockchainInstant>
125 TokenBalance& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
126 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
127 return *this;
128 }
130 private:
131 OwnerIdentifier m_ownerIdentifier;
132
133 TokenIdentifier m_tokenIdentifier;
134
135 Aws::String m_balance;
136
137 BlockchainInstant m_atBlockchainInstant;
138
139 BlockchainInstant m_lastUpdatedTime;
140 bool m_ownerIdentifierHasBeenSet = false;
141 bool m_tokenIdentifierHasBeenSet = false;
142 bool m_balanceHasBeenSet = false;
143 bool m_atBlockchainInstantHasBeenSet = false;
144 bool m_lastUpdatedTimeHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace ManagedBlockchainQuery
149} // namespace Aws
TokenBalance & WithTokenIdentifier(TokenIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
TokenBalance & WithBalance(BalanceT &&value)
const TokenIdentifier & GetTokenIdentifier() const
AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance()=default
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
TokenBalance & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetTokenIdentifier(TokenIdentifierT &&value)
const BlockchainInstant & GetAtBlockchainInstant() const
TokenBalance & WithAtBlockchainInstant(AtBlockchainInstantT &&value)
void SetOwnerIdentifier(OwnerIdentifierT &&value)
const OwnerIdentifier & GetOwnerIdentifier() const
TokenBalance & WithOwnerIdentifier(OwnerIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAtBlockchainInstant(AtBlockchainInstantT &&value)
const BlockchainInstant & GetLastUpdatedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue