/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about an error state of the cluster.See Also:
AWS API
* Reference
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