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>The agent space identifier<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>The execution identifier for the chat session<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>The user message content<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>Optional context for the message<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: **true**<br>Required user identifier<br>
11 /// - On success, responds with [`SendMessageOutput`](crate::operation::send_message::SendMessageOutput) with field(s):
12 /// - [`events(EventReceiver<SendMessageEvents, SendMessageEventsError>)`](crate::operation::send_message::SendMessageOutput::events): The stream of chat message events
13 /// - On failure, responds with [`SdkError<SendMessageError>`](crate::operation::send_message::SendMessageError)
14 pub fn send_message(&self) -> crate::operation::send_message::builders::SendMessageFluentBuilder {
15 crate::operation::send_message::builders::SendMessageFluentBuilder::new(self.handle.clone())
16 }
17}