Struct aws_sdk_networkmanager::types::builders::TransitGatewayRegistrationStateReasonBuilder
source · #[non_exhaustive]pub struct TransitGatewayRegistrationStateReasonBuilder { /* private fields */ }
Expand description
A builder for TransitGatewayRegistrationStateReason
.
Implementations§
source§impl TransitGatewayRegistrationStateReasonBuilder
impl TransitGatewayRegistrationStateReasonBuilder
sourcepub fn code(self, input: TransitGatewayRegistrationState) -> Self
pub fn code(self, input: TransitGatewayRegistrationState) -> Self
The code for the state reason.
sourcepub fn set_code(self, input: Option<TransitGatewayRegistrationState>) -> Self
pub fn set_code(self, input: Option<TransitGatewayRegistrationState>) -> Self
The code for the state reason.
sourcepub fn get_code(&self) -> &Option<TransitGatewayRegistrationState>
pub fn get_code(&self) -> &Option<TransitGatewayRegistrationState>
The code for the state reason.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message for the state reason.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message for the state reason.
sourcepub fn build(self) -> TransitGatewayRegistrationStateReason
pub fn build(self) -> TransitGatewayRegistrationStateReason
Consumes the builder and constructs a TransitGatewayRegistrationStateReason
.
Trait Implementations§
source§impl Clone for TransitGatewayRegistrationStateReasonBuilder
impl Clone for TransitGatewayRegistrationStateReasonBuilder
source§fn clone(&self) -> TransitGatewayRegistrationStateReasonBuilder
fn clone(&self) -> TransitGatewayRegistrationStateReasonBuilder
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 Default for TransitGatewayRegistrationStateReasonBuilder
impl Default for TransitGatewayRegistrationStateReasonBuilder
source§fn default() -> TransitGatewayRegistrationStateReasonBuilder
fn default() -> TransitGatewayRegistrationStateReasonBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TransitGatewayRegistrationStateReasonBuilder
impl PartialEq for TransitGatewayRegistrationStateReasonBuilder
source§fn eq(&self, other: &TransitGatewayRegistrationStateReasonBuilder) -> bool
fn eq(&self, other: &TransitGatewayRegistrationStateReasonBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayRegistrationStateReasonBuilder
Auto Trait Implementations§
impl Freeze for TransitGatewayRegistrationStateReasonBuilder
impl RefUnwindSafe for TransitGatewayRegistrationStateReasonBuilder
impl Send for TransitGatewayRegistrationStateReasonBuilder
impl Sync for TransitGatewayRegistrationStateReasonBuilder
impl Unpin for TransitGatewayRegistrationStateReasonBuilder
impl UnwindSafe for TransitGatewayRegistrationStateReasonBuilder
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.