#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for DirectConnectGatewayAttachment
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 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 build(self) -> DirectConnectGatewayAttachment
pub fn build(self) -> DirectConnectGatewayAttachment
Consumes the builder and constructs a DirectConnectGatewayAttachment
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more