/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ManagedBlockchainQuery { namespace Model { /** */ class GetTransactionRequest : public ManagedBlockchainQueryRequest { public: AWS_MANAGEDBLOCKCHAINQUERY_API GetTransactionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetTransaction"; } AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override; /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline const Aws::String& GetTransactionHash() const{ return m_transactionHash; } /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; } /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline void SetTransactionHash(const Aws::String& value) { m_transactionHashHasBeenSet = true; m_transactionHash = value; } /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline void SetTransactionHash(Aws::String&& value) { m_transactionHashHasBeenSet = true; m_transactionHash = std::move(value); } /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline void SetTransactionHash(const char* value) { m_transactionHashHasBeenSet = true; m_transactionHash.assign(value); } /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline GetTransactionRequest& WithTransactionHash(const Aws::String& value) { SetTransactionHash(value); return *this;} /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline GetTransactionRequest& WithTransactionHash(Aws::String&& value) { SetTransactionHash(std::move(value)); return *this;} /** *

The hash of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

*/ inline GetTransactionRequest& WithTransactionHash(const char* value) { SetTransactionHash(value); return *this;} /** *

The blockchain network where the transaction occurred.

*/ inline const QueryNetwork& GetNetwork() const{ return m_network; } /** *

The blockchain network where the transaction occurred.

*/ inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; } /** *

The blockchain network where the transaction occurred.

*/ inline void SetNetwork(const QueryNetwork& value) { m_networkHasBeenSet = true; m_network = value; } /** *

The blockchain network where the transaction occurred.

*/ inline void SetNetwork(QueryNetwork&& value) { m_networkHasBeenSet = true; m_network = std::move(value); } /** *

The blockchain network where the transaction occurred.

*/ inline GetTransactionRequest& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;} /** *

The blockchain network where the transaction occurred.

*/ inline GetTransactionRequest& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;} private: Aws::String m_transactionHash; bool m_transactionHashHasBeenSet = false; QueryNetwork m_network; bool m_networkHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws