#[non_exhaustive]pub struct DisconnectUserInputBuilder { /* private fields */ }
Expand description
A builder for DisconnectUserInput
.
Implementations§
source§impl DisconnectUserInputBuilder
impl DisconnectUserInputBuilder
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.
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 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.
This field is required.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.
sourcepub fn build(self) -> Result<DisconnectUserInput, BuildError>
pub fn build(self) -> Result<DisconnectUserInput, BuildError>
Consumes the builder and constructs a DisconnectUserInput
.
source§impl DisconnectUserInputBuilder
impl DisconnectUserInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DisconnectUserOutput, SdkError<DisconnectUserError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DisconnectUserOutput, SdkError<DisconnectUserError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DisconnectUserInputBuilder
impl Clone for DisconnectUserInputBuilder
source§fn clone(&self) -> DisconnectUserInputBuilder
fn clone(&self) -> DisconnectUserInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisconnectUserInputBuilder
impl Debug for DisconnectUserInputBuilder
source§impl Default for DisconnectUserInputBuilder
impl Default for DisconnectUserInputBuilder
source§fn default() -> DisconnectUserInputBuilder
fn default() -> DisconnectUserInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DisconnectUserInputBuilder
impl PartialEq for DisconnectUserInputBuilder
source§fn eq(&self, other: &DisconnectUserInputBuilder) -> bool
fn eq(&self, other: &DisconnectUserInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DisconnectUserInputBuilder
Auto Trait Implementations§
impl Freeze for DisconnectUserInputBuilder
impl RefUnwindSafe for DisconnectUserInputBuilder
impl Send for DisconnectUserInputBuilder
impl Sync for DisconnectUserInputBuilder
impl Unpin for DisconnectUserInputBuilder
impl UnwindSafe for DisconnectUserInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.