/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the managedblockchain-query-2023-05-04.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ManagedBlockchainQuery.Model { /// /// Container for the parameters to the ListTokenBalances operation. /// This action returns the following for a given a blockchain network: /// /// /// /// You must always specify the network property of the tokenFilter when /// using this operation. /// /// /// public partial class ListTokenBalancesRequest : AmazonManagedBlockchainQueryRequest { private int? _maxResults; private string _nextToken; private OwnerFilter _ownerFilter; private TokenFilter _tokenFilter; /// /// Gets and sets the property MaxResults. /// /// The maximum number of token balances to return. /// /// [AWSProperty(Min=1, Max=250)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property NextToken. /// /// The pagination token that indicates the next set of results to retrieve. /// /// [AWSProperty(Min=0, Max=131070)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property 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. /// /// public OwnerFilter OwnerFilter { get { return this._ownerFilter; } set { this._ownerFilter = value; } } // Check to see if OwnerFilter property is set internal bool IsSetOwnerFilter() { return this._ownerFilter != null; } /// /// Gets and sets the property 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. /// /// /// [AWSProperty(Required=true)] public TokenFilter TokenFilter { get { return this._tokenFilter; } set { this._tokenFilter = value; } } // Check to see if TokenFilter property is set internal bool IsSetTokenFilter() { return this._tokenFilter != null; } } }