Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data ChatMessage = ChatMessage' {
- contentType :: Text
- content :: Text
- newChatMessage :: Text -> Text -> ChatMessage
- chatMessage_contentType :: Lens' ChatMessage Text
- chatMessage_content :: Lens' ChatMessage Text
Documentation
data ChatMessage Source #
A chat message.
See: newChatMessage
smart constructor.
ChatMessage' | |
|
Instances
Create a value of ChatMessage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:contentType:ChatMessage'
, chatMessage_contentType
- The type of the content. Supported types are text and plain.
$sel:content:ChatMessage'
, chatMessage_content
- The content of the chat message.
chatMessage_contentType :: Lens' ChatMessage Text Source #
The type of the content. Supported types are text and plain.
chatMessage_content :: Lens' ChatMessage Text Source #
The content of the chat message.