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

Container for text that is returned to the customer..

See * Also:

AWS * API Reference

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

The text of the message.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The text of the message.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The text of the message.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The text of the message.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The text of the message.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The text of the message.

*/ inline Message& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The text of the message.

*/ inline Message& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The text of the message.

*/ inline Message& WithContent(const char* value) { SetContent(value); return *this;} /** *

Indicates the type of response.

*/ inline const MessageContentType& GetContentType() const{ return m_contentType; } /** *

Indicates the type of response.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

Indicates the type of response.

*/ inline void SetContentType(const MessageContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

Indicates the type of response.

*/ inline void SetContentType(MessageContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

Indicates the type of response.

*/ inline Message& WithContentType(const MessageContentType& value) { SetContentType(value); return *this;} /** *

Indicates the type of response.

*/ inline Message& WithContentType(MessageContentType&& value) { SetContentType(std::move(value)); return *this;} inline const ImageResponseCard& GetImageResponseCard() const{ return m_imageResponseCard; } inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; } inline void SetImageResponseCard(const ImageResponseCard& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = value; } inline void SetImageResponseCard(ImageResponseCard&& value) { m_imageResponseCardHasBeenSet = true; m_imageResponseCard = std::move(value); } inline Message& WithImageResponseCard(const ImageResponseCard& value) { SetImageResponseCard(value); return *this;} inline Message& WithImageResponseCard(ImageResponseCard&& value) { SetImageResponseCard(std::move(value)); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; MessageContentType m_contentType; bool m_contentTypeHasBeenSet = false; ImageResponseCard m_imageResponseCard; bool m_imageResponseCardHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws