Struct aws_sdk_connect::types::builders::ChatMessageBuilder
source · #[non_exhaustive]pub struct ChatMessageBuilder { /* private fields */ }
Expand description
A builder for ChatMessage
.
Implementations§
source§impl ChatMessageBuilder
impl ChatMessageBuilder
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
.
Trait Implementations§
source§impl Clone for ChatMessageBuilder
impl Clone for ChatMessageBuilder
source§fn clone(&self) -> ChatMessageBuilder
fn clone(&self) -> ChatMessageBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChatMessageBuilder
impl Debug for ChatMessageBuilder
source§impl Default for ChatMessageBuilder
impl Default for ChatMessageBuilder
source§fn default() -> ChatMessageBuilder
fn default() -> ChatMessageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ChatMessageBuilder> for ChatMessageBuilder
impl PartialEq<ChatMessageBuilder> for ChatMessageBuilder
source§fn eq(&self, other: &ChatMessageBuilder) -> bool
fn eq(&self, other: &ChatMessageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.