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

The server encountered an internal error and is unable to complete the * request.

See Also:

AWS * API Reference

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

The internal error encountered by the server.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

The internal error encountered by the server.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

The internal error encountered by the server.

*/ inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } /** *

The internal error encountered by the server.

*/ inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

The internal error encountered by the server.

*/ inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } /** *

The internal error encountered by the server.

*/ inline InternalServerException& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

The internal error encountered by the server.

*/ inline InternalServerException& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

The internal error encountered by the server.

*/ inline InternalServerException& WithError(const char* value) { SetError(value); return *this;} /** *

Description of the error.

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

Description of the error.

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

Description of the error.

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

Description of the error.

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

Description of the error.

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

Description of the error.

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

Description of the error.

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

Description of the error.

*/ inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_error; bool m_errorHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws