AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetAssetContractResult.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/ContractIdentifier.h>
11#include <aws/managedblockchain-query/model/ContractMetadata.h>
12#include <aws/managedblockchain-query/model/QueryTokenStandard.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 GetAssetContractResult() = default;
32
34
38 inline const ContractIdentifier& GetContractIdentifier() const { return m_contractIdentifier; }
39 template <typename ContractIdentifierT = ContractIdentifier>
40 void SetContractIdentifier(ContractIdentifierT&& value) {
41 m_contractIdentifierHasBeenSet = true;
42 m_contractIdentifier = std::forward<ContractIdentifierT>(value);
43 }
44 template <typename ContractIdentifierT = ContractIdentifier>
45 GetAssetContractResult& WithContractIdentifier(ContractIdentifierT&& value) {
46 SetContractIdentifier(std::forward<ContractIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline QueryTokenStandard GetTokenStandard() const { return m_tokenStandard; }
57 m_tokenStandardHasBeenSet = true;
58 m_tokenStandard = value;
59 }
61 SetTokenStandard(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDeployerAddress() const { return m_deployerAddress; }
71 template <typename DeployerAddressT = Aws::String>
72 void SetDeployerAddress(DeployerAddressT&& value) {
73 m_deployerAddressHasBeenSet = true;
74 m_deployerAddress = std::forward<DeployerAddressT>(value);
75 }
76 template <typename DeployerAddressT = Aws::String>
77 GetAssetContractResult& WithDeployerAddress(DeployerAddressT&& value) {
78 SetDeployerAddress(std::forward<DeployerAddressT>(value));
79 return *this;
80 }
82
84
85 inline const ContractMetadata& GetMetadata() const { return m_metadata; }
86 template <typename MetadataT = ContractMetadata>
87 void SetMetadata(MetadataT&& value) {
88 m_metadataHasBeenSet = true;
89 m_metadata = std::forward<MetadataT>(value);
90 }
91 template <typename MetadataT = ContractMetadata>
93 SetMetadata(std::forward<MetadataT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 ContractIdentifier m_contractIdentifier;
116
118
119 Aws::String m_deployerAddress;
120
121 ContractMetadata m_metadata;
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_contractIdentifierHasBeenSet = false;
126 bool m_tokenStandardHasBeenSet = false;
127 bool m_deployerAddressHasBeenSet = false;
128 bool m_metadataHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace ManagedBlockchainQuery
134} // namespace Aws
GetAssetContractResult & WithTokenStandard(QueryTokenStandard value)
GetAssetContractResult & WithMetadata(MetadataT &&value)
GetAssetContractResult & WithContractIdentifier(ContractIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API GetAssetContractResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MANAGEDBLOCKCHAINQUERY_API GetAssetContractResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MANAGEDBLOCKCHAINQUERY_API GetAssetContractResult()=default
GetAssetContractResult & WithDeployerAddress(DeployerAddressT &&value)
GetAssetContractResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue