AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContractIdentifier.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
8#include <aws/managedblockchain-query/model/QueryNetwork.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedBlockchainQuery
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier();
37 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const QueryNetwork& GetNetwork() const{ return m_network; }
47 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
48 inline void SetNetwork(const QueryNetwork& value) { m_networkHasBeenSet = true; m_network = value; }
49 inline void SetNetwork(QueryNetwork&& value) { m_networkHasBeenSet = true; m_network = std::move(value); }
50 inline ContractIdentifier& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;}
51 inline ContractIdentifier& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetContractAddress() const{ return m_contractAddress; }
59 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
60 inline void SetContractAddress(const Aws::String& value) { m_contractAddressHasBeenSet = true; m_contractAddress = value; }
61 inline void SetContractAddress(Aws::String&& value) { m_contractAddressHasBeenSet = true; m_contractAddress = std::move(value); }
62 inline void SetContractAddress(const char* value) { m_contractAddressHasBeenSet = true; m_contractAddress.assign(value); }
63 inline ContractIdentifier& WithContractAddress(const Aws::String& value) { SetContractAddress(value); return *this;}
64 inline ContractIdentifier& WithContractAddress(Aws::String&& value) { SetContractAddress(std::move(value)); return *this;}
65 inline ContractIdentifier& WithContractAddress(const char* value) { SetContractAddress(value); return *this;}
67 private:
68
69 QueryNetwork m_network;
70 bool m_networkHasBeenSet = false;
71
72 Aws::String m_contractAddress;
73 bool m_contractAddressHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ManagedBlockchainQuery
78} // namespace Aws
ContractIdentifier & WithContractAddress(Aws::String &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API ContractIdentifier()
ContractIdentifier & WithNetwork(QueryNetwork &&value)
ContractIdentifier & WithNetwork(const QueryNetwork &value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ContractIdentifier & WithContractAddress(const Aws::String &value)
ContractIdentifier & WithContractAddress(const char *value)
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