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

Provides details in the event of a failed flow, including the failure count * and the related error messages.

See Also:

AWS * API Reference

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

Specifies the failure count for the attempted flow.

*/ inline long long GetPutFailuresCount() const{ return m_putFailuresCount; } /** *

Specifies the failure count for the attempted flow.

*/ inline bool PutFailuresCountHasBeenSet() const { return m_putFailuresCountHasBeenSet; } /** *

Specifies the failure count for the attempted flow.

*/ inline void SetPutFailuresCount(long long value) { m_putFailuresCountHasBeenSet = true; m_putFailuresCount = value; } /** *

Specifies the failure count for the attempted flow.

*/ inline ErrorInfo& WithPutFailuresCount(long long value) { SetPutFailuresCount(value); return *this;} /** *

Specifies the error message that appears if a flow fails.

*/ inline const Aws::String& GetExecutionMessage() const{ return m_executionMessage; } /** *

Specifies the error message that appears if a flow fails.

*/ inline bool ExecutionMessageHasBeenSet() const { return m_executionMessageHasBeenSet; } /** *

Specifies the error message that appears if a flow fails.

*/ inline void SetExecutionMessage(const Aws::String& value) { m_executionMessageHasBeenSet = true; m_executionMessage = value; } /** *

Specifies the error message that appears if a flow fails.

*/ inline void SetExecutionMessage(Aws::String&& value) { m_executionMessageHasBeenSet = true; m_executionMessage = std::move(value); } /** *

Specifies the error message that appears if a flow fails.

*/ inline void SetExecutionMessage(const char* value) { m_executionMessageHasBeenSet = true; m_executionMessage.assign(value); } /** *

Specifies the error message that appears if a flow fails.

*/ inline ErrorInfo& WithExecutionMessage(const Aws::String& value) { SetExecutionMessage(value); return *this;} /** *

Specifies the error message that appears if a flow fails.

*/ inline ErrorInfo& WithExecutionMessage(Aws::String&& value) { SetExecutionMessage(std::move(value)); return *this;} /** *

Specifies the error message that appears if a flow fails.

*/ inline ErrorInfo& WithExecutionMessage(const char* value) { SetExecutionMessage(value); return *this;} private: long long m_putFailuresCount; bool m_putFailuresCountHasBeenSet = false; Aws::String m_executionMessage; bool m_executionMessageHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws