#[non_exhaustive]pub struct AwsEc2VpnConnectionDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2VpnConnectionDetails
.
Implementations§
source§impl AwsEc2VpnConnectionDetailsBuilder
impl AwsEc2VpnConnectionDetailsBuilder
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The identifier of the VPN connection.
sourcepub fn set_vpn_connection_id(self, input: Option<String>) -> Self
pub fn set_vpn_connection_id(self, input: Option<String>) -> Self
The identifier of the VPN connection.
sourcepub fn get_vpn_connection_id(&self) -> &Option<String>
pub fn get_vpn_connection_id(&self) -> &Option<String>
The identifier of the VPN connection.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The current state of the VPN connection. Valid values are as follows:
-
available
-
deleted
-
deleting
-
pending
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The current state of the VPN connection. Valid values are as follows:
-
available
-
deleted
-
deleting
-
pending
sourcepub fn get_state(&self) -> &Option<String>
pub fn get_state(&self) -> &Option<String>
The current state of the VPN connection. Valid values are as follows:
-
available
-
deleted
-
deleting
-
pending
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The identifier of the customer gateway that is at your end of the VPN connection.
sourcepub fn set_customer_gateway_id(self, input: Option<String>) -> Self
pub fn set_customer_gateway_id(self, input: Option<String>) -> Self
The identifier of the customer gateway that is at your end of the VPN connection.
sourcepub fn get_customer_gateway_id(&self) -> &Option<String>
pub fn get_customer_gateway_id(&self) -> &Option<String>
The identifier of the customer gateway that is at your end of the VPN connection.
sourcepub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
pub fn customer_gateway_configuration(self, input: impl Into<String>) -> Self
The configuration information for the VPN connection's customer gateway, in the native XML format.
sourcepub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
pub fn set_customer_gateway_configuration(self, input: Option<String>) -> Self
The configuration information for the VPN connection's customer gateway, in the native XML format.
sourcepub fn get_customer_gateway_configuration(&self) -> &Option<String>
pub fn get_customer_gateway_configuration(&self) -> &Option<String>
The configuration information for the VPN connection's customer gateway, in the native XML format.
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The identifier of the virtual private gateway that is at the Amazon Web Services side of the VPN connection.
sourcepub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
pub fn set_vpn_gateway_id(self, input: Option<String>) -> Self
The identifier of the virtual private gateway that is at the Amazon Web Services side of the VPN connection.
sourcepub fn get_vpn_gateway_id(&self) -> &Option<String>
pub fn get_vpn_gateway_id(&self) -> &Option<String>
The identifier of the virtual private gateway that is at the Amazon Web Services side of the VPN connection.
sourcepub fn category(self, input: impl Into<String>) -> Self
pub fn category(self, input: impl Into<String>) -> Self
The category of the VPN connection. VPN
indicates an Amazon Web Services VPN connection. VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn set_category(self, input: Option<String>) -> Self
pub fn set_category(self, input: Option<String>) -> Self
The category of the VPN connection. VPN
indicates an Amazon Web Services VPN connection. VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn get_category(&self) -> &Option<String>
pub fn get_category(&self) -> &Option<String>
The category of the VPN connection. VPN
indicates an Amazon Web Services VPN connection. VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn vgw_telemetry(
self,
input: AwsEc2VpnConnectionVgwTelemetryDetails
) -> Self
pub fn vgw_telemetry( self, input: AwsEc2VpnConnectionVgwTelemetryDetails ) -> Self
Appends an item to vgw_telemetry
.
To override the contents of this collection use set_vgw_telemetry
.
Information about the VPN tunnel.
sourcepub fn set_vgw_telemetry(
self,
input: Option<Vec<AwsEc2VpnConnectionVgwTelemetryDetails>>
) -> Self
pub fn set_vgw_telemetry( self, input: Option<Vec<AwsEc2VpnConnectionVgwTelemetryDetails>> ) -> Self
Information about the VPN tunnel.
sourcepub fn get_vgw_telemetry(
&self
) -> &Option<Vec<AwsEc2VpnConnectionVgwTelemetryDetails>>
pub fn get_vgw_telemetry( &self ) -> &Option<Vec<AwsEc2VpnConnectionVgwTelemetryDetails>>
Information about the VPN tunnel.
sourcepub fn options(self, input: AwsEc2VpnConnectionOptionsDetails) -> Self
pub fn options(self, input: AwsEc2VpnConnectionOptionsDetails) -> Self
The VPN connection options.
sourcepub fn set_options(
self,
input: Option<AwsEc2VpnConnectionOptionsDetails>
) -> Self
pub fn set_options( self, input: Option<AwsEc2VpnConnectionOptionsDetails> ) -> Self
The VPN connection options.
sourcepub fn get_options(&self) -> &Option<AwsEc2VpnConnectionOptionsDetails>
pub fn get_options(&self) -> &Option<AwsEc2VpnConnectionOptionsDetails>
The VPN connection options.
sourcepub fn routes(self, input: AwsEc2VpnConnectionRoutesDetails) -> Self
pub fn routes(self, input: AwsEc2VpnConnectionRoutesDetails) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The static routes that are associated with the VPN connection.
sourcepub fn set_routes(
self,
input: Option<Vec<AwsEc2VpnConnectionRoutesDetails>>
) -> Self
pub fn set_routes( self, input: Option<Vec<AwsEc2VpnConnectionRoutesDetails>> ) -> Self
The static routes that are associated with the VPN connection.
sourcepub fn get_routes(&self) -> &Option<Vec<AwsEc2VpnConnectionRoutesDetails>>
pub fn get_routes(&self) -> &Option<Vec<AwsEc2VpnConnectionRoutesDetails>>
The static routes that are associated with the VPN connection.
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The identifier of the transit gateway that is associated with the VPN connection.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The identifier of the transit gateway that is associated with the VPN connection.
sourcepub fn get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
The identifier of the transit gateway that is associated with the VPN connection.
sourcepub fn build(self) -> AwsEc2VpnConnectionDetails
pub fn build(self) -> AwsEc2VpnConnectionDetails
Consumes the builder and constructs a AwsEc2VpnConnectionDetails
.
Trait Implementations§
source§impl Clone for AwsEc2VpnConnectionDetailsBuilder
impl Clone for AwsEc2VpnConnectionDetailsBuilder
source§fn clone(&self) -> AwsEc2VpnConnectionDetailsBuilder
fn clone(&self) -> AwsEc2VpnConnectionDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEc2VpnConnectionDetailsBuilder
impl Default for AwsEc2VpnConnectionDetailsBuilder
source§fn default() -> AwsEc2VpnConnectionDetailsBuilder
fn default() -> AwsEc2VpnConnectionDetailsBuilder
source§impl PartialEq for AwsEc2VpnConnectionDetailsBuilder
impl PartialEq for AwsEc2VpnConnectionDetailsBuilder
source§fn eq(&self, other: &AwsEc2VpnConnectionDetailsBuilder) -> bool
fn eq(&self, other: &AwsEc2VpnConnectionDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.