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

Information about an internal error.

See Also:

AWS * API Reference

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

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;} /** *

Advice to clients on when the call can be safely retried.

*/ inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } /** *

Advice to clients on when the call can be safely retried.

*/ inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } /** *

Advice to clients on when the call can be safely retried.

*/ inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } /** *

Advice to clients on when the call can be safely retried.

*/ inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; int m_retryAfterSeconds; bool m_retryAfterSecondsHasBeenSet = false; }; } // namespace Model } // namespace PrivateNetworks } // namespace Aws