AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetTokenBalanceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
10#include <aws/managedblockchain-query/model/BlockchainInstant.h>
11#include <aws/managedblockchain-query/model/OwnerIdentifier.h>
12#include <aws/managedblockchain-query/model/TokenIdentifier.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ManagedBlockchainQuery {
26namespace Model {
28 public:
29 AWS_MANAGEDBLOCKCHAINQUERY_API GetTokenBalanceResult() = default;
32
34
35 inline const OwnerIdentifier& GetOwnerIdentifier() const { return m_ownerIdentifier; }
36 template <typename OwnerIdentifierT = OwnerIdentifier>
37 void SetOwnerIdentifier(OwnerIdentifierT&& value) {
38 m_ownerIdentifierHasBeenSet = true;
39 m_ownerIdentifier = std::forward<OwnerIdentifierT>(value);
40 }
41 template <typename OwnerIdentifierT = OwnerIdentifier>
42 GetTokenBalanceResult& WithOwnerIdentifier(OwnerIdentifierT&& value) {
43 SetOwnerIdentifier(std::forward<OwnerIdentifierT>(value));
44 return *this;
45 }
47
49
50 inline const TokenIdentifier& GetTokenIdentifier() const { return m_tokenIdentifier; }
51 template <typename TokenIdentifierT = TokenIdentifier>
52 void SetTokenIdentifier(TokenIdentifierT&& value) {
53 m_tokenIdentifierHasBeenSet = true;
54 m_tokenIdentifier = std::forward<TokenIdentifierT>(value);
55 }
56 template <typename TokenIdentifierT = TokenIdentifier>
57 GetTokenBalanceResult& WithTokenIdentifier(TokenIdentifierT&& value) {
58 SetTokenIdentifier(std::forward<TokenIdentifierT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetBalance() const { return m_balance; }
68 template <typename BalanceT = Aws::String>
69 void SetBalance(BalanceT&& value) {
70 m_balanceHasBeenSet = true;
71 m_balance = std::forward<BalanceT>(value);
72 }
73 template <typename BalanceT = Aws::String>
75 SetBalance(std::forward<BalanceT>(value));
76 return *this;
77 }
79
81
82 inline const BlockchainInstant& GetAtBlockchainInstant() const { return m_atBlockchainInstant; }
83 template <typename AtBlockchainInstantT = BlockchainInstant>
84 void SetAtBlockchainInstant(AtBlockchainInstantT&& value) {
85 m_atBlockchainInstantHasBeenSet = true;
86 m_atBlockchainInstant = std::forward<AtBlockchainInstantT>(value);
87 }
88 template <typename AtBlockchainInstantT = BlockchainInstant>
89 GetTokenBalanceResult& WithAtBlockchainInstant(AtBlockchainInstantT&& value) {
90 SetAtBlockchainInstant(std::forward<AtBlockchainInstantT>(value));
91 return *this;
92 }
94
96
97 inline const BlockchainInstant& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
98 template <typename LastUpdatedTimeT = BlockchainInstant>
99 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
100 m_lastUpdatedTimeHasBeenSet = true;
101 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
102 }
103 template <typename LastUpdatedTimeT = BlockchainInstant>
104 GetTokenBalanceResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
105 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
106 return *this;
107 }
109
111
112 inline const Aws::String& GetRequestId() const { return m_requestId; }
113 template <typename RequestIdT = Aws::String>
114 void SetRequestId(RequestIdT&& value) {
115 m_requestIdHasBeenSet = true;
116 m_requestId = std::forward<RequestIdT>(value);
117 }
118 template <typename RequestIdT = Aws::String>
120 SetRequestId(std::forward<RequestIdT>(value));
121 return *this;
122 }
124 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
125
126 private:
127 OwnerIdentifier m_ownerIdentifier;
128
129 TokenIdentifier m_tokenIdentifier;
130
131 Aws::String m_balance;
132
133 BlockchainInstant m_atBlockchainInstant;
134
135 BlockchainInstant m_lastUpdatedTime;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_ownerIdentifierHasBeenSet = false;
140 bool m_tokenIdentifierHasBeenSet = false;
141 bool m_balanceHasBeenSet = false;
142 bool m_atBlockchainInstantHasBeenSet = false;
143 bool m_lastUpdatedTimeHasBeenSet = false;
144 bool m_requestIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace ManagedBlockchainQuery
149} // namespace Aws
GetTokenBalanceResult & WithOwnerIdentifier(OwnerIdentifierT &&value)
GetTokenBalanceResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
GetTokenBalanceResult & WithRequestId(RequestIdT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API GetTokenBalanceResult()=default
GetTokenBalanceResult & WithTokenIdentifier(TokenIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API GetTokenBalanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MANAGEDBLOCKCHAINQUERY_API GetTokenBalanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTokenBalanceResult & WithBalance(BalanceT &&value)
GetTokenBalanceResult & WithAtBlockchainInstant(AtBlockchainInstantT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue