Struct aws_sdk_connect::model::chat_message::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ChatMessage
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The type of the content. Supported types are text/plain
, text/markdown
, and application/json
.
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The type of the content. Supported types are text/plain
, text/markdown
, and application/json
.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The content of the chat message.
-
For
text/plain
andtext/markdown
, the Length Constraints are Minimum of 1, Maximum of 1024. -
For
application/json
, the Length Constraints are Minimum of 1, Maximum of 12000.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The content of the chat message.
-
For
text/plain
andtext/markdown
, the Length Constraints are Minimum of 1, Maximum of 1024. -
For
application/json
, the Length Constraints are Minimum of 1, Maximum of 12000.
sourcepub fn build(self) -> ChatMessage
pub fn build(self) -> ChatMessage
Consumes the builder and constructs a ChatMessage
.