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.