AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAssetContractRequest.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQueryRequest.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
9#include <aws/managedblockchain-query/model/ContractIdentifier.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ManagedBlockchainQuery {
15namespace Model {
16
20 public:
21 AWS_MANAGEDBLOCKCHAINQUERY_API GetAssetContractRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetAssetContract"; }
28
29 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override;
30
32
36 inline const ContractIdentifier& GetContractIdentifier() const { return m_contractIdentifier; }
37 inline bool ContractIdentifierHasBeenSet() const { return m_contractIdentifierHasBeenSet; }
38 template <typename ContractIdentifierT = ContractIdentifier>
39 void SetContractIdentifier(ContractIdentifierT&& value) {
40 m_contractIdentifierHasBeenSet = true;
41 m_contractIdentifier = std::forward<ContractIdentifierT>(value);
42 }
43 template <typename ContractIdentifierT = ContractIdentifier>
44 GetAssetContractRequest& WithContractIdentifier(ContractIdentifierT&& value) {
45 SetContractIdentifier(std::forward<ContractIdentifierT>(value));
46 return *this;
47 }
49 private:
50 ContractIdentifier m_contractIdentifier;
51 bool m_contractIdentifierHasBeenSet = false;
52};
53
54} // namespace Model
55} // namespace ManagedBlockchainQuery
56} // namespace Aws
GetAssetContractRequest & WithContractIdentifier(ContractIdentifierT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API GetAssetContractRequest()=default
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String