#[non_exhaustive]
pub struct VpnConnectionOptionsSpecificationBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl VpnConnectionOptionsSpecificationBuilder

source

pub fn enable_acceleration(self, input: bool) -> Self

Indicate whether to enable acceleration for the VPN connection.

Default: false

source

pub fn set_enable_acceleration(self, input: Option<bool>) -> Self

Indicate whether to enable acceleration for the VPN connection.

Default: false

source

pub fn get_enable_acceleration(&self) -> &Option<bool>

Indicate whether to enable acceleration for the VPN connection.

Default: false

source

pub fn static_routes_only(self, input: bool) -> Self

Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify true. Use CreateVpnConnectionRoute to create a static route.

Default: false

source

pub fn set_static_routes_only(self, input: Option<bool>) -> Self

Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify true. Use CreateVpnConnectionRoute to create a static route.

Default: false

source

pub fn get_static_routes_only(&self) -> &Option<bool>

Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify true. Use CreateVpnConnectionRoute to create a static route.

Default: false

source

pub fn tunnel_inside_ip_version(self, input: TunnelInsideIpVersion) -> Self

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

Default: ipv4

source

pub fn set_tunnel_inside_ip_version( self, input: Option<TunnelInsideIpVersion> ) -> Self

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

Default: ipv4

source

pub fn get_tunnel_inside_ip_version(&self) -> &Option<TunnelInsideIpVersion>

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

Default: ipv4

source

pub fn tunnel_options(self, input: VpnTunnelOptionsSpecification) -> Self

Appends an item to tunnel_options.

To override the contents of this collection use set_tunnel_options.

The tunnel options for the VPN connection.

source

pub fn set_tunnel_options( self, input: Option<Vec<VpnTunnelOptionsSpecification>> ) -> Self

The tunnel options for the VPN connection.

source

pub fn get_tunnel_options(&self) -> &Option<Vec<VpnTunnelOptionsSpecification>>

The tunnel options for the VPN connection.

source

pub fn local_ipv4_network_cidr(self, input: impl Into<String>) -> Self

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn set_local_ipv4_network_cidr(self, input: Option<String>) -> Self

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn get_local_ipv4_network_cidr(&self) -> &Option<String>

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn remote_ipv4_network_cidr(self, input: impl Into<String>) -> Self

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn set_remote_ipv4_network_cidr(self, input: Option<String>) -> Self

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn get_remote_ipv4_network_cidr(&self) -> &Option<String>

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

Default: 0.0.0.0/0

source

pub fn local_ipv6_network_cidr(self, input: impl Into<String>) -> Self

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: ::/0

source

pub fn set_local_ipv6_network_cidr(self, input: Option<String>) -> Self

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: ::/0

source

pub fn get_local_ipv6_network_cidr(&self) -> &Option<String>

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.

Default: ::/0

source

pub fn remote_ipv6_network_cidr(self, input: impl Into<String>) -> Self

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

Default: ::/0

source

pub fn set_remote_ipv6_network_cidr(self, input: Option<String>) -> Self

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

Default: ::/0

source

pub fn get_remote_ipv6_network_cidr(&self) -> &Option<String>

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

Default: ::/0

source

pub fn outside_ip_address_type(self, input: impl Into<String>) -> Self

The type of IPv4 address assigned to the outside interface of the customer gateway device.

Valid values: PrivateIpv4 | PublicIpv4

Default: PublicIpv4

source

pub fn set_outside_ip_address_type(self, input: Option<String>) -> Self

The type of IPv4 address assigned to the outside interface of the customer gateway device.

Valid values: PrivateIpv4 | PublicIpv4

Default: PublicIpv4

source

pub fn get_outside_ip_address_type(&self) -> &Option<String>

The type of IPv4 address assigned to the outside interface of the customer gateway device.

Valid values: PrivateIpv4 | PublicIpv4

Default: PublicIpv4

source

pub fn transport_transit_gateway_attachment_id( self, input: impl Into<String> ) -> Self

The transit gateway attachment ID to use for the VPN tunnel.

Required if OutsideIpAddressType is set to PrivateIpv4.

source

pub fn set_transport_transit_gateway_attachment_id( self, input: Option<String> ) -> Self

The transit gateway attachment ID to use for the VPN tunnel.

Required if OutsideIpAddressType is set to PrivateIpv4.

source

pub fn get_transport_transit_gateway_attachment_id(&self) -> &Option<String>

The transit gateway attachment ID to use for the VPN tunnel.

Required if OutsideIpAddressType is set to PrivateIpv4.

source

pub fn build(self) -> VpnConnectionOptionsSpecification

Consumes the builder and constructs a VpnConnectionOptionsSpecification.

Trait Implementations§

source§

impl Clone for VpnConnectionOptionsSpecificationBuilder

source§

fn clone(&self) -> VpnConnectionOptionsSpecificationBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VpnConnectionOptionsSpecificationBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VpnConnectionOptionsSpecificationBuilder

source§

fn default() -> VpnConnectionOptionsSpecificationBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<VpnConnectionOptionsSpecificationBuilder> for VpnConnectionOptionsSpecificationBuilder

source§

fn eq(&self, other: &VpnConnectionOptionsSpecificationBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for VpnConnectionOptionsSpecificationBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more