/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchainQuery { namespace Model { /** *

The balance of the token.

See Also:

AWS * API Reference

*/ class TokenBalance { public: AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance(); AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API TokenBalance& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The container for the identifier of the owner.

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

The container for the identifier of the owner.

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

The container for the identifier of the owner.

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

The container for the identifier of the owner.

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

The container for the identifier of the owner.

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

The container for the identifier of the owner.

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

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

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

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

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

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 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 identifier for the token, including the unique token ID and its * blockchain network.

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

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

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

The container of the token balance.

*/ inline const Aws::String& GetBalance() const{ return m_balance; } /** *

The container of the token balance.

*/ inline bool BalanceHasBeenSet() const { return m_balanceHasBeenSet; } /** *

The container of the token balance.

*/ inline void SetBalance(const Aws::String& value) { m_balanceHasBeenSet = true; m_balance = value; } /** *

The container of the token balance.

*/ inline void SetBalance(Aws::String&& value) { m_balanceHasBeenSet = true; m_balance = std::move(value); } /** *

The container of the token balance.

*/ inline void SetBalance(const char* value) { m_balanceHasBeenSet = true; m_balance.assign(value); } /** *

The container of the token balance.

*/ inline TokenBalance& WithBalance(const Aws::String& value) { SetBalance(value); return *this;} /** *

The container of the token balance.

*/ inline TokenBalance& WithBalance(Aws::String&& value) { SetBalance(std::move(value)); return *this;} /** *

The container of the token balance.

*/ inline TokenBalance& WithBalance(const char* value) { SetBalance(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 TokenBalance& 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 TokenBalance& WithAtBlockchainInstant(BlockchainInstant&& value) { SetAtBlockchainInstant(std::move(value)); return *this;} /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline const BlockchainInstant& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline void SetLastUpdatedTime(const BlockchainInstant& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline void SetLastUpdatedTime(BlockchainInstant&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline TokenBalance& WithLastUpdatedTime(const BlockchainInstant& value) { SetLastUpdatedTime(value); return *this;} /** *

The timestamp of the last transaction at which the balance for * the token in the wallet was updated.

*/ inline TokenBalance& WithLastUpdatedTime(BlockchainInstant&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: OwnerIdentifier m_ownerIdentifier; bool m_ownerIdentifierHasBeenSet = false; TokenIdentifier m_tokenIdentifier; bool m_tokenIdentifierHasBeenSet = false; Aws::String m_balance; bool m_balanceHasBeenSet = false; BlockchainInstant m_atBlockchainInstant; bool m_atBlockchainInstantHasBeenSet = false; BlockchainInstant m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws