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

An object that contains a response to the utterance from the * bot.

See Also:

AWS * API Reference

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The text of the response to the utterance from the bot.

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

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

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

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

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

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

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

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

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

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

*/ inline UtteranceBotResponse& WithContentType(const UtteranceContentType& value) { SetContentType(value); return *this;} /** *

The type of the response. The following values are possible:

  • *

    PlainText – A plain text string.

  • * CustomPayload – A response string that you can customize to include * data or metadata for your application.

  • SSML – A * string that includes Speech Synthesis Markup Language to customize the audio * response.

  • ImageResponseCard – An image with * buttons that the customer can select. See ImageResponseCard * for more information.

*/ inline UtteranceBotResponse& WithContentType(UtteranceContentType&& 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 UtteranceBotResponse& WithImageResponseCard(const ImageResponseCard& value) { SetImageResponseCard(value); return *this;} inline UtteranceBotResponse& WithImageResponseCard(ImageResponseCard&& value) { SetImageResponseCard(std::move(value)); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; UtteranceContentType m_contentType; bool m_contentTypeHasBeenSet = false; ImageResponseCard m_imageResponseCard; bool m_imageResponseCardHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws