Skip to main content

aws_sdk_devopsagent/client/
send_message.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`SendMessage`](crate::operation::send_message::builders::SendMessageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The agent space identifier</p><br>
7    ///   - [`execution_id(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::execution_id) / [`set_execution_id(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_execution_id):<br>required: **true**<br><p>The execution identifier for the chat session</p><br>
8    ///   - [`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 user message content</p><br>
9    ///   - [`context(SendMessageContext)`](crate::operation::send_message::builders::SendMessageFluentBuilder::context) / [`set_context(Option<SendMessageContext>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_context):<br>required: **false**<br><p>Optional context for the message</p><br>
10    ///   - [`user_id(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_user_id):<br>required: **false**<br><p>User identifier. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.</p><br>
11    ///   - [`asset_ids(impl Into<String>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::asset_ids) / [`set_asset_ids(Option<Vec::<String>>)`](crate::operation::send_message::builders::SendMessageFluentBuilder::set_asset_ids):<br>required: **false**<br><p>Optional list of asset identifiers to attach to the message</p><br>
12    /// - On success, responds with [`SendMessageOutput`](crate::operation::send_message::SendMessageOutput) with field(s):
13    ///   - [`events(EventReceiver<SendMessageEvents, SendMessageEventsError>)`](crate::operation::send_message::SendMessageOutput::events): <p>The stream of chat message events</p>
14    /// - On failure, responds with [`SdkError<SendMessageError>`](crate::operation::send_message::SendMessageError)
15    pub fn send_message(&self) -> crate::operation::send_message::builders::SendMessageFluentBuilder {
16        crate::operation::send_message::builders::SendMessageFluentBuilder::new(self.handle.clone())
17    }
18}