/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RDSDataService { namespace Model { /** *

The execution of the SQL statement timed out.

See Also:

AWS * API Reference

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

The error message returned by this StatementTimeoutException * error.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The error message returned by this StatementTimeoutException * error.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The error message returned by this StatementTimeoutException * error.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The error message returned by this StatementTimeoutException * error.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The error message returned by this StatementTimeoutException * error.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The error message returned by this StatementTimeoutException * error.

*/ inline StatementTimeoutException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The error message returned by this StatementTimeoutException * error.

*/ inline StatementTimeoutException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The error message returned by this StatementTimeoutException * error.

*/ inline StatementTimeoutException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The database connection ID that executed the SQL statement.

*/ inline long long GetDbConnectionId() const{ return m_dbConnectionId; } /** *

The database connection ID that executed the SQL statement.

*/ inline bool DbConnectionIdHasBeenSet() const { return m_dbConnectionIdHasBeenSet; } /** *

The database connection ID that executed the SQL statement.

*/ inline void SetDbConnectionId(long long value) { m_dbConnectionIdHasBeenSet = true; m_dbConnectionId = value; } /** *

The database connection ID that executed the SQL statement.

*/ inline StatementTimeoutException& WithDbConnectionId(long long value) { SetDbConnectionId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; long long m_dbConnectionId; bool m_dbConnectionIdHasBeenSet = false; }; } // namespace Model } // namespace RDSDataService } // namespace Aws