/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector { namespace Model { /** *

The request was rejected because it referenced an entity that does not exist. * The error code describes the entity.

See Also:

AWS * API Reference

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

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

Details of the exception error.

*/ inline NoSuchEntityException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Code that indicates the type of error that is generated.

*/ inline const NoSuchEntityErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

Code that indicates the type of error that is generated.

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

Code that indicates the type of error that is generated.

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

Code that indicates the type of error that is generated.

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

Code that indicates the type of error that is generated.

*/ inline NoSuchEntityException& WithErrorCode(const NoSuchEntityErrorCode& value) { SetErrorCode(value); return *this;} /** *

Code that indicates the type of error that is generated.

*/ inline NoSuchEntityException& WithErrorCode(NoSuchEntityErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

You can immediately retry your request.

*/ inline bool GetCanRetry() const{ return m_canRetry; } /** *

You can immediately retry your request.

*/ inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; } /** *

You can immediately retry your request.

*/ inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; } /** *

You can immediately retry your request.

*/ inline NoSuchEntityException& WithCanRetry(bool value) { SetCanRetry(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; NoSuchEntityErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; bool m_canRetry; bool m_canRetryHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws