pub struct DisconnectUserFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DisconnectUser
.
Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API.
Implementations§
source§impl DisconnectUserFluentBuilder
impl DisconnectUserFluentBuilder
sourcepub fn as_input(&self) -> &DisconnectUserInputBuilder
pub fn as_input(&self) -> &DisconnectUserInputBuilder
Access the DisconnectUser as a reference.
sourcepub async fn send(
self
) -> Result<DisconnectUserOutput, SdkError<DisconnectUserError, HttpResponse>>
pub async fn send( self ) -> Result<DisconnectUserOutput, SdkError<DisconnectUserError, 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<DisconnectUserOutput, DisconnectUserError, Self>
pub fn customize( self ) -> CustomizableOperation<DisconnectUserOutput, DisconnectUserError, 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 from which the user's clients should be disconnected. 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 from which the user's clients should be disconnected. 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 from which the user's clients should be disconnected. Currently this must be an ARN.
sourcepub fn user_id(self, input: impl Into<String>) -> Self
pub fn user_id(self, input: impl Into<String>) -> Self
ID of the user (connection) to disconnect from the room.
sourcepub fn set_user_id(self, input: Option<String>) -> Self
pub fn set_user_id(self, input: Option<String>) -> Self
ID of the user (connection) to disconnect from the room.
sourcepub fn get_user_id(&self) -> &Option<String>
pub fn get_user_id(&self) -> &Option<String>
ID of the user (connection) to disconnect from the room.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
Reason for disconnecting the user.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
Reason for disconnecting the user.
Trait Implementations§
source§impl Clone for DisconnectUserFluentBuilder
impl Clone for DisconnectUserFluentBuilder
source§fn clone(&self) -> DisconnectUserFluentBuilder
fn clone(&self) -> DisconnectUserFluentBuilder
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 DisconnectUserFluentBuilder
impl !RefUnwindSafe for DisconnectUserFluentBuilder
impl Send for DisconnectUserFluentBuilder
impl Sync for DisconnectUserFluentBuilder
impl Unpin for DisconnectUserFluentBuilder
impl !UnwindSafe for DisconnectUserFluentBuilder
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