/** * 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 AWS_CONNECT_API ChatMessage { public: ChatMessage(); ChatMessage(Aws::Utils::Json::JsonView jsonValue); ChatMessage& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The type of the content. Supported types are text/plain.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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

The content of the chat message.

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