Struct aws_sdk_directconnect::model::virtual_gateway::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for VirtualGateway.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn virtual_gateway_state(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_state(self, input: impl Into<String>) -> Self
The state of the virtual private gateway. The following are the possible values:
-
pending: Initial state after creating the virtual private gateway. -
available: Ready for use by a private virtual interface. -
deleting: Initial state after deleting the virtual private gateway. -
deleted: The virtual private gateway is deleted. The private virtual interface is unable to send traffic over this gateway.
sourcepub fn set_virtual_gateway_state(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_state(self, input: Option<String>) -> Self
The state of the virtual private gateway. The following are the possible values:
-
pending: Initial state after creating the virtual private gateway. -
available: Ready for use by a private virtual interface. -
deleting: Initial state after deleting the virtual private gateway. -
deleted: The virtual private gateway is deleted. The private virtual interface is unable to send traffic over this gateway.
sourcepub fn build(self) -> VirtualGateway
pub fn build(self) -> VirtualGateway
Consumes the builder and constructs a VirtualGateway.