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

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline const OwnerFilter& GetOwnerFilter() const{ return m_ownerFilter; } /** *

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline bool OwnerFilterHasBeenSet() const { return m_ownerFilterHasBeenSet; } /** *

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline void SetOwnerFilter(const OwnerFilter& value) { m_ownerFilterHasBeenSet = true; m_ownerFilter = value; } /** *

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline void SetOwnerFilter(OwnerFilter&& value) { m_ownerFilterHasBeenSet = true; m_ownerFilter = std::move(value); } /** *

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline ListTokenBalancesRequest& WithOwnerFilter(const OwnerFilter& value) { SetOwnerFilter(value); return *this;} /** *

The contract or wallet address on the blockchain network by which to filter * the request. You must specify the address property of the * ownerFilter when listing balances of tokens owned by the * address.

*/ inline ListTokenBalancesRequest& WithOwnerFilter(OwnerFilter&& value) { SetOwnerFilter(std::move(value)); return *this;} /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline const TokenFilter& GetTokenFilter() const{ return m_tokenFilter; } /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline bool TokenFilterHasBeenSet() const { return m_tokenFilterHasBeenSet; } /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline void SetTokenFilter(const TokenFilter& value) { m_tokenFilterHasBeenSet = true; m_tokenFilter = value; } /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline void SetTokenFilter(TokenFilter&& value) { m_tokenFilterHasBeenSet = true; m_tokenFilter = std::move(value); } /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline ListTokenBalancesRequest& WithTokenFilter(const TokenFilter& value) { SetTokenFilter(value); return *this;} /** *

The contract address or a token identifier on the blockchain network by which * to filter the request. You must specify the contractAddress property of this * container when listing tokens minted by a contract.

You must * always specify the network property of this container when using this * operation.

*/ inline ListTokenBalancesRequest& WithTokenFilter(TokenFilter&& value) { SetTokenFilter(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 ListTokenBalancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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

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

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

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

The maximum number of token balances to return.

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

The maximum number of token balances to return.

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

The maximum number of token balances to return.

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

The maximum number of token balances to return.

*/ inline ListTokenBalancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: OwnerFilter m_ownerFilter; bool m_ownerFilterHasBeenSet = false; TokenFilter m_tokenFilter; bool m_tokenFilterHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws