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

Error generated from a failed BatchGetTokenBalance * request.

See Also:

AWS * API Reference

*/ class BatchGetTokenBalanceErrorItem { public: AWS_MANAGEDBLOCKCHAINQUERY_API BatchGetTokenBalanceErrorItem(); AWS_MANAGEDBLOCKCHAINQUERY_API BatchGetTokenBalanceErrorItem(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API BatchGetTokenBalanceErrorItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; inline const TokenIdentifier& GetTokenIdentifier() const{ return m_tokenIdentifier; } inline bool TokenIdentifierHasBeenSet() const { return m_tokenIdentifierHasBeenSet; } inline void SetTokenIdentifier(const TokenIdentifier& value) { m_tokenIdentifierHasBeenSet = true; m_tokenIdentifier = value; } inline void SetTokenIdentifier(TokenIdentifier&& value) { m_tokenIdentifierHasBeenSet = true; m_tokenIdentifier = std::move(value); } inline BatchGetTokenBalanceErrorItem& WithTokenIdentifier(const TokenIdentifier& value) { SetTokenIdentifier(value); return *this;} inline BatchGetTokenBalanceErrorItem& WithTokenIdentifier(TokenIdentifier&& value) { SetTokenIdentifier(std::move(value)); return *this;} inline const OwnerIdentifier& GetOwnerIdentifier() const{ return m_ownerIdentifier; } inline bool OwnerIdentifierHasBeenSet() const { return m_ownerIdentifierHasBeenSet; } inline void SetOwnerIdentifier(const OwnerIdentifier& value) { m_ownerIdentifierHasBeenSet = true; m_ownerIdentifier = value; } inline void SetOwnerIdentifier(OwnerIdentifier&& value) { m_ownerIdentifierHasBeenSet = true; m_ownerIdentifier = std::move(value); } inline BatchGetTokenBalanceErrorItem& WithOwnerIdentifier(const OwnerIdentifier& value) { SetOwnerIdentifier(value); return *this;} inline BatchGetTokenBalanceErrorItem& WithOwnerIdentifier(OwnerIdentifier&& value) { SetOwnerIdentifier(std::move(value)); return *this;} inline const BlockchainInstant& GetAtBlockchainInstant() const{ return m_atBlockchainInstant; } inline bool AtBlockchainInstantHasBeenSet() const { return m_atBlockchainInstantHasBeenSet; } inline void SetAtBlockchainInstant(const BlockchainInstant& value) { m_atBlockchainInstantHasBeenSet = true; m_atBlockchainInstant = value; } inline void SetAtBlockchainInstant(BlockchainInstant&& value) { m_atBlockchainInstantHasBeenSet = true; m_atBlockchainInstant = std::move(value); } inline BatchGetTokenBalanceErrorItem& WithAtBlockchainInstant(const BlockchainInstant& value) { SetAtBlockchainInstant(value); return *this;} inline BatchGetTokenBalanceErrorItem& WithAtBlockchainInstant(BlockchainInstant&& value) { SetAtBlockchainInstant(std::move(value)); return *this;} /** *

The error code associated with the error.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code associated with the error.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code associated with the error.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code associated with the error.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code associated with the error.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The message associated with the error.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The message associated with the error.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The message associated with the error.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The message associated with the error.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The message associated with the error.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The message associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The message associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The message associated with the error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The type of error.

*/ inline const ErrorType& GetErrorType() const{ return m_errorType; } /** *

The type of error.

*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *

The type of error.

*/ inline void SetErrorType(const ErrorType& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *

The type of error.

*/ inline void SetErrorType(ErrorType&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *

The type of error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorType(const ErrorType& value) { SetErrorType(value); return *this;} /** *

The type of error.

*/ inline BatchGetTokenBalanceErrorItem& WithErrorType(ErrorType&& value) { SetErrorType(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; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; ErrorType m_errorType; bool m_errorTypeHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws