#[non_exhaustive]pub struct VirtualGatewayBuilder { /* private fields */ }Expand description
A builder for VirtualGateway.
Implementations§
source§impl VirtualGatewayBuilder
impl VirtualGatewayBuilder
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 get_virtual_gateway_id(&self) -> &Option<String>
pub fn get_virtual_gateway_id(&self) -> &Option<String>
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 get_virtual_gateway_state(&self) -> &Option<String>
pub fn get_virtual_gateway_state(&self) -> &Option<String>
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.
Trait Implementations§
source§impl Clone for VirtualGatewayBuilder
impl Clone for VirtualGatewayBuilder
source§fn clone(&self) -> VirtualGatewayBuilder
fn clone(&self) -> VirtualGatewayBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VirtualGatewayBuilder
impl Debug for VirtualGatewayBuilder
source§impl Default for VirtualGatewayBuilder
impl Default for VirtualGatewayBuilder
source§fn default() -> VirtualGatewayBuilder
fn default() -> VirtualGatewayBuilder
source§impl PartialEq for VirtualGatewayBuilder
impl PartialEq for VirtualGatewayBuilder
source§fn eq(&self, other: &VirtualGatewayBuilder) -> bool
fn eq(&self, other: &VirtualGatewayBuilder) -> bool
self and other values to be equal, and is used
by ==.