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

If you configure a response card when creating your bots, Amazon Lex * substitutes the session attributes and slot values that are available, and then * returns it. The response card can also come from a Lambda function ( * dialogCodeHook and fulfillmentActivity on an * intent).

See Also:

AWS * API Reference

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

The version of the response card format.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the response card format.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the response card format.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the response card format.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version of the response card format.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version of the response card format.

*/ inline ResponseCard& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the response card format.

*/ inline ResponseCard& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the response card format.

*/ inline ResponseCard& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The content type of the response.

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

The content type of the response.

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

The content type of the response.

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

The content type of the response.

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

The content type of the response.

*/ inline ResponseCard& WithContentType(const ContentType& value) { SetContentType(value); return *this;} /** *

The content type of the response.

*/ inline ResponseCard& WithContentType(ContentType&& value) { SetContentType(std::move(value)); return *this;} /** *

An array of attachment objects representing options.

*/ inline const Aws::Vector& GetGenericAttachments() const{ return m_genericAttachments; } /** *

An array of attachment objects representing options.

*/ inline bool GenericAttachmentsHasBeenSet() const { return m_genericAttachmentsHasBeenSet; } /** *

An array of attachment objects representing options.

*/ inline void SetGenericAttachments(const Aws::Vector& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments = value; } /** *

An array of attachment objects representing options.

*/ inline void SetGenericAttachments(Aws::Vector&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments = std::move(value); } /** *

An array of attachment objects representing options.

*/ inline ResponseCard& WithGenericAttachments(const Aws::Vector& value) { SetGenericAttachments(value); return *this;} /** *

An array of attachment objects representing options.

*/ inline ResponseCard& WithGenericAttachments(Aws::Vector&& value) { SetGenericAttachments(std::move(value)); return *this;} /** *

An array of attachment objects representing options.

*/ inline ResponseCard& AddGenericAttachments(const GenericAttachment& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments.push_back(value); return *this; } /** *

An array of attachment objects representing options.

*/ inline ResponseCard& AddGenericAttachments(GenericAttachment&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments.push_back(std::move(value)); return *this; } private: Aws::String m_version; bool m_versionHasBeenSet = false; ContentType m_contentType; bool m_contentTypeHasBeenSet = false; Aws::Vector m_genericAttachments; bool m_genericAttachmentsHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeService } // namespace Aws