/** * 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 Glue { namespace Model { /** *

The code execution output in JSON format.

See Also:

AWS * API Reference

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

The code execution output.

*/ inline const StatementOutputData& GetData() const{ return m_data; } /** *

The code execution output.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The code execution output.

*/ inline void SetData(const StatementOutputData& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The code execution output.

*/ inline void SetData(StatementOutputData&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The code execution output.

*/ inline StatementOutput& WithData(const StatementOutputData& value) { SetData(value); return *this;} /** *

The code execution output.

*/ inline StatementOutput& WithData(StatementOutputData&& value) { SetData(std::move(value)); return *this;} /** *

The execution count of the output.

*/ inline int GetExecutionCount() const{ return m_executionCount; } /** *

The execution count of the output.

*/ inline bool ExecutionCountHasBeenSet() const { return m_executionCountHasBeenSet; } /** *

The execution count of the output.

*/ inline void SetExecutionCount(int value) { m_executionCountHasBeenSet = true; m_executionCount = value; } /** *

The execution count of the output.

*/ inline StatementOutput& WithExecutionCount(int value) { SetExecutionCount(value); return *this;} /** *

The status of the code execution output.

*/ inline const StatementState& GetStatus() const{ return m_status; } /** *

The status of the code execution output.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the code execution output.

*/ inline void SetStatus(const StatementState& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the code execution output.

*/ inline void SetStatus(StatementState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the code execution output.

*/ inline StatementOutput& WithStatus(const StatementState& value) { SetStatus(value); return *this;} /** *

The status of the code execution output.

*/ inline StatementOutput& WithStatus(StatementState&& value) { SetStatus(std::move(value)); return *this;} /** *

The name of the error in the output.

*/ inline const Aws::String& GetErrorName() const{ return m_errorName; } /** *

The name of the error in the output.

*/ inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; } /** *

The name of the error in the output.

*/ inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; } /** *

The name of the error in the output.

*/ inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); } /** *

The name of the error in the output.

*/ inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); } /** *

The name of the error in the output.

*/ inline StatementOutput& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;} /** *

The name of the error in the output.

*/ inline StatementOutput& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;} /** *

The name of the error in the output.

*/ inline StatementOutput& WithErrorName(const char* value) { SetErrorName(value); return *this;} /** *

The error value of the output.

*/ inline const Aws::String& GetErrorValue() const{ return m_errorValue; } /** *

The error value of the output.

*/ inline bool ErrorValueHasBeenSet() const { return m_errorValueHasBeenSet; } /** *

The error value of the output.

*/ inline void SetErrorValue(const Aws::String& value) { m_errorValueHasBeenSet = true; m_errorValue = value; } /** *

The error value of the output.

*/ inline void SetErrorValue(Aws::String&& value) { m_errorValueHasBeenSet = true; m_errorValue = std::move(value); } /** *

The error value of the output.

*/ inline void SetErrorValue(const char* value) { m_errorValueHasBeenSet = true; m_errorValue.assign(value); } /** *

The error value of the output.

*/ inline StatementOutput& WithErrorValue(const Aws::String& value) { SetErrorValue(value); return *this;} /** *

The error value of the output.

*/ inline StatementOutput& WithErrorValue(Aws::String&& value) { SetErrorValue(std::move(value)); return *this;} /** *

The error value of the output.

*/ inline StatementOutput& WithErrorValue(const char* value) { SetErrorValue(value); return *this;} /** *

The traceback of the output.

*/ inline const Aws::Vector& GetTraceback() const{ return m_traceback; } /** *

The traceback of the output.

*/ inline bool TracebackHasBeenSet() const { return m_tracebackHasBeenSet; } /** *

The traceback of the output.

*/ inline void SetTraceback(const Aws::Vector& value) { m_tracebackHasBeenSet = true; m_traceback = value; } /** *

The traceback of the output.

*/ inline void SetTraceback(Aws::Vector&& value) { m_tracebackHasBeenSet = true; m_traceback = std::move(value); } /** *

The traceback of the output.

*/ inline StatementOutput& WithTraceback(const Aws::Vector& value) { SetTraceback(value); return *this;} /** *

The traceback of the output.

*/ inline StatementOutput& WithTraceback(Aws::Vector&& value) { SetTraceback(std::move(value)); return *this;} /** *

The traceback of the output.

*/ inline StatementOutput& AddTraceback(const Aws::String& value) { m_tracebackHasBeenSet = true; m_traceback.push_back(value); return *this; } /** *

The traceback of the output.

*/ inline StatementOutput& AddTraceback(Aws::String&& value) { m_tracebackHasBeenSet = true; m_traceback.push_back(std::move(value)); return *this; } /** *

The traceback of the output.

*/ inline StatementOutput& AddTraceback(const char* value) { m_tracebackHasBeenSet = true; m_traceback.push_back(value); return *this; } private: StatementOutputData m_data; bool m_dataHasBeenSet = false; int m_executionCount; bool m_executionCountHasBeenSet = false; StatementState m_status; bool m_statusHasBeenSet = false; Aws::String m_errorName; bool m_errorNameHasBeenSet = false; Aws::String m_errorValue; bool m_errorValueHasBeenSet = false; Aws::Vector m_traceback; bool m_tracebackHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws