#[non_exhaustive]pub struct DirectConnectGatewayAttachmentBuilder { /* private fields */ }Expand description
A builder for DirectConnectGatewayAttachment.
Implementations§
source§impl DirectConnectGatewayAttachmentBuilder
impl DirectConnectGatewayAttachmentBuilder
sourcepub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn get_direct_connect_gateway_id(&self) -> &Option<String>
pub fn get_direct_connect_gateway_id(&self) -> &Option<String>
The ID of the Direct Connect gateway.
sourcepub fn virtual_interface_id(self, input: impl Into<String>) -> Self
pub fn virtual_interface_id(self, input: impl Into<String>) -> Self
The ID of the virtual interface.
sourcepub fn set_virtual_interface_id(self, input: Option<String>) -> Self
pub fn set_virtual_interface_id(self, input: Option<String>) -> Self
The ID of the virtual interface.
sourcepub fn get_virtual_interface_id(&self) -> &Option<String>
pub fn get_virtual_interface_id(&self) -> &Option<String>
The ID of the virtual interface.
sourcepub fn virtual_interface_region(self, input: impl Into<String>) -> Self
pub fn virtual_interface_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn set_virtual_interface_region(self, input: Option<String>) -> Self
pub fn set_virtual_interface_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn get_virtual_interface_region(&self) -> &Option<String>
pub fn get_virtual_interface_region(&self) -> &Option<String>
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn virtual_interface_owner_account(self, input: impl Into<String>) -> Self
pub fn virtual_interface_owner_account(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn set_virtual_interface_owner_account(self, input: Option<String>) -> Self
pub fn set_virtual_interface_owner_account(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn get_virtual_interface_owner_account(&self) -> &Option<String>
pub fn get_virtual_interface_owner_account(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn attachment_state(
self,
input: DirectConnectGatewayAttachmentState,
) -> Self
pub fn attachment_state( self, input: DirectConnectGatewayAttachmentState, ) -> Self
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn set_attachment_state(
self,
input: Option<DirectConnectGatewayAttachmentState>,
) -> Self
pub fn set_attachment_state( self, input: Option<DirectConnectGatewayAttachmentState>, ) -> Self
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn get_attachment_state(
&self,
) -> &Option<DirectConnectGatewayAttachmentState>
pub fn get_attachment_state( &self, ) -> &Option<DirectConnectGatewayAttachmentState>
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn attachment_type(self, input: DirectConnectGatewayAttachmentType) -> Self
pub fn attachment_type(self, input: DirectConnectGatewayAttachmentType) -> Self
The type of attachment.
sourcepub fn set_attachment_type(
self,
input: Option<DirectConnectGatewayAttachmentType>,
) -> Self
pub fn set_attachment_type( self, input: Option<DirectConnectGatewayAttachmentType>, ) -> Self
The type of attachment.
sourcepub fn get_attachment_type(&self) -> &Option<DirectConnectGatewayAttachmentType>
pub fn get_attachment_type(&self) -> &Option<DirectConnectGatewayAttachmentType>
The type of attachment.
sourcepub fn state_change_error(self, input: impl Into<String>) -> Self
pub fn state_change_error(self, input: impl Into<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn set_state_change_error(self, input: Option<String>) -> Self
pub fn set_state_change_error(self, input: Option<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn get_state_change_error(&self) -> &Option<String>
pub fn get_state_change_error(&self) -> &Option<String>
The error message if the state of an object failed to advance.
sourcepub fn build(self) -> DirectConnectGatewayAttachment
pub fn build(self) -> DirectConnectGatewayAttachment
Consumes the builder and constructs a DirectConnectGatewayAttachment.
Trait Implementations§
source§impl Clone for DirectConnectGatewayAttachmentBuilder
impl Clone for DirectConnectGatewayAttachmentBuilder
source§fn clone(&self) -> DirectConnectGatewayAttachmentBuilder
fn clone(&self) -> DirectConnectGatewayAttachmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DirectConnectGatewayAttachmentBuilder
impl Default for DirectConnectGatewayAttachmentBuilder
source§fn default() -> DirectConnectGatewayAttachmentBuilder
fn default() -> DirectConnectGatewayAttachmentBuilder
source§impl PartialEq for DirectConnectGatewayAttachmentBuilder
impl PartialEq for DirectConnectGatewayAttachmentBuilder
source§fn eq(&self, other: &DirectConnectGatewayAttachmentBuilder) -> bool
fn eq(&self, other: &DirectConnectGatewayAttachmentBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DirectConnectGatewayAttachmentBuilder
Auto Trait Implementations§
impl Freeze for DirectConnectGatewayAttachmentBuilder
impl RefUnwindSafe for DirectConnectGatewayAttachmentBuilder
impl Send for DirectConnectGatewayAttachmentBuilder
impl Sync for DirectConnectGatewayAttachmentBuilder
impl Unpin for DirectConnectGatewayAttachmentBuilder
impl UnwindSafe for DirectConnectGatewayAttachmentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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