#[non_exhaustive]pub struct DeleteMessageInputBuilder { /* private fields */ }
Expand description
A builder for DeleteMessageInput
.
Implementations§
source§impl DeleteMessageInputBuilder
impl DeleteMessageInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<DeleteMessageInput, BuildError>
pub fn build(self) -> Result<DeleteMessageInput, BuildError>
Consumes the builder and constructs a DeleteMessageInput
.
source§impl DeleteMessageInputBuilder
impl DeleteMessageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteMessageOutput, SdkError<DeleteMessageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteMessageOutput, SdkError<DeleteMessageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteMessageInputBuilder
impl Clone for DeleteMessageInputBuilder
source§fn clone(&self) -> DeleteMessageInputBuilder
fn clone(&self) -> DeleteMessageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeleteMessageInputBuilder
impl Debug for DeleteMessageInputBuilder
source§impl Default for DeleteMessageInputBuilder
impl Default for DeleteMessageInputBuilder
source§fn default() -> DeleteMessageInputBuilder
fn default() -> DeleteMessageInputBuilder
source§impl PartialEq for DeleteMessageInputBuilder
impl PartialEq for DeleteMessageInputBuilder
source§fn eq(&self, other: &DeleteMessageInputBuilder) -> bool
fn eq(&self, other: &DeleteMessageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteMessageInputBuilder
Auto Trait Implementations§
impl Freeze for DeleteMessageInputBuilder
impl RefUnwindSafe for DeleteMessageInputBuilder
impl Send for DeleteMessageInputBuilder
impl Sync for DeleteMessageInputBuilder
impl Unpin for DeleteMessageInputBuilder
impl UnwindSafe for DeleteMessageInputBuilder
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