/** * 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 GetTokenBalanceRequest : public ManagedBlockchainQueryRequest { public: AWS_MANAGEDBLOCKCHAINQUERY_API GetTokenBalanceRequest(); // 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 "GetTokenBalance"; } AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override; /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline const TokenIdentifier& GetTokenIdentifier() const{ return m_tokenIdentifier; } /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline bool TokenIdentifierHasBeenSet() const { return m_tokenIdentifierHasBeenSet; } /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline void SetTokenIdentifier(const TokenIdentifier& value) { m_tokenIdentifierHasBeenSet = true; m_tokenIdentifier = value; } /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline void SetTokenIdentifier(TokenIdentifier&& value) { m_tokenIdentifierHasBeenSet = true; m_tokenIdentifier = std::move(value); } /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline GetTokenBalanceRequest& WithTokenIdentifier(const TokenIdentifier& value) { SetTokenIdentifier(value); return *this;} /** *

The container for the identifier for the token, including the unique token ID * and its blockchain network.

*/ inline GetTokenBalanceRequest& WithTokenIdentifier(TokenIdentifier&& value) { SetTokenIdentifier(std::move(value)); return *this;} /** *

The container for the identifier for the owner.

*/ inline const OwnerIdentifier& GetOwnerIdentifier() const{ return m_ownerIdentifier; } /** *

The container for the identifier for the owner.

*/ inline bool OwnerIdentifierHasBeenSet() const { return m_ownerIdentifierHasBeenSet; } /** *

The container for the identifier for the owner.

*/ inline void SetOwnerIdentifier(const OwnerIdentifier& value) { m_ownerIdentifierHasBeenSet = true; m_ownerIdentifier = value; } /** *

The container for the identifier for the owner.

*/ inline void SetOwnerIdentifier(OwnerIdentifier&& value) { m_ownerIdentifierHasBeenSet = true; m_ownerIdentifier = std::move(value); } /** *

The container for the identifier for the owner.

*/ inline GetTokenBalanceRequest& WithOwnerIdentifier(const OwnerIdentifier& value) { SetOwnerIdentifier(value); return *this;} /** *

The container for the identifier for the owner.

*/ inline GetTokenBalanceRequest& WithOwnerIdentifier(OwnerIdentifier&& value) { SetOwnerIdentifier(std::move(value)); return *this;} /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline const BlockchainInstant& GetAtBlockchainInstant() const{ return m_atBlockchainInstant; } /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline bool AtBlockchainInstantHasBeenSet() const { return m_atBlockchainInstantHasBeenSet; } /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline void SetAtBlockchainInstant(const BlockchainInstant& value) { m_atBlockchainInstantHasBeenSet = true; m_atBlockchainInstant = value; } /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline void SetAtBlockchainInstant(BlockchainInstant&& value) { m_atBlockchainInstantHasBeenSet = true; m_atBlockchainInstant = std::move(value); } /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline GetTokenBalanceRequest& WithAtBlockchainInstant(const BlockchainInstant& value) { SetAtBlockchainInstant(value); return *this;} /** *

The time for when the TokenBalance is requested or the current time if a time * is not provided in the request.

This time will only be recorded up * to the second.

*/ inline GetTokenBalanceRequest& WithAtBlockchainInstant(BlockchainInstant&& value) { SetAtBlockchainInstant(std::move(value)); return *this;} private: TokenIdentifier m_tokenIdentifier; bool m_tokenIdentifierHasBeenSet = false; OwnerIdentifier m_ownerIdentifier; bool m_ownerIdentifierHasBeenSet = false; BlockchainInstant m_atBlockchainInstant; bool m_atBlockchainInstantHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws