/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchainQuery { namespace Model { /** *

The container of the transaction output.

See Also:

AWS * API Reference

*/ class TransactionOutputItem { public: AWS_MANAGEDBLOCKCHAINQUERY_API TransactionOutputItem(); AWS_MANAGEDBLOCKCHAINQUERY_API TransactionOutputItem(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API TransactionOutputItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 TransactionOutputItem& 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 TransactionOutputItem& 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 TransactionOutputItem& 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 TransactionOutputItem& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;} /** *

The blockchain network where the transaction occurred.

*/ inline TransactionOutputItem& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;} /** *

The time when the transaction occurred.

*/ inline const Aws::Utils::DateTime& GetTransactionTimestamp() const{ return m_transactionTimestamp; } /** *

The time when the transaction occurred.

*/ inline bool TransactionTimestampHasBeenSet() const { return m_transactionTimestampHasBeenSet; } /** *

The time when the transaction occurred.

*/ inline void SetTransactionTimestamp(const Aws::Utils::DateTime& value) { m_transactionTimestampHasBeenSet = true; m_transactionTimestamp = value; } /** *

The time when the transaction occurred.

*/ inline void SetTransactionTimestamp(Aws::Utils::DateTime&& value) { m_transactionTimestampHasBeenSet = true; m_transactionTimestamp = std::move(value); } /** *

The time when the transaction occurred.

*/ inline TransactionOutputItem& WithTransactionTimestamp(const Aws::Utils::DateTime& value) { SetTransactionTimestamp(value); return *this;} /** *

The time when the transaction occurred.

*/ inline TransactionOutputItem& WithTransactionTimestamp(Aws::Utils::DateTime&& value) { SetTransactionTimestamp(std::move(value)); return *this;} private: Aws::String m_transactionHash; bool m_transactionHashHasBeenSet = false; QueryNetwork m_network; bool m_networkHasBeenSet = false; Aws::Utils::DateTime m_transactionTimestamp; bool m_transactionTimestampHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws