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

The server encountered an unexpected condition that prevented it from * fulfilling the request.

See Also:

AWS * API Reference

*/ class InternalServerException { public: AWS_MGN_API InternalServerException(); AWS_MGN_API InternalServerException(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API InternalServerException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The server encountered an unexpected condition that prevented it from * fulfilling the request. The request will be retried again after x seconds.

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

The server encountered an unexpected condition that prevented it from * fulfilling the request. The request will be retried again after x seconds.

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

The server encountered an unexpected condition that prevented it from * fulfilling the request. The request will be retried again after x seconds.

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

The server encountered an unexpected condition that prevented it from * fulfilling the request. The request will be retried again after x seconds.

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