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

Provides information about an API request or response.

See * Also:

AWS * API Reference

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The message that's returned from the API.

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

The unique identifier for the request or response.

*/ inline const Aws::String& GetRequestID() const{ return m_requestID; } /** *

The unique identifier for the request or response.

*/ inline bool RequestIDHasBeenSet() const { return m_requestIDHasBeenSet; } /** *

The unique identifier for the request or response.

*/ inline void SetRequestID(const Aws::String& value) { m_requestIDHasBeenSet = true; m_requestID = value; } /** *

The unique identifier for the request or response.

*/ inline void SetRequestID(Aws::String&& value) { m_requestIDHasBeenSet = true; m_requestID = std::move(value); } /** *

The unique identifier for the request or response.

*/ inline void SetRequestID(const char* value) { m_requestIDHasBeenSet = true; m_requestID.assign(value); } /** *

The unique identifier for the request or response.

*/ inline NotFoundException& WithRequestID(const Aws::String& value) { SetRequestID(value); return *this;} /** *

The unique identifier for the request or response.

*/ inline NotFoundException& WithRequestID(Aws::String&& value) { SetRequestID(std::move(value)); return *this;} /** *

The unique identifier for the request or response.

*/ inline NotFoundException& WithRequestID(const char* value) { SetRequestID(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_requestID; bool m_requestIDHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws