pub struct DeleteMessageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteMessage
.
Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName
is aws:DELETE_MESSAGE
. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API.
Implementations§
source§impl DeleteMessageFluentBuilder
impl DeleteMessageFluentBuilder
sourcepub fn as_input(&self) -> &DeleteMessageInputBuilder
pub fn as_input(&self) -> &DeleteMessageInputBuilder
Access the DeleteMessage as a reference.
sourcepub async fn send(
self
) -> Result<DeleteMessageOutput, SdkError<DeleteMessageError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteMessageOutput, SdkError<DeleteMessageError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DeleteMessageOutput, DeleteMessageError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteMessageOutput, DeleteMessageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn room_identifier(self, input: impl Into<String>) -> Self
pub fn room_identifier(self, input: impl Into<String>) -> Self
Identifier of the room where the message should be deleted. Currently this must be an ARN.
sourcepub fn set_room_identifier(self, input: Option<String>) -> Self
pub fn set_room_identifier(self, input: Option<String>) -> Self
Identifier of the room where the message should be deleted. Currently this must be an ARN.
sourcepub fn get_room_identifier(&self) -> &Option<String>
pub fn get_room_identifier(&self) -> &Option<String>
Identifier of the room where the message should be deleted. Currently this must be an ARN.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
ID of the message to be deleted. This is the Id
field in the received message (see Message (Subscribe) in the Chat Messaging API).
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
ID of the message to be deleted. This is the Id
field in the received message (see Message (Subscribe) in the Chat Messaging API).
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
ID of the message to be deleted. This is the Id
field in the received message (see Message (Subscribe) in the Chat Messaging API).
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
Reason for deleting the message.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
Reason for deleting the message.
Trait Implementations§
source§impl Clone for DeleteMessageFluentBuilder
impl Clone for DeleteMessageFluentBuilder
source§fn clone(&self) -> DeleteMessageFluentBuilder
fn clone(&self) -> DeleteMessageFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DeleteMessageFluentBuilder
impl !RefUnwindSafe for DeleteMessageFluentBuilder
impl Send for DeleteMessageFluentBuilder
impl Sync for DeleteMessageFluentBuilder
impl Unpin for DeleteMessageFluentBuilder
impl !UnwindSafe for DeleteMessageFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more