AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ContractIdentifier.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/QueryNetwork.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedBlockchainQuery {
21namespace Model {
22
30 public:
31 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier() = default;
32 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline QueryNetwork GetNetwork() const { return m_network; }
41 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
42 inline void SetNetwork(QueryNetwork value) {
43 m_networkHasBeenSet = true;
44 m_network = value;
45 }
47 SetNetwork(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetContractAddress() const { return m_contractAddress; }
57 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
58 template <typename ContractAddressT = Aws::String>
59 void SetContractAddress(ContractAddressT&& value) {
60 m_contractAddressHasBeenSet = true;
61 m_contractAddress = std::forward<ContractAddressT>(value);
62 }
63 template <typename ContractAddressT = Aws::String>
64 ContractIdentifier& WithContractAddress(ContractAddressT&& value) {
65 SetContractAddress(std::forward<ContractAddressT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_contractAddress;
73 bool m_networkHasBeenSet = false;
74 bool m_contractAddressHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ManagedBlockchainQuery
79} // namespace Aws
ContractIdentifier & WithNetwork(QueryNetwork value)
ContractIdentifier & WithContractAddress(ContractAddressT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier()=default
AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue