/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The SQL statement encountered an environmental error while
* running.See Also:
AWS
* API Reference
The exception message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The exception message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The exception message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The exception message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The exception message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The exception message.
*/ inline ExecuteStatementException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The exception message.
*/ inline ExecuteStatementException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The exception message.
*/ inline ExecuteStatementException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *Statement identifier of the exception.
*/ inline const Aws::String& GetStatementId() const{ return m_statementId; } /** *Statement identifier of the exception.
*/ inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; } /** *Statement identifier of the exception.
*/ inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; } /** *Statement identifier of the exception.
*/ inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); } /** *Statement identifier of the exception.
*/ inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); } /** *Statement identifier of the exception.
*/ inline ExecuteStatementException& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;} /** *Statement identifier of the exception.
*/ inline ExecuteStatementException& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;} /** *Statement identifier of the exception.
*/ inline ExecuteStatementException& WithStatementId(const char* value) { SetStatementId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_statementId; bool m_statementIdHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws