aws_sdk_ivschat/client/
delete_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 [`DeleteMessage`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`room_identifier(impl Into<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::room_identifier) / [`set_room_identifier(Option<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::set_room_identifier):<br>required: **true**<br><p>Identifier of the room where the message should be deleted. Currently this must be an ARN.</p><br>
7    ///   - [`id(impl Into<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::set_id):<br>required: **true**<br><p>ID of the message to be deleted. This is the <code>Id</code> field in the received message (see <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-message-subscribe.html"> Message (Subscribe)</a> in the Chat Messaging API).</p><br>
8    ///   - [`reason(impl Into<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::reason) / [`set_reason(Option<String>)`](crate::operation::delete_message::builders::DeleteMessageFluentBuilder::set_reason):<br>required: **false**<br><p>Reason for deleting the message.</p><br>
9    /// - On success, responds with [`DeleteMessageOutput`](crate::operation::delete_message::DeleteMessageOutput) with field(s):
10    ///   - [`id(Option<String>)`](crate::operation::delete_message::DeleteMessageOutput::id): <p>Operation identifier, generated by Amazon IVS Chat.</p>
11    /// - On failure, responds with [`SdkError<DeleteMessageError>`](crate::operation::delete_message::DeleteMessageError)
12    pub fn delete_message(&self) -> crate::operation::delete_message::builders::DeleteMessageFluentBuilder {
13        crate::operation::delete_message::builders::DeleteMessageFluentBuilder::new(self.handle.clone())
14    }
15}