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

A chat message.

See Also:

AWS * API Reference

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

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

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

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

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

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

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

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

*/ inline ChatMessage& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

*/ inline ChatMessage& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The type of the content. Supported types are text/plain, * text/markdown, application/json, and * application/vnd.amazonaws.connect.message.interactive.response.

*/ inline ChatMessage& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

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

The content of the chat message.

  • For * text/plain and text/markdown, the Length Constraints * are Minimum of 1, Maximum of 1024.

  • For * application/json, the Length Constraints are Minimum of 1, Maximum * of 12000.

  • For * application/vnd.amazonaws.connect.message.interactive.response, the * Length Constraints are Minimum of 1, Maximum of 12288.

*/ inline ChatMessage& WithContent(const char* value) { SetContent(value); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws