aws_sdk_connectparticipant/client/
send_message.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendMessage`](crate::operation::send_message::builders::SendMessageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`content_type(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_content_type):<br>required: **true**<br><p>The type of the content. Supported types are <code>text/plain</code>, <code>text/markdown</code>, <code>application/json</code>, and <code>application/vnd.amazonaws.connect.message.interactive.response</code>.</p><br>
    ///   - [`content(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_content):<br>required: **true**<br><p>The content of the message.</p> <ul>  <li>   <p>For <code>text/plain</code> and <code>text/markdown</code>, the Length Constraints are Minimum of 1, Maximum of 1024.</p></li>  <li>   <p>For <code>application/json</code>, the Length Constraints are Minimum of 1, Maximum of 12000.</p></li>  <li>   <p>For <code>application/vnd.amazonaws.connect.message.interactive.response</code>, the Length Constraints are Minimum of 1, Maximum of 12288.</p></li> </ul><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
    ///   - [`connection_token(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::connection_token) / [`set_connection_token(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_connection_token):<br>required: **true**<br><p>The authentication token associated with the connection.</p><br>
    /// - On success, responds with [`SendMessageOutput`](crate::operation::send_message::SendMessageOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::send_message::SendMessageOutput::id): <p>The ID of the message.</p>
    ///   - [`absolute_time(Option<String>)`](crate::operation::send_message::SendMessageOutput::absolute_time): <p>The time when the message was sent.</p> <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p>
    /// - On failure, responds with [`SdkError<SendMessageError>`](crate::operation::send_message::SendMessageError)
    pub fn send_message(&self) -> crate::operation::send_message::builders::SendMessageFluentBuilder {
        crate::operation::send_message::builders::SendMessageFluentBuilder::new(self.handle.clone())
    }
}