/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides details in the event of a failed flow, including the error type and
* the related error message.See Also:
AWS
* API Reference
Specifies the error message that appears if a flow fails.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *Specifies the error message that appears if a flow fails.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *Specifies the error message that appears if a flow fails.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *Specifies the error message that appears if a flow fails.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *Specifies the error message that appears if a flow fails.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *Specifies the error message that appears if a flow fails.
*/ inline ErrorInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *Specifies the error message that appears if a flow fails.
*/ inline ErrorInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *Specifies the error message that appears if a flow fails.
*/ inline ErrorInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *Specifies the type of error.
*/ inline const ErrorDetails& GetErrorType() const{ return m_errorType; } /** *Specifies the type of error.
*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *Specifies the type of error.
*/ inline void SetErrorType(const ErrorDetails& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *Specifies the type of error.
*/ inline void SetErrorType(ErrorDetails&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *Specifies the type of error.
*/ inline ErrorInfo& WithErrorType(const ErrorDetails& value) { SetErrorType(value); return *this;} /** *Specifies the type of error.
*/ inline ErrorInfo& WithErrorType(ErrorDetails&& value) { SetErrorType(std::move(value)); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; ErrorDetails m_errorType; bool m_errorTypeHasBeenSet = false; }; } // namespace Model } // namespace finspace } // namespace Aws