/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.connect.model; import java.io.Serializable; /** *
* A chat message. *
*/ public class ChatMessage implements Serializable { /** *
* The type of the content. Supported types are text/plain
,
* text/markdown
, application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* Constraints:
* Length: 1 - 100
*/
private String contentType;
/**
*
* 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.
*
* Constraints:
* Length: 1 - 16384
*/
private String content;
/**
*
* The type of the content. Supported types are text/plain
,
* text/markdown
, application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* Constraints:
* Length: 1 - 100
*
* @return
* The type of the content. Supported types are
* text/plain
, text/markdown
,
* application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* The type of the content. Supported types are text/plain
,
* text/markdown
, application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* Constraints:
* Length: 1 - 100
*
* @param contentType
* The type of the content. Supported types are
* text/plain
, text/markdown
,
* application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* The type of the content. Supported types are text/plain
,
* text/markdown
, application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 100
*
* @param contentType
* The type of the content. Supported types are
* text/plain
, text/markdown
,
* application/json
, and
* application/vnd.amazonaws.connect.message.interactive.response
* .
*
* 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.
*
* Constraints:
* Length: 1 - 16384
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Length: 1 - 16384
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 16384
*
* @param 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.
*