Struct aws_sdk_connect::types::builders::DisconnectReasonBuilder
source · #[non_exhaustive]pub struct DisconnectReasonBuilder { /* private fields */ }
Expand description
A builder for DisconnectReason
.
Implementations§
source§impl DisconnectReasonBuilder
impl DisconnectReasonBuilder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
A code that indicates how the contact was terminated.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
A code that indicates how the contact was terminated.
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
A code that indicates how the contact was terminated.
sourcepub fn build(self) -> DisconnectReason
pub fn build(self) -> DisconnectReason
Consumes the builder and constructs a DisconnectReason
.
Trait Implementations§
source§impl Clone for DisconnectReasonBuilder
impl Clone for DisconnectReasonBuilder
source§fn clone(&self) -> DisconnectReasonBuilder
fn clone(&self) -> DisconnectReasonBuilder
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 DisconnectReasonBuilder
impl Debug for DisconnectReasonBuilder
source§impl Default for DisconnectReasonBuilder
impl Default for DisconnectReasonBuilder
source§fn default() -> DisconnectReasonBuilder
fn default() -> DisconnectReasonBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DisconnectReasonBuilder
impl PartialEq for DisconnectReasonBuilder
source§fn eq(&self, other: &DisconnectReasonBuilder) -> bool
fn eq(&self, other: &DisconnectReasonBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DisconnectReasonBuilder
Auto Trait Implementations§
impl Freeze for DisconnectReasonBuilder
impl RefUnwindSafe for DisconnectReasonBuilder
impl Send for DisconnectReasonBuilder
impl Sync for DisconnectReasonBuilder
impl Unpin for DisconnectReasonBuilder
impl UnwindSafe for DisconnectReasonBuilder
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>
Creates a shared type from an unshared type.