#[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 ==.impl StructuralPartialEq for VirtualGatewayBuilder
Auto Trait Implementations§
impl Freeze for VirtualGatewayBuilder
impl RefUnwindSafe for VirtualGatewayBuilder
impl Send for VirtualGatewayBuilder
impl Sync for VirtualGatewayBuilder
impl Unpin for VirtualGatewayBuilder
impl UnwindSafe for VirtualGatewayBuilder
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