AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssetContract.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/ContractIdentifier.h>
10#include <aws/managedblockchain-query/model/QueryTokenStandard.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ManagedBlockchainQuery {
22namespace Model {
23
31 public:
32 AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract() = default;
33 AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const ContractIdentifier& GetContractIdentifier() const { return m_contractIdentifier; }
43 inline bool ContractIdentifierHasBeenSet() const { return m_contractIdentifierHasBeenSet; }
44 template <typename ContractIdentifierT = ContractIdentifier>
45 void SetContractIdentifier(ContractIdentifierT&& value) {
46 m_contractIdentifierHasBeenSet = true;
47 m_contractIdentifier = std::forward<ContractIdentifierT>(value);
48 }
49 template <typename ContractIdentifierT = ContractIdentifier>
50 AssetContract& WithContractIdentifier(ContractIdentifierT&& value) {
51 SetContractIdentifier(std::forward<ContractIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline QueryTokenStandard GetTokenStandard() const { return m_tokenStandard; }
61 inline bool TokenStandardHasBeenSet() const { return m_tokenStandardHasBeenSet; }
63 m_tokenStandardHasBeenSet = true;
64 m_tokenStandard = value;
65 }
67 SetTokenStandard(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeployerAddress() const { return m_deployerAddress; }
77 inline bool DeployerAddressHasBeenSet() const { return m_deployerAddressHasBeenSet; }
78 template <typename DeployerAddressT = Aws::String>
79 void SetDeployerAddress(DeployerAddressT&& value) {
80 m_deployerAddressHasBeenSet = true;
81 m_deployerAddress = std::forward<DeployerAddressT>(value);
82 }
83 template <typename DeployerAddressT = Aws::String>
84 AssetContract& WithDeployerAddress(DeployerAddressT&& value) {
85 SetDeployerAddress(std::forward<DeployerAddressT>(value));
86 return *this;
87 }
89 private:
90 ContractIdentifier m_contractIdentifier;
91
93
94 Aws::String m_deployerAddress;
95 bool m_contractIdentifierHasBeenSet = false;
96 bool m_tokenStandardHasBeenSet = false;
97 bool m_deployerAddressHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ManagedBlockchainQuery
102} // namespace Aws
AssetContract & WithTokenStandard(QueryTokenStandard value)
void SetContractIdentifier(ContractIdentifierT &&value)
AssetContract & WithDeployerAddress(DeployerAddressT &&value)
const ContractIdentifier & GetContractIdentifier() const
AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTokenStandard(QueryTokenStandard value)
void SetDeployerAddress(DeployerAddressT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API AssetContract()=default
AssetContract & WithContractIdentifier(ContractIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue