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

Returns information about an error state of the cluster.

*

See Also:

AWS API * Reference

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

A number describing the error programmatically.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

A number describing the error programmatically.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

A number describing the error programmatically.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

A number describing the error programmatically.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

A number describing the error programmatically.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

A number describing the error programmatically.

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

A number describing the error programmatically.

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

A number describing the error programmatically.

*/ inline ErrorInfo& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

An optional field to provide more details about the error.

* */ inline const Aws::String& GetErrorString() const{ return m_errorString; } /** *

An optional field to provide more details about the error.

* */ inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; } /** *

An optional field to provide more details about the error.

* */ inline void SetErrorString(const Aws::String& value) { m_errorStringHasBeenSet = true; m_errorString = value; } /** *

An optional field to provide more details about the error.

* */ inline void SetErrorString(Aws::String&& value) { m_errorStringHasBeenSet = true; m_errorString = std::move(value); } /** *

An optional field to provide more details about the error.

* */ inline void SetErrorString(const char* value) { m_errorStringHasBeenSet = true; m_errorString.assign(value); } /** *

An optional field to provide more details about the error.

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

An optional field to provide more details about the error.

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

An optional field to provide more details about the error.

* */ inline ErrorInfo& WithErrorString(const char* value) { SetErrorString(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorString; bool m_errorStringHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws