/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ManagedBlockchainQuery { namespace Model { /** */ class ListTransactionsRequest : public ManagedBlockchainQueryRequest { public: AWS_MANAGEDBLOCKCHAINQUERY_API ListTransactionsRequest(); // 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 "ListTransactions"; } AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override; /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline ListTransactionsRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline ListTransactionsRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The address (either a contract or wallet), whose transactions are being * requested.

*/ inline ListTransactionsRequest& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

The blockchain network where the transactions occurred.

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

The blockchain network where the transactions occurred.

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

The blockchain network where the transactions occurred.

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

The blockchain network where the transactions occurred.

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

The blockchain network where the transactions occurred.

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

The blockchain network where the transactions occurred.

*/ inline ListTransactionsRequest& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;} inline const BlockchainInstant& GetFromBlockchainInstant() const{ return m_fromBlockchainInstant; } inline bool FromBlockchainInstantHasBeenSet() const { return m_fromBlockchainInstantHasBeenSet; } inline void SetFromBlockchainInstant(const BlockchainInstant& value) { m_fromBlockchainInstantHasBeenSet = true; m_fromBlockchainInstant = value; } inline void SetFromBlockchainInstant(BlockchainInstant&& value) { m_fromBlockchainInstantHasBeenSet = true; m_fromBlockchainInstant = std::move(value); } inline ListTransactionsRequest& WithFromBlockchainInstant(const BlockchainInstant& value) { SetFromBlockchainInstant(value); return *this;} inline ListTransactionsRequest& WithFromBlockchainInstant(BlockchainInstant&& value) { SetFromBlockchainInstant(std::move(value)); return *this;} inline const BlockchainInstant& GetToBlockchainInstant() const{ return m_toBlockchainInstant; } inline bool ToBlockchainInstantHasBeenSet() const { return m_toBlockchainInstantHasBeenSet; } inline void SetToBlockchainInstant(const BlockchainInstant& value) { m_toBlockchainInstantHasBeenSet = true; m_toBlockchainInstant = value; } inline void SetToBlockchainInstant(BlockchainInstant&& value) { m_toBlockchainInstantHasBeenSet = true; m_toBlockchainInstant = std::move(value); } inline ListTransactionsRequest& WithToBlockchainInstant(const BlockchainInstant& value) { SetToBlockchainInstant(value); return *this;} inline ListTransactionsRequest& WithToBlockchainInstant(BlockchainInstant&& value) { SetToBlockchainInstant(std::move(value)); return *this;} /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline const ListTransactionsSort& GetSort() const{ return m_sort; } /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline bool SortHasBeenSet() const { return m_sortHasBeenSet; } /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline void SetSort(const ListTransactionsSort& value) { m_sortHasBeenSet = true; m_sort = value; } /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline void SetSort(ListTransactionsSort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); } /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline ListTransactionsRequest& WithSort(const ListTransactionsSort& value) { SetSort(value); return *this;} /** *

Sorts items in an ascending order if the first page starts at * fromTime. Sorts items in a descending order if the first page * starts at toTime.

*/ inline ListTransactionsRequest& WithSort(ListTransactionsSort&& value) { SetSort(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 ListTransactionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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

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

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

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

The maximum number of transactions 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 transactions 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 transactions 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 transactions 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 ListTransactionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; QueryNetwork m_network; bool m_networkHasBeenSet = false; BlockchainInstant m_fromBlockchainInstant; bool m_fromBlockchainInstantHasBeenSet = false; BlockchainInstant m_toBlockchainInstant; bool m_toBlockchainInstantHasBeenSet = false; ListTransactionsSort m_sort; bool m_sortHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws