Struct aws_sdk_ec2::types::builders::VpnConnectionBuilder
source · #[non_exhaustive]pub struct VpnConnectionBuilder { /* private fields */ }
Expand description
A builder for VpnConnection
.
Implementations§
source§impl VpnConnectionBuilder
impl VpnConnectionBuilder
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). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
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). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
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). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
sourcepub fn customer_gateway_id(self, input: impl Into<String>) -> Self
pub fn customer_gateway_id(self, input: impl Into<String>) -> Self
The ID of the customer gateway 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 ID of the customer gateway 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 ID of the customer gateway at your end 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. A value of VPN
indicates an Amazon Web Services VPN connection. A value of 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. A value of VPN
indicates an Amazon Web Services VPN connection. A value of 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. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn set_state(self, input: Option<VpnState>) -> Self
pub fn set_state(self, input: Option<VpnState>) -> Self
The current state of the VPN connection.
sourcepub fn type(self, input: GatewayType) -> Self
pub fn type(self, input: GatewayType) -> Self
The type of VPN connection.
sourcepub fn set_type(self, input: Option<GatewayType>) -> Self
pub fn set_type(self, input: Option<GatewayType>) -> Self
The type of VPN connection.
sourcepub fn get_type(&self) -> &Option<GatewayType>
pub fn get_type(&self) -> &Option<GatewayType>
The type of VPN connection.
sourcepub fn vpn_connection_id(self, input: impl Into<String>) -> Self
pub fn vpn_connection_id(self, input: impl Into<String>) -> Self
The ID 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 ID of the VPN connection.
sourcepub fn get_vpn_connection_id(&self) -> &Option<String>
pub fn get_vpn_connection_id(&self) -> &Option<String>
The ID of the VPN connection.
sourcepub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
pub fn vpn_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway 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 ID of the virtual private gateway 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 ID of the virtual private gateway at the Amazon Web Services side of 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 ID of the transit gateway 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 ID of the transit gateway associated with the VPN connection.
sourcepub fn get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
The ID of the transit gateway associated with the VPN connection.
sourcepub fn core_network_arn(self, input: impl Into<String>) -> Self
pub fn core_network_arn(self, input: impl Into<String>) -> Self
The ARN of the core network.
sourcepub fn set_core_network_arn(self, input: Option<String>) -> Self
pub fn set_core_network_arn(self, input: Option<String>) -> Self
The ARN of the core network.
sourcepub fn get_core_network_arn(&self) -> &Option<String>
pub fn get_core_network_arn(&self) -> &Option<String>
The ARN of the core network.
sourcepub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
pub fn core_network_attachment_arn(self, input: impl Into<String>) -> Self
The ARN of the core network attachment.
sourcepub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
pub fn set_core_network_attachment_arn(self, input: Option<String>) -> Self
The ARN of the core network attachment.
sourcepub fn get_core_network_attachment_arn(&self) -> &Option<String>
pub fn get_core_network_attachment_arn(&self) -> &Option<String>
The ARN of the core network attachment.
sourcepub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
pub fn gateway_association_state(self, input: GatewayAssociationState) -> Self
The current state of the gateway association.
sourcepub fn set_gateway_association_state(
self,
input: Option<GatewayAssociationState>
) -> Self
pub fn set_gateway_association_state( self, input: Option<GatewayAssociationState> ) -> Self
The current state of the gateway association.
sourcepub fn get_gateway_association_state(&self) -> &Option<GatewayAssociationState>
pub fn get_gateway_association_state(&self) -> &Option<GatewayAssociationState>
The current state of the gateway association.
sourcepub fn options(self, input: VpnConnectionOptions) -> Self
pub fn options(self, input: VpnConnectionOptions) -> Self
The VPN connection options.
sourcepub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
pub fn set_options(self, input: Option<VpnConnectionOptions>) -> Self
The VPN connection options.
sourcepub fn get_options(&self) -> &Option<VpnConnectionOptions>
pub fn get_options(&self) -> &Option<VpnConnectionOptions>
The VPN connection options.
sourcepub fn routes(self, input: VpnStaticRoute) -> Self
pub fn routes(self, input: VpnStaticRoute) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The static routes associated with the VPN connection.
sourcepub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
pub fn set_routes(self, input: Option<Vec<VpnStaticRoute>>) -> Self
The static routes associated with the VPN connection.
sourcepub fn get_routes(&self) -> &Option<Vec<VpnStaticRoute>>
pub fn get_routes(&self) -> &Option<Vec<VpnStaticRoute>>
The static routes associated with the VPN connection.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the VPN connection.
Any tags assigned to the VPN connection.
Any tags assigned to the VPN connection.
sourcepub fn vgw_telemetry(self, input: VgwTelemetry) -> Self
pub fn vgw_telemetry(self, input: VgwTelemetry) -> 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<VgwTelemetry>>) -> Self
pub fn set_vgw_telemetry(self, input: Option<Vec<VgwTelemetry>>) -> Self
Information about the VPN tunnel.
sourcepub fn get_vgw_telemetry(&self) -> &Option<Vec<VgwTelemetry>>
pub fn get_vgw_telemetry(&self) -> &Option<Vec<VgwTelemetry>>
Information about the VPN tunnel.
sourcepub fn build(self) -> VpnConnection
pub fn build(self) -> VpnConnection
Consumes the builder and constructs a VpnConnection
.
Trait Implementations§
source§impl Clone for VpnConnectionBuilder
impl Clone for VpnConnectionBuilder
source§fn clone(&self) -> VpnConnectionBuilder
fn clone(&self) -> VpnConnectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VpnConnectionBuilder
impl Debug for VpnConnectionBuilder
source§impl Default for VpnConnectionBuilder
impl Default for VpnConnectionBuilder
source§fn default() -> VpnConnectionBuilder
fn default() -> VpnConnectionBuilder
source§impl PartialEq<VpnConnectionBuilder> for VpnConnectionBuilder
impl PartialEq<VpnConnectionBuilder> for VpnConnectionBuilder
source§fn eq(&self, other: &VpnConnectionBuilder) -> bool
fn eq(&self, other: &VpnConnectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.