/** * 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 ListTransactionEventsRequest : public ManagedBlockchainQueryRequest { public: AWS_MANAGEDBLOCKCHAINQUERY_API ListTransactionEventsRequest(); // 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 "ListTransactionEvents"; } 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 ListTransactionEventsRequest& 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 ListTransactionEventsRequest& 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 ListTransactionEventsRequest& WithTransactionHash(const char* value) { SetTransactionHash(value); return *this;} /** *

The blockchain network where the transaction events occurred.

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

The blockchain network where the transaction events occurred.

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

The blockchain network where the transaction events occurred.

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

The blockchain network where the transaction events occurred.

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

The blockchain network where the transaction events occurred.

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

The blockchain network where the transaction events occurred.

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

The pagination token that indicates the next set of results to retrieve.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListTransactionEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListTransactionEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListTransactionEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of transaction events to list.

Even if * additional results can be retrieved, the request can return less results than * maxResults or an empty array of results.

To retrieve the * next set of results, make another request with the returned * nextToken value. The value of nextToken is * null when there are no more results to return

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of transaction events to list.

Even if * additional results can be retrieved, the request can return less results than * maxResults or an empty array of results.

To retrieve the * next set of results, make another request with the returned * nextToken value. The value of nextToken is * null when there are no more results to return

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of transaction events to list.

Even if * additional results can be retrieved, the request can return less results than * maxResults or an empty array of results.

To retrieve the * next set of results, make another request with the returned * nextToken value. The value of nextToken is * null when there are no more results to return

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of transaction events to list.

Even if * additional results can be retrieved, the request can return less results than * maxResults or an empty array of results.

To retrieve the * next set of results, make another request with the returned * nextToken value. The value of nextToken is * null when there are no more results to return

*/ inline ListTransactionEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_transactionHash; bool m_transactionHashHasBeenSet = false; QueryNetwork m_network; bool m_networkHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws