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

The details of the step failure. The service attempts to detect the root * cause for many common failures.

See Also:

AWS * API Reference

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

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline FailureDetails& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline FailureDetails& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the step failure. In the case where the service cannot * successfully determine the root cause of the failure, it returns "Unknown Error" * as a reason.

*/ inline FailureDetails& WithReason(const char* value) { SetReason(value); return *this;} /** *

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The descriptive message including the error the Amazon EMR service has * identified as the cause of step failure. This is text from an error log that * describes the root cause of the failure.

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

The path to the log file where the step failure root cause was originally * recorded.

*/ inline const Aws::String& GetLogFile() const{ return m_logFile; } /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline bool LogFileHasBeenSet() const { return m_logFileHasBeenSet; } /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline void SetLogFile(const Aws::String& value) { m_logFileHasBeenSet = true; m_logFile = value; } /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline void SetLogFile(Aws::String&& value) { m_logFileHasBeenSet = true; m_logFile = std::move(value); } /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline void SetLogFile(const char* value) { m_logFileHasBeenSet = true; m_logFile.assign(value); } /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline FailureDetails& WithLogFile(const Aws::String& value) { SetLogFile(value); return *this;} /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline FailureDetails& WithLogFile(Aws::String&& value) { SetLogFile(std::move(value)); return *this;} /** *

The path to the log file where the step failure root cause was originally * recorded.

*/ inline FailureDetails& WithLogFile(const char* value) { SetLogFile(value); return *this;} private: Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_logFile; bool m_logFileHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws