/** * 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 { /** *

A card that is shown to the user by a messaging platform. You define the * contents of the card, the card is displayed by the platform.

When you * use a response card, the response from the user is constrained to the text * associated with a button on the card.

See Also:

AWS * API Reference

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

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title to display on the response card. The format of the title is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline const Aws::String& GetSubtitle() const{ return m_subtitle; } /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; } /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline void SetSubtitle(const Aws::String& value) { m_subtitleHasBeenSet = true; m_subtitle = value; } /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline void SetSubtitle(Aws::String&& value) { m_subtitleHasBeenSet = true; m_subtitle = std::move(value); } /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline void SetSubtitle(const char* value) { m_subtitleHasBeenSet = true; m_subtitle.assign(value); } /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithSubtitle(const Aws::String& value) { SetSubtitle(value); return *this;} /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithSubtitle(Aws::String&& value) { SetSubtitle(std::move(value)); return *this;} /** *

The subtitle to display on the response card. The format of the subtitle is * determined by the platform displaying the response card.

*/ inline ImageResponseCard& WithSubtitle(const char* value) { SetSubtitle(value); return *this;} /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline const Aws::String& GetImageUrl() const{ return m_imageUrl; } /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; } /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; } /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); } /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); } /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline ImageResponseCard& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;} /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline ImageResponseCard& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;} /** *

The URL of an image to display on the response card. The image URL must be * publicly available so that the platform displaying the response card has access * to the image.

*/ inline ImageResponseCard& WithImageUrl(const char* value) { SetImageUrl(value); return *this;} /** *

A list of buttons that should be displayed on the response card. The * arrangement of the buttons is determined by the platform that displays the * button.

*/ inline const Aws::Vector